fixes toggle hotkey button maybe (#4982)

This commit is contained in:
silicons
2023-01-25 18:19:45 +01:00
committed by GitHub
parent ab6427c410
commit 52cbc793ad
3 changed files with 15 additions and 1 deletions
+4
View File
@@ -62,9 +62,13 @@
apply_macro_set(SKIN_MACROSET_CLASSIC_INPUT, SSinput.macroset_classic_input)
set_hotkeys_preference()
set_hotkeys_button(prefs_override.hotkeys)
/client/proc/set_hotkeys_preference(datum/preferences/prefs_override = prefs)
if(prefs_override.hotkeys)
winset(src, null, "map.focus=true input.background-color=[COLOR_INPUT_DISABLED] mainwindow.macro=[SKIN_MACROSET_HOTKEYS]")
else
winset(src, null, "input.focus=true input.background-color=[COLOR_INPUT_ENABLED] mainwindow.macro=[SKIN_MACROSET_CLASSIC_INPUT]")
/client/proc/set_hotkeys_button(toggled)
winset(src, "hotkey_toggle", "is-checked=[toggled? "true" : "false"]")