mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 02:34:00 +00:00
More TGUI Input Conversions
This commit is contained in:
@@ -37,7 +37,7 @@
|
||||
return
|
||||
|
||||
var/tmp_label = ""
|
||||
var/label_text = sanitizeSafe(input(user, "Inscribe some text into \the [initial(BB.name)]","Inscription",tmp_label), MAX_NAME_LEN)
|
||||
var/label_text = sanitizeSafe(tgui_input_text(user, "Inscribe some text into \the [initial(BB.name)]","Inscription",tmp_label,MAX_NAME_LEN), MAX_NAME_LEN)
|
||||
if(length(label_text) > 20)
|
||||
to_chat(user, "<font color='red'>The inscription can be at most 20 characters long.</font>")
|
||||
else if(!label_text)
|
||||
|
||||
Reference in New Issue
Block a user