mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-22 19:47:22 +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:
@@ -83,7 +83,9 @@
|
||||
return
|
||||
|
||||
var/tmp_label = ""
|
||||
var/label_text = sanitize(input(user, "Inscribe some text into \the [initial(BB.name)]", "Inscription", tmp_label))
|
||||
var/label_text = tgui_input_text(user, "Inscribe some text into \the [initial(BB.name)]", "Inscription", tmp_label)
|
||||
if(!label_text)
|
||||
return
|
||||
|
||||
if(length(label_text) > 20)
|
||||
to_chat(user, "<span class='warning'>The inscription can be at most 20 characters long.</span>")
|
||||
|
||||
@@ -749,11 +749,11 @@
|
||||
return
|
||||
var/tracking_target = locateUID(tracking_target_UID)
|
||||
if(tracking_target)
|
||||
if(alert("Do you want to clear the tracker?", "Tracker reset", "Yes", "No") == "Yes")
|
||||
if(tgui_alert(user, "Do you want to clear the tracker?", "Tracker reset", list("Yes", "No")) == "Yes")
|
||||
to_chat(user, "<span class='notice'>[src] stops tracking [tracking_target]</span>")
|
||||
stop_pointing()
|
||||
if(linked_pinpointer_UID)
|
||||
if(alert("Do you want to clear the linked pinpointer?", "Pinpointer reset", "Yes", "No") == "Yes")
|
||||
if(tgui_alert(user, "Do you want to clear the linked pinpointer?", "Pinpointer reset", list("Yes", "No")) == "Yes")
|
||||
to_chat(user, "<span class='notice'>[src] is ready to be linked to a new pinpointer.</span>")
|
||||
unlink()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user