TGUI Additions

This commit is contained in:
Casey
2022-06-18 18:47:43 -04:00
committed by Darlantan
parent 5d7a2a1f4e
commit 16eff45dba
7 changed files with 489 additions and 97 deletions

View File

@@ -2019,21 +2019,6 @@
// player info stuff
if(href_list["add_player_info"])
var/key = href_list["add_player_info"]
var/add = sanitize(input(usr, "Add Player Info") as null|text)
if(!add) return
notes_add(key,add,usr)
show_player_info(key)
if(href_list["remove_player_info"])
var/key = href_list["remove_player_info"]
var/index = text2num(href_list["remove_index"])
notes_del(key, index)
show_player_info(key)
if(href_list["notes"])
var/ckey = href_list["ckey"]
if(!ckey)
@@ -2043,7 +2028,9 @@
switch(href_list["notes"])
if("show")
show_player_info(ckey)
var/datum/tgui_module/player_notes_info/A = new(src)
A.key = ckey
A.tgui_interact(usr)
if("list")
var/filter
if(href_list["filter"] && href_list["filter"] != "0")