Create client preference for if hotkey mode is enabled by default on login or not.

* Adds preference setting for wether hotkeys should default to enabled or disabled.
* Fixes bug for CTRL+NUMPAD8 using old verb name for toggling head.
This commit is contained in:
Leshana
2018-02-23 14:16:53 -05:00
parent a47ce58f0a
commit 1d11b0d6e1
6 changed files with 27 additions and 3 deletions
@@ -104,6 +104,13 @@ var/list/_client_preferences_by_type
enabled_description = "Show"
disabled_description = "Hide"
/datum/client_preference/hotkeys_default
description ="Hotkeys Default"
key = "HUD_HOTKEYS"
enabled_description = "Enabled"
disabled_description = "Disabled"
enabled_by_default = FALSE // Backwards compatibility
/datum/client_preference/show_typing_indicator
description ="Typing indicator"
key = "SHOW_TYPING"
@@ -5,7 +5,8 @@
show_laws(0)
winset(src, null, "mainwindow.macro=borgmacro hotkey_toggle.is-checked=false input.focus=true input.background-color=#D3B5B5")
// Override the DreamSeeker macro with the borg version!
client.set_hotkeys_macro("borgmacro", "borghotkeymode")
// Forces synths to select an icon relevant to their module
if(!icon_selected)
+1 -1
View File
@@ -56,4 +56,4 @@
recalculate_vis()
//set macro to normal incase it was overriden (like cyborg currently does)
winset(src, null, "mainwindow.macro=macro hotkey_toggle.is-checked=false input.focus=true input.background-color=#D3B5B5")
client.set_hotkeys_macro("macro", "hotkeymode")