mirror of
https://github.com/Citadel-Station-13/Citadel-Station-13-RP.git
synced 2026-08-30 04:17:13 +01:00
fixes toggle hotkey button maybe (#4982)
This commit is contained in:
@@ -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"]")
|
||||
|
||||
Reference in New Issue
Block a user