mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-31 07:57:47 +01:00
[READY] TGUI Input Collection (#23891)
* List Input refresh * Modal Alerts * Text Input * Number Input * Split Button * Renaming * Alert converts * Text Input Conversion (Part 1) And TextArea Autofocus + maxLength * Text Input Conversion (Part 2) * AAAAAAAAAAAAAAAAAAAA * I'm FUCKED * @GDNgit review changes * "'" fixes * Revert TGUI Alert from admin delete * NumberInput Window size * CRASH if empty list * Update code/modules/tgui/tgui_input/list_input.dm * TGUI Rebuild * TGUI Rebuild * Update code/modules/paperwork/faxmachine.dm * _char * compile * Rebuild --------- Co-authored-by: Aylong <69762909+Aylong220@users.noreply.github.com> Co-authored-by: S34N <12197162+S34NW@users.noreply.github.com>
This commit is contained in:
@@ -381,11 +381,13 @@ GLOBAL_LIST_EMPTY(PDAs)
|
||||
O.show_message(text("[bicon(src)] *[ttone]*"))
|
||||
|
||||
/obj/item/pda/proc/set_ringtone(mob/user)
|
||||
var/new_tone = input("Please enter new ringtone", name, ttone) as text
|
||||
var/new_tone = tgui_input_text(user, "Please enter new ringtone", name, ttone)
|
||||
new_tone = trim(new_tone)
|
||||
|
||||
if(!in_range(src, user) || loc != user)
|
||||
close(user)
|
||||
return FALSE
|
||||
|
||||
if(!new_tone)
|
||||
return FALSE
|
||||
|
||||
@@ -393,6 +395,7 @@ GLOBAL_LIST_EMPTY(PDAs)
|
||||
to_chat(user, "The PDA softly beeps.")
|
||||
close(user)
|
||||
return TRUE
|
||||
|
||||
ttone = sanitize(copytext(new_tone, 1, 20))
|
||||
return TRUE
|
||||
|
||||
|
||||
Reference in New Issue
Block a user