mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-18 11:36:24 +01:00
TGUI input box conversions 1 (#63313)
This commit is contained in:
@@ -72,8 +72,8 @@
|
||||
if(mode)
|
||||
to_chat(user, span_notice("You turn on [src]."))
|
||||
//Now let them chose the text.
|
||||
var/str = reject_bad_text(stripped_input(user, "Label text?", "Set label","", MAX_NAME_LEN))
|
||||
if(!str || !length(str))
|
||||
var/str = reject_bad_text(tgui_input_text(user, "Label text", "Set Label", max_length = 64))
|
||||
if(!str)
|
||||
to_chat(user, span_warning("Invalid text!"))
|
||||
return
|
||||
label = str
|
||||
|
||||
@@ -146,7 +146,7 @@
|
||||
H.damageoverlaytemp = 9001
|
||||
H.update_damage_hud()
|
||||
return
|
||||
var/n_name = stripped_input(usr, "What would you like to label the paper?", "Paper Labelling", null, MAX_NAME_LEN)
|
||||
var/n_name = tgui_input_text(usr, "Enter a paper label", "Paper Labelling", max_length = MAX_NAME_LEN)
|
||||
if(((loc == usr || istype(loc, /obj/item/clipboard)) && usr.stat == CONSCIOUS))
|
||||
name = "paper[(n_name ? text("- '[n_name]'") : null)]"
|
||||
add_fingerprint(usr)
|
||||
|
||||
Reference in New Issue
Block a user