From 70b811dba1248be2ffb059da0ef2d12dda343e3e Mon Sep 17 00:00:00 2001 From: Enric Gabriel <43283559+SandPoot@users.noreply.github.com> Date: Sat, 4 Jul 2020 15:18:18 -0300 Subject: [PATCH] the player panel that doesn't fucking kill your eyes --- code/modules/admin/admin.dm | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/code/modules/admin/admin.dm b/code/modules/admin/admin.dm index a2e2b3c122..9801990d42 100644 --- a/code/modules/admin/admin.dm +++ b/code/modules/admin/admin.dm @@ -25,7 +25,10 @@ to_chat(usr, "You seem to be selecting a mob that doesn't exist anymore.") return - var/body = "Options for [M.key]" +//SKYRAT CHANGES BEGIN + var/list/body = list("Options for [M.key]") +//SKYRAT CHANGES END + body += "Options panel for [M]" if(M.client) body += " played by [M.client] " @@ -199,7 +202,12 @@ body += "
" body += "" - usr << browse(body, "window=adminplayeropts-[REF(M)];size=550x515") +//SKYRAT CHANGES BEGIN + var/datum/browser/popup = new(usr, "adminplayeropts-[REF(M)]", "Player Panel", nwidth = 550, nheight = 515) + popup.set_content(body.Join()) + popup.open() +//SKYRAT CHANGES END + SSblackbox.record_feedback("tally", "admin_verb", 1, "Player Panel") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc! @@ -592,6 +600,11 @@ set category = "Server" set desc="Start the round RIGHT NOW" set name="Start Now" + if(!isnull(usr.client.address)) //skyrat edit - confirm early game start unless connecting locally + message_admins("[key_name(usr)] is deciding to start the game early") + if(alert(usr, "Start game NOW?", "Game Start Confirmation", "Yes", "No")!= "Yes") + message_admins("[key_name(usr)] has cancelled starting the game early") + return FALSE //end skyrat edit if(SSticker.current_state == GAME_STATE_PREGAME || SSticker.current_state == GAME_STATE_STARTUP) SSticker.start_immediately = TRUE log_admin("[usr.key] has started the game.")