ALL runtimes

ALL runtimes
This commit is contained in:
Heroman
2022-06-23 18:48:28 +10:00
parent cb4b8ee27b
commit e70731d417
15 changed files with 61 additions and 53 deletions
+2 -2
View File
@@ -64,7 +64,7 @@
/// The lifespan of the tgui_modal, after which the window will close and delete itself.
var/timeout
/// The bool that controls if this modal should grab window focus
var/autofocus
var/autofocus
/// Boolean field describing if the tgui_modal was closed by the user.
var/closed
@@ -117,7 +117,7 @@
/datum/tgui_alert/tgui_data(mob/user)
var/list/data = list()
if(timeout)
.["timeout"] = CLAMP01((timeout - (world.time - start_time) - 1 SECONDS) / (timeout - 1 SECONDS))
data["timeout"] = CLAMP01((timeout - (world.time - start_time) - 1 SECONDS) / (timeout - 1 SECONDS))
return data
/datum/tgui_alert/tgui_act(action, list/params)
+1 -1
View File
@@ -28,7 +28,7 @@
else
return
// Client does NOT have tgui_input on: Returns regular input
if(!usr.client.prefs.tgui_input_mode)
if(!user.client.prefs.tgui_input_mode)
if(encode)
if(multiline)
return stripped_multiline_input(user, message, title, default, max_length)