mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-31 07:57:47 +01:00
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:
@@ -12,20 +12,13 @@ GLOBAL_PROTECT(investigate_log_wrapper)
|
||||
|
||||
GLOB.investigate_log_wrapper[subject] += "<small>[time_stamp()] [UID()] [ADMIN_COORDJMP(src)] </small> || [src] [message]"
|
||||
|
||||
//ADMINVERBS
|
||||
/client/proc/investigate_show(subject in GLOB.investigate_log_wrapper)
|
||||
set name = "Investigate Round Objects"
|
||||
set category = "Admin"
|
||||
|
||||
if(!check_rights(R_ADMIN))
|
||||
return
|
||||
|
||||
USER_VERB(investigate_show, R_ADMIN, "Investigate Round Objects", "View Investigation panel.", VERB_CATEGORY_ADMIN, subject in GLOB.investigate_log_wrapper)
|
||||
// Should never happen
|
||||
if(!(subject in GLOB.investigate_log_wrapper))
|
||||
return
|
||||
|
||||
var/list/entries = GLOB.investigate_log_wrapper[subject]
|
||||
|
||||
var/datum/browser/B = new(usr, "investigatelog", "Investigate ([subject])", 800, 400)
|
||||
var/datum/browser/B = new(client, "investigatelog", "Investigate ([subject])", 800, 400)
|
||||
B.set_content(entries.Join("<br>"))
|
||||
B.open()
|
||||
|
||||
Reference in New Issue
Block a user