tgui input lock

This commit is contained in:
Killian
2023-05-12 14:09:12 +01:00
parent 0cb392aabf
commit b2c5fc43f6
3 changed files with 19 additions and 5 deletions
+5
View File
@@ -39,6 +39,11 @@
return input(user, message, title, default) as message|null
else
return input(user, message, title, default) as text|null
//Client has TGUI input lock on; override whatever prevent_enter was specified beforehand
if(user.client.prefs.tgui_input_lock)
prevent_enter = TRUE
var/datum/tgui_input_text/text_input = new(user, message, title, default, max_length, multiline, encode, timeout, prevent_enter)
text_input.tgui_interact(user)
text_input.wait()