Input Conversion Part 1

This commit is contained in:
ItsSelis
2022-06-19 03:05:03 +02:00
parent 37daa28920
commit 06c9b26252
134 changed files with 342 additions and 342 deletions
@@ -154,7 +154,7 @@ list[](
var/new_data = null
switch(type_to_use)
if("string")
new_data = input(usr, "Now type in a string.","[src] string writing", istext(default) ? default : null) as null|text
new_data = tgui_input_text(usr, "Now type in a string.","[src] string writing", istext(default) ? default : null)
if(istext(new_data) && holder.check_interactivity(user) )
to_chat(user, "<span class='notice'>You input [new_data] into the pin.</span>")
return new_data
@@ -122,7 +122,7 @@
switch(type_to_use)
if("string")
accepting_refs = 0
new_data = input(usr, "Now type in a string.","[src] string writing") as null|text
new_data = tgui_input_text(usr, "Now type in a string.","[src] string writing")
new_data = sanitizeSafe(new_data, MAX_MESSAGE_LEN, 0, 0)
if(istext(new_data) && CanInteract(user, GLOB.tgui_physical_state))
data_to_write = new_data