mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-01-13 02:52:03 +00:00
* 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
15 lines
473 B
Plaintext
15 lines
473 B
Plaintext
GLOBAL_LIST_EMPTY(open_logging_views)
|
|
|
|
USER_VERB(logging_view, R_ADMIN, "Logging View", "Opens the detailed logging viewer", VERB_CATEGORY_ADMIN, mob/M as null, clear_view as null)
|
|
var/datum/log_viewer/cur_view = GLOB.open_logging_views[client.ckey]
|
|
if(!cur_view)
|
|
cur_view = new /datum/log_viewer()
|
|
GLOB.open_logging_views[client.ckey] = cur_view
|
|
else if(clear_view)
|
|
cur_view.clear_all()
|
|
|
|
if(istype(M))
|
|
cur_view.add_mobs(list(M))
|
|
|
|
cur_view.show_ui(client.mob)
|