port ADMIN_VERB and friends (#30646)

* port ADMIN_VERB and friends

* some renaming

* dumb

* one more rename

* never search and replace this codebase

* fix TM issues, more renaming

* add a static analysis to shore up user verbs

* fix double message on roundstart

* remove macro we're not using yet

* convert remaining playsounds verbs

* convert more verbs i missed somehow

* why is this a completely different signature than everything else

* fix ui_interact arg

* fix logging view and others

* buncha issues caught in TM

* fix mentor tickets ui

* fix bug report viewing

* moron
This commit is contained in:
warriorstar-orion
2025-12-12 19:18:22 +00:00
committed by GitHub
parent f89b05ee88
commit 2a842644d5
92 changed files with 1751 additions and 3113 deletions
+4 -18
View File
@@ -590,30 +590,16 @@ GLOBAL_LIST_EMPTY(timers_by_proc)
*
* In-round ability to view what has created a timer, and how many times a timer for that path has been created
*/
/client/proc/timer_log()
set name = "View Timer Log"
set category = "Debug"
set desc = "Shows the log of what types created timers this round"
if(!check_rights(R_DEBUG | R_VIEWRUNTIMES))
return
USER_VERB(timer_log, R_DEBUG|R_VIEWRUNTIMES, "View Timer Log", "Shows the log of what types created timers this round", VERB_CATEGORY_DEBUG)
var/list/sorted = sortTim(GLOB.timers_by_proc, GLOBAL_PROC_REF(cmp_numeric_dsc), TRUE)
var/list/text = list("<h1>Timer Log</h1>", "<ul>")
for(var/key in sorted)
text += "<li>[key] - [sorted[key]]</li>"
text += "</ul>"
usr << browse(text.Join(), "window=timerlog")
/client/proc/debug_timers()
set name = "Debug Timers"
set category = "Debug"
set desc = "Shows currently active timers, grouped by callback"
if(!check_rights(R_DEBUG | R_VIEWRUNTIMES))
return
client << browse(text.Join(), "window=timerlog")
USER_VERB(debug_timers, R_DEBUG|R_VIEWRUNTIMES, "Debug Timers", "Shows currently active timers, grouped by callback", VERB_CATEGORY_DEBUG)
var/list/timers = list()
for(var/id in SStimer.timer_id_dict)
var/datum/timedevent/T = SStimer.timer_id_dict[id]
@@ -646,7 +632,7 @@ GLOBAL_LIST_EMPTY(timers_by_proc)
text += "<li>[key] - [sorted2[key]]</li>"
text += "</ul>"
usr << browse(text.Join(), "window=timerdebug")
client << browse(text.Join(), "window=timerdebug")
/**