mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-22 19:47:22 +01:00
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:
@@ -381,7 +381,7 @@ GLOBAL_LIST_EMPTY(PDAs)
|
||||
O.show_message(text("[bicon(src)] *[ttone]*"))
|
||||
|
||||
/obj/item/pda/proc/set_ringtone(mob/user)
|
||||
var/new_tone = tgui_input_text(user, "Please enter new ringtone", name, ttone)
|
||||
var/new_tone = tgui_input_text(user, "Please enter new ringtone", name, ttone, max_length = 20, encode = FALSE)
|
||||
new_tone = trim(new_tone)
|
||||
|
||||
if(!in_range(src, user) || loc != user)
|
||||
@@ -396,7 +396,7 @@ GLOBAL_LIST_EMPTY(PDAs)
|
||||
close(user)
|
||||
return TRUE
|
||||
|
||||
ttone = sanitize(copytext(new_tone, 1, 20))
|
||||
ttone = new_tone
|
||||
return TRUE
|
||||
|
||||
/obj/item/pda/process()
|
||||
|
||||
Reference in New Issue
Block a user