Merge pull request #4933 from VOREStation/vplk-macro-qol

Create client preference for if hotkey mode is enabled by default on login
This commit is contained in:
Anewbe
2018-02-24 11:03:03 -06:00
committed by GitHub
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")