Changed some verbs to tgui input (#7944)

This commit is contained in:
Selis
2024-03-12 14:13:52 +01:00
committed by GitHub
parent 5824cc80d4
commit 598eb65089
3 changed files with 59 additions and 27 deletions

View File

@@ -1,9 +1,16 @@
/client/proc/cmd_admin_check_player_logs(mob/living/M as mob in mob_list)
/client/proc/cmd_admin_check_player_logs() // CHOMPEdit
set category = "Admin"
set name = "Check Player Attack Logs"
set desc = "Check a player's attack logs."
//Views specific attack logs belonging to one player.
// CHOMPEdit Begin
var/mob/living/M = tgui_input_list(usr, "Check a player's attack logs.", "Check Player Attack Logs", mob_list)
if(!M)
return
// CHOMPEdit End
//Views specific attack logs belonging to one player.
var/dat = "<B>[M]'s Attack Log:<HR></B>"
dat += "<b>Viewing attack logs of [M]</b> - (Played by ([key_name(M)]).<br>"
if(M.mind)
@@ -37,11 +44,18 @@
feedback_add_details("admin_verb","PL") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
/client/proc/cmd_admin_check_dialogue_logs(mob/living/M as mob in mob_list)
/client/proc/cmd_admin_check_dialogue_logs() // CHOMPEdit
set category = "Admin"
set name = "Check Player Dialogue Logs"
set desc = "Check a player's dialogue logs."
// CHOMPEdit Begin
var/mob/living/M = tgui_input_list(usr, "Check a player's dialogue logs.", "Check Player Dialogue Logs", mob_list)
if(!M)
return
// CHOMPEdit End
//Views specific dialogue logs belonging to one player.
var/dat = "<B>[M]'s Dialogue Log:<HR></B>"
dat += "<b>Viewing say and emote logs of [M]</b> - (Played by ([key_name(M)]).<br>"