From 63c772e928dfa2d714c75ac144aa1a3eb3aaed38 Mon Sep 17 00:00:00 2001 From: LordME <58342752+TheLordME@users.noreply.github.com> Date: Sat, 25 May 2024 17:26:25 +0200 Subject: [PATCH] Makes the playernote selection from the player notes admin verb use tgui list selector instead of old browse (#6448) ## About The Pull Request ## Why It's Good For The Game ## Changelog :cl: admin: Player Notes admin verb now uses tgui_list to select the ckey to view /:cl: --- code/modules/admin/admin.dm | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/code/modules/admin/admin.dm b/code/modules/admin/admin.dm index 9090799bf10..1efda3b08d0 100644 --- a/code/modules/admin/admin.dm +++ b/code/modules/admin/admin.dm @@ -223,7 +223,15 @@ var/global/floorIsLava = 0 if (!istype(src,/datum/admins)) to_chat(usr, "Error: you are not an admin!") return - PlayerNotesPage(1) + //PlayerNotesPage(1) + tgui_notes() + +/datum/admins/proc/tgui_notes() + var/savefile/S=new("data/player_notes.sav") + var/list/note_keys + S >> note_keys + var/selected_ckey = tgui_input_list(usr, "Select the ckey you want the notes off:", "Ckey Select",sortList(note_keys)) + show_player_info(selected_ckey) /datum/admins/proc/PlayerNotesPage(page) var/dat = "Player notes