Merge pull request #13139 from ItsSelis/fallback-behavior

Changed TGUI fallback behavior
This commit is contained in:
Casey
2022-06-22 22:32:34 -04:00
committed by CHOMPStation2
parent e69110c2f9
commit b326ad5267
9 changed files with 76 additions and 17 deletions

View File

@@ -26,9 +26,9 @@
else
return
// A gentle nudge - you should not be using TGUI alert for anything other than a simple message.
if(length(buttons) > 3)
log_tgui(user, "Error: TGUI Alert initiated with too many buttons. Use a list.", "TguiAlert")
return tgui_input_list(user, message, title, buttons, timeout, autofocus)
//if(length(buttons) > 3)
// log_tgui(user, "Error: TGUI Alert initiated with too many buttons. Use a list.", "TguiAlert")
// 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)