mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-25 04:57:47 +01:00
@@ -154,7 +154,7 @@ list[](
|
||||
var/new_data = null
|
||||
switch(type_to_use)
|
||||
if("string")
|
||||
new_data = sanitizeSafe(tgui_input_text(user, "Now type in a string.","[src] string writing", istext(default) ? default : null, MAX_NAME_LEN, encode = FALSE), MAX_NAME_LEN, 1, 0)
|
||||
new_data = sanitizeSafe(tgui_input_text(user, "Now type in a string.","[src] string writing", istext(default) ? default : null, MAX_NAME_LEN, encode = FALSE), MAX_NAME_LEN, 0, 0)
|
||||
if(istext(new_data) && holder.check_interactivity(user) )
|
||||
to_chat(user, span_notice("You input [new_data] into the pin."))
|
||||
return new_data
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
name = "char pin"
|
||||
|
||||
/datum/integrated_io/char/ask_for_pin_data(mob/user)
|
||||
var/new_data = sanitizeSafe(tgui_input_text(user, "Please type in one character.","[src] char writing", encode = FALSE), 1, 1, 0)
|
||||
var/new_data = sanitizeSafe(tgui_input_text(user, "Please type in one character.","[src] char writing", encode = FALSE), 1, 0, 0)
|
||||
if(holder.check_interactivity(user) )
|
||||
to_chat(user, span_notice("You input [new_data ? "new_data" : "NULL"] into the pin."))
|
||||
write_data_to_pin(new_data)
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
/datum/integrated_io/string/ask_for_pin_data(mob/user)
|
||||
var/new_data = tgui_input_text(user, "Please type in a string.","[src] string writing", encode = FALSE)
|
||||
new_data = sanitizeSafe(new_data, MAX_MESSAGE_LEN, 1, 0)
|
||||
new_data = sanitizeSafe(new_data, MAX_MESSAGE_LEN, 0, 0)
|
||||
|
||||
if(new_data && holder.check_interactivity(user) )
|
||||
to_chat(user, span_notice("You input [new_data ? "new_data" : "NULL"] into the pin."))
|
||||
|
||||
@@ -123,7 +123,7 @@
|
||||
if("string")
|
||||
accepting_refs = 0
|
||||
new_data = tgui_input_text(user, "Now type in a string.","[src] string writing", null, MAX_MESSAGE_LEN, encode = FALSE)
|
||||
new_data = sanitizeSafe(new_data, MAX_MESSAGE_LEN, 1, 0)
|
||||
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
|
||||
to_chat(user, span_notice("You set \the [src]'s memory to \"[new_data]\"."))
|
||||
|
||||
Reference in New Issue
Block a user