/tg/ pref datums (part 1) (#16219)

* TG Prefs (Step 1: JSON savefiles)

* TG Prefs (Step 2: Preference Datum Code)

* TG Prefs (Step 3: Convert /datum/client_preferences)

* TG Prefs (Step 4: Clean up and finishing touches)

* Fix some weird compile errors from the rebase
This commit is contained in:
ShadowLarkens
2024-08-31 07:09:05 +10:00
committed by GitHub
parent 0cfc6e9e94
commit faac97e352
184 changed files with 4968 additions and 2198 deletions
+1 -1
View File
@@ -223,7 +223,7 @@ Any-Mode: (hotkey doesn't need to be on)
/client/proc/set_hotkeys_macro(macro_name = "macro", hotkey_macro_name = "hotkeymode", hotkeys_enabled = null)
// If hotkeys mode was not specified, fall back to choice of default in client preferences.
if(isnull(hotkeys_enabled))
hotkeys_enabled = is_preference_enabled(/datum/client_preference/hotkeys_default)
hotkeys_enabled = prefs?.read_preference(/datum/preference/toggle/hotkeys_default)
if(hotkeys_enabled)
winset(src, null, "mainwindow.macro=[hotkey_macro_name] hotkey_toggle.is-checked=true mapwindow.map.focus=true")