mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-03-21 19:23:41 +00:00
* Unit Test rework & Master/Ticker update * Fixes and working unit testing * Fixes * Test fixes and FA update * Fixed runtimes * Radio subsystem * move that glob wherever later * ident * CIBUILDING compile option * Fixed runtimes * Some changes to the workflow * CI Split * More split * Pathing * Linters and Annotators * ci dir fix * Missing undef fixed * Enable grep checks * More test conversions * More split * Correct file * Removes unneeded inputs * oop * More dependency changes * More conversions * Conversion fixes * Fixes * Some assert fixes * Corrects start gate * Converted some README.dms to README.mds * Removes duplicate proc * Removes unused defines * Example configs * fix dll access viol by double calling * Post-rebase fixes * Cleans up names global list * Undef restart counter * More code/game/ cleanup * Statpanel update * Skybox * add * Fix ticker * Roundend fix * Persistence dependency update * Reordering * Reordering * Reordering * Initstage fix * . * . * Reorder * Reorder * Circle * Mobs * Air * Test fix * CI Script Fix * Configs * More ticker stuff * This is now in 'reboot world' * Restart world announcements * no glob in PreInit * to define * Update * Removed old include * Make this file normal again * moved * test * shared unit testing objects * Updates batched_spritesheets and universal_icon * . * job data debug * rm that * init order * show us * . * i wonder * . * . * urg * do we not have a job ID? * . * rm sleep for now * updated rust-g linux binaries * binaries update 2 * binaries update 3 * testing something * change that * test something * . * . * . * locavar * test * move that * . * debug * don't run this test * strack trace it * cleaner * . * . * cras again * also comment this out * return to official rust g * Update robot_icons.dm * monitor the generation * . --------- Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
97 lines
3.2 KiB
Plaintext
97 lines
3.2 KiB
Plaintext
// Clickable stat() button.
|
|
/obj/effect/statclick
|
|
name = "Initializing..."
|
|
blocks_emissive = FALSE // EMISSIVE_BLOCK_NONE
|
|
var/target
|
|
|
|
INITIALIZE_IMMEDIATE(/obj/effect/statclick)
|
|
|
|
/obj/effect/statclick/Initialize(mapload, text, target)
|
|
. = ..()
|
|
name = text
|
|
src.target = target
|
|
|
|
/obj/effect/statclick/Destroy()
|
|
target = null
|
|
return ..()
|
|
|
|
/obj/effect/statclick/proc/cleanup()
|
|
SIGNAL_HANDLER
|
|
qdel(src)
|
|
|
|
/obj/effect/statclick/proc/update(text)
|
|
name = text
|
|
return src
|
|
|
|
/obj/effect/statclick/debug
|
|
var/class
|
|
|
|
/obj/effect/statclick/debug/Click()
|
|
if(!check_rights_for(usr.client, R_HOLDER) || !target)
|
|
return
|
|
if(!class)
|
|
if(istype(target, /datum/controller/subsystem))
|
|
class = "subsystem"
|
|
else if(istype(target, /datum/controller))
|
|
class = "controller"
|
|
else if(isdatum(target))
|
|
class = "datum"
|
|
else
|
|
class = "unknown"
|
|
|
|
usr.client.debug_variables(target)
|
|
message_admins("Admin [key_name_admin(usr)] is debugging the [target] [class].")
|
|
|
|
ADMIN_VERB(restart_controller, R_DEBUG, "Restart Controller", "Restart one of the various periodic loop controllers for the game (be careful!)", ADMIN_CATEGORY_DEBUG, controller in list("Master", "Failsafe"))
|
|
switch(controller)
|
|
if("Master")
|
|
Recreate_MC()
|
|
feedback_add_details("admin_verb","RMC")
|
|
if("Failsafe")
|
|
new /datum/controller/failsafe()
|
|
feedback_add_details("admin_verb","RFailsafe")
|
|
|
|
message_admins("Admin [key_name_admin(user)] has restarted the [controller] controller.")
|
|
|
|
ADMIN_VERB(debug_antagonist_template, R_DEBUG, "Debug Antagonist", "Debug an antagonist template", ADMIN_CATEGORY_DEBUG, antag_type in GLOB.all_antag_types)
|
|
var/datum/antagonist/antag = GLOB.all_antag_types[antag_type]
|
|
if(antag)
|
|
user.debug_variables(antag)
|
|
message_admins("Admin [key_name_admin(user)] is debugging the [antag.role_text] template.")
|
|
|
|
ADMIN_VERB(debug_controller, R_DEBUG, "Debug Controller", "Debug the various periodic loop controllers for the game (be careful!)", ADMIN_CATEGORY_DEBUG)
|
|
var/list/options = list()
|
|
options["MC"] = Master
|
|
options["Failsafe"] = Failsafe
|
|
options["Configuration"] = config
|
|
for(var/datum/controller/subsystem/S as anything in Master.subsystems)
|
|
if(!istype(S)) //Eh, we're a debug verb, let's have typechecking.
|
|
continue
|
|
var/strtype = "SS[get_end_section_of_type(S.type)]"
|
|
if(options[strtype])
|
|
var/offset = 2
|
|
while(istype(options["[strtype]_[offset] - DUPE ERROR"], /datum/controller/subsystem))
|
|
offset++
|
|
options["[strtype]_[offset] - DUPE ERROR"] = S //Something is very, very wrong.
|
|
else
|
|
options[strtype] = S
|
|
|
|
//Goon PS stuff, and other yet-to-be-subsystem things.
|
|
options["LEGACY: master_controller"] = master_controller
|
|
options["LEGACY: job_master"] = job_master
|
|
options["LEGACY: SSradio"] = SSradio
|
|
options["LEGACY: emergency_shuttle"] = emergency_shuttle
|
|
options["LEGACY: paiController"] = paiController
|
|
options["LEGACY: cameranet"] = cameranet
|
|
options["LEGACY: transfer_controller"] = transfer_controller
|
|
|
|
var/pick = tgui_input_list(user, "Choose a controller to debug/view variables of.", "VV controller:", options)
|
|
if(!pick)
|
|
return
|
|
var/datum/D = options[pick]
|
|
if(!istype(D))
|
|
return
|
|
feedback_add_details("admin_verb", "DebugController")
|
|
message_admins("Admin [key_name_admin(user)] is debugging the [pick] controller.")
|
|
user.debug_variables(D)
|