From 58217c6b19faf3e211fb9b810295ff4ff5db5b8e Mon Sep 17 00:00:00 2001 From: "baloh.matevz" Date: Tue, 13 Sep 2011 05:54:57 +0000 Subject: [PATCH] - You can now cancel the 'Declare ready' thing - When you hit 'Declare ready' it no longer asks you for confirmation, as you can cancel it just as easily. Screenshot: http://www.kamletos.si/enter%20game.JPG git-svn-id: http://tgstation13.googlecode.com/svn/trunk@2190 316c924e-a436-60f5-8080-3fe189b3f50e --- code/modules/mob/new_player/new_player.dm | 34 ++++++++++++++++++----- 1 file changed, 27 insertions(+), 7 deletions(-) diff --git a/code/modules/mob/new_player/new_player.dm b/code/modules/mob/new_player/new_player.dm index 9c894eb1d48..7356d79af6f 100644 --- a/code/modules/mob/new_player/new_player.dm +++ b/code/modules/mob/new_player/new_player.dm @@ -24,7 +24,6 @@ mob/new_player mind.key = key mind.current = src - new_player_panel() var/starting_loc = pick(newplayer_start) loc = starting_loc sight |= SEE_TURFS @@ -46,6 +45,8 @@ mob/new_player changes() preferences.lastchangelog = lastchangelog preferences.savefile_save(src) + + new_player_panel() //PDA Resource Initialisation =======================================================> /* Quick note: local dream daemon instances don't seem to cache images right. Might be @@ -105,15 +106,29 @@ mob/new_player verb new_player_panel() set src = usr + new_player_panel_proc() - var/output = "
New Player Options
" - output += "

Setup Character

" - //if(istester(key)) + proc + new_player_panel_proc() + + var/output = "New Player Options" + /*output += " | Refresh
" + + output += "Name: [preferences.be_random_name ? "Random" :preferences.real_name]"*/ + + output +="
" + + /*output += "Preferred jobs:
" + output += "[preferences.occupation[1]]
" + output += "[preferences.occupation[2]]
" + output += "[preferences.occupation[3]]
"*/ + + output += "
Setup Character

" if(!ticker || ticker.current_state <= GAME_STATE_PREGAME) if(!ready) output += "Declare Ready
" else - output += "You are ready.
" + output += "You are ready (Cancel)
" else output += "Join Game!
" @@ -153,8 +168,13 @@ mob/new_player return if(!ready) - if(alert(src,"Are you sure you are ready? This will lock-in your preferences.","Player Setup","Yes","No") == "Yes") - ready = 1 + ready = 1 + else + ready = 0 + + if(href_list["refresh"]) + src << browse(null, "window=playersetup") //closes the player setup window + new_player_panel_proc() if(href_list["observe"]) if (!usr.client.authenticated)