Bigger ready up panel (#8964)

This commit is contained in:
Wowzewow (Wezzy)
2020-06-03 17:06:10 +08:00
committed by GitHub
parent 9da475706d
commit b44554ae5d
3 changed files with 59 additions and 17 deletions
@@ -27,25 +27,15 @@ INITIALIZE_IMMEDIATE(/mob/abstract/new_player)
new_player_panel_proc()
/mob/abstract/new_player/proc/new_player_panel_proc()
var/output = "<div align='center'><B>Welcome to the [station_name()]!</B><br>"
var/output = "<div align='center'><hr1><B>Welcome to the [station_name()]!</B></hr1><br>"
var/character_name = client.prefs.real_name
if(character_name)
output += "<i>You will board as <b>[character_name]</b>.</i><br>"
if(current_map.description)
output += "<i>[current_map.description]</i><hr>"
output += "<a href='byond://?src=\ref[src];show_preferences=1'>Setup Character</A> "
if(ROUND_IS_STARTED)
output += "<a href='byond://?src=\ref[src];late_join=1'>Join the Game!</A> "
output += "<a href='byond://?src=\ref[src];manifest=1'>View the Crew Manifest</A> "
else
if(ready)
output += "<a href='byond://?src=\ref[src];ready=0'>Un-Ready</a> "
else
output += "<a href='byond://?src=\ref[src];ready=1'>Ready Up</a> "
output += "<a href='byond://?src=\ref[src];observe=1'>Observe</A> "
if(ROUND_IS_STARTED)
output += "<a href='byond://?src=\ref[src];manifest=1'>View the Crew Manifest</A> "
if(!IsGuestKey(src.key))
establish_db_connection(dbcon)
@@ -66,9 +56,19 @@ INITIALIZE_IMMEDIATE(/mob/abstract/new_player)
else
output += "<a href='byond://?src=\ref[src];showpoll=1'>Show Player Polls</A>"
if(character_name)
output += "<hr>You will board as <b>[character_name]</b><br>"
if(ROUND_IS_STARTED)
output += "<a href='byond://?src=\ref[src];late_join=1'>Join the Game</A> "
else
if(ready)
output += "<a href='byond://?src=\ref[src];ready=0'>Un-Ready</a> "
else
output += "<a href='byond://?src=\ref[src];ready=1'>Ready Up</a> "
output += "</div>"
send_theme_resources(src)
src << browse(enable_ui_theme(src, output),"window=playersetup;size=400x280;can_close=0")
src << browse(enable_ui_theme(src, output),"window=playersetup;size=560x280;can_close=0")
/mob/abstract/new_player/Stat()
..()