Fixes some issues with TGUI Alerts, and Text Input (#24282)

* Well... maybe that's not better way

* PDA and all_channels encryptionkey

* Alert fixes

* Bad style
This commit is contained in:
Aylong
2024-02-24 20:28:26 +02:00
committed by GitHub
parent a44f9ca128
commit 329398b4f0
27 changed files with 62 additions and 73 deletions
+3 -3
View File
@@ -39,7 +39,7 @@
var/obj/item/card/id/I = H.wear_id
if(istype(I))
apply_to_card(I, H, get_all_accesses(), "Debugger", "admin")
H.dna.SetSEState(GLOB.breathlessblock, 1)
singlemutcheck(H, GLOB.breathlessblock, MUTCHK_FORCED)
H.dna.default_blocks.Add(GLOB.breathlessblock)
@@ -67,10 +67,10 @@
to_chat(user, "You switch [src] to [change_voice ? "" : "not "]change your voice on syndicate communications.")
/obj/item/encryptionkey/syndicate/all_channels/AltClick(mob/user)
var/new_name = tgui_input_text(user, "Enter new fake agent name...", "New name")
var/new_name = tgui_input_text(user, "Enter new fake agent name...", "New name", max_length = MAX_NAME_LEN)
if(!new_name)
return
fake_name = copytext(new_name, 1, MAX_NAME_LEN + 1)
fake_name = new_name
/obj/item/clothing/mask/gas/welding/advanced
name = "AVD-CNED welding mask"