mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-08-25 14:16:58 +01:00
[MIRROR] Encode changes (#11301)
Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
co-authored by
Kashargul
parent
5e6a4639d0
commit
4e2361f8df
@@ -183,7 +183,7 @@
|
||||
if(!check_interactivity(M))
|
||||
return
|
||||
|
||||
var/input = sanitizeSafe(tgui_input_text(usr, "What do you want to name this?", "Rename", src.name, MAX_NAME_LEN), MAX_NAME_LEN)
|
||||
var/input = sanitizeSafe(tgui_input_text(usr, "What do you want to name this?", "Rename", src.name, MAX_NAME_LEN, encode = FALSE), MAX_NAME_LEN)
|
||||
if(src && input)
|
||||
to_chat(M, span_notice("The machine now has a label reading '[input]'."))
|
||||
name = input
|
||||
|
||||
@@ -68,7 +68,7 @@ a creative player the means to solve many problems. Circuits are held inside an
|
||||
if(!check_interactivity(M))
|
||||
return
|
||||
|
||||
var/input = sanitizeSafe(tgui_input_text(M, "What do you want to name the circuit?", "Rename", src.name, MAX_NAME_LEN), MAX_NAME_LEN)
|
||||
var/input = sanitizeSafe(tgui_input_text(M, "What do you want to name the circuit?", "Rename", src.name, MAX_NAME_LEN, encode = FALSE), MAX_NAME_LEN)
|
||||
if(src && input && assembly.check_interactivity(M))
|
||||
to_chat(M, span_notice("The circuit '[src.name]' is now labeled '[input]'."))
|
||||
displayed_name = input
|
||||
|
||||
@@ -155,7 +155,6 @@ list[](
|
||||
switch(type_to_use)
|
||||
if("string")
|
||||
new_data = tgui_input_text(user, "Now type in a string.","[src] string writing", istext(default) ? default : null, MAX_NAME_LEN)
|
||||
new_data = sanitize(new_data,MAX_NAME_LEN)
|
||||
if(istext(new_data) && holder.check_interactivity(user) )
|
||||
to_chat(user, span_notice("You input [new_data] into the pin."))
|
||||
return new_data
|
||||
|
||||
Reference in New Issue
Block a user