user fixes

This commit is contained in:
Heroman
2022-06-23 19:01:07 +10:00
parent e70731d417
commit 43320ced84
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -31,7 +31,7 @@
// return tgui_input_list(user, message, title, buttons, timeout, autofocus)
// Client does NOT have tgui_input on: Returns regular input
if(!usr.client.prefs.tgui_input_mode || strict_byond)
if(!user.client.prefs.tgui_input_mode || strict_byond)
if(length(buttons) == 2)
return alert(user, message, title, buttons[1], buttons[2])
if(length(buttons) == 3)
+1 -1
View File
@@ -26,7 +26,7 @@
else
return
/// Client does NOT have tgui_input on: Returns regular input
if(!usr.client.prefs.tgui_input_mode && !strict_modern)
if(!user.client.prefs.tgui_input_mode && !strict_modern)
return input(user, message, title, default) as null|anything in items
var/datum/tgui_list_input/input = new(user, message, title, items, default, timeout)
input.tgui_interact(user)
+1 -1
View File
@@ -25,7 +25,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)
var/input_number = input(user, message, title, default) as null|num
return clamp(round_value ? round(input_number) : input_number, min_value, max_value)
var/datum/tgui_input_number/number_input = new(user, message, title, default, max_value, min_value, timeout, round_value)