From fa541671d6f5545a3c4c346ed6a9e4829eb8725f Mon Sep 17 00:00:00 2001 From: Timothy Teakettle <59849408+timothyteakettle@users.noreply.github.com> Date: Tue, 23 Mar 2021 21:44:19 +0000 Subject: [PATCH] yes --- code/modules/client/preferences.dm | 34 +++++++++++++++--------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/code/modules/client/preferences.dm b/code/modules/client/preferences.dm index 151b271d9e..1033c3014e 100644 --- a/code/modules/client/preferences.dm +++ b/code/modules/client/preferences.dm @@ -148,11 +148,11 @@ GLOBAL_LIST_EMPTY(preferences_datums) //Job preferences 2.0 - indexed by job title , no key or value implies never var/list/job_preferences = list() - // Want randomjob if preferences already filled - Donkie + // Want randomjob if preferences already filled - Donkie var/joblessrole = BERANDOMJOB //defaults to 1 for fewer assistants // 0 = character settings, 1 = game preferences - var/current_tab = 0 + var/current_tab = SETTINGS_TAB var/unlock_content = 0 @@ -274,13 +274,13 @@ GLOBAL_LIST_EMPTY(preferences_datums) update_preview_icon(current_tab) var/list/dat = list("
") - dat += "Character Settings" - dat += "Character Appearance" - dat += "Character Speech" - dat += "Loadout" - dat += "Game Preferences" - dat += "Content Preferences" - dat += "Keybindings" + dat += "Character Settings" + dat += "Character Appearance" + dat += "Character Speech" + dat += "Loadout" + dat += "Game Preferences" + dat += "Content Preferences" + dat += "Keybindings" if(!path) dat += "
Please create an account to save your preferences
" @@ -290,7 +290,7 @@ GLOBAL_LIST_EMPTY(preferences_datums) dat += "
" switch(current_tab) - if (0) // Character Settings# + if(SETTINGS_TAB) // Character Settings# if(path) var/savefile/S = new /savefile(path) if(S) @@ -366,7 +366,7 @@ GLOBAL_LIST_EMPTY(preferences_datums) dat += "" //Character Appearance - if(2) + if(APPEARANCE_TAB) if(path) var/savefile/S = new /savefile(path) if(S) @@ -670,7 +670,7 @@ GLOBAL_LIST_EMPTY(preferences_datums) dat += "" dat += "" - if(3) + if(SPEECH_TAB) if(path) var/savefile/S = new /savefile(path) if(S) @@ -700,7 +700,7 @@ GLOBAL_LIST_EMPTY(preferences_datums) dat += "" dat += "" - if (1) // Game Preferences + if(GAME_PREFERENCES_TAB) // Game Preferences dat += "" dat += "
" dat += "

General Settings

" dat += "UI Style: [UI_style]
" @@ -868,7 +868,7 @@ GLOBAL_LIST_EMPTY(preferences_datums) dat += "
" - if(4) + if(LOADOUT_TAB) //calculate your gear points from the chosen item gear_points = CONFIG_GET(number/initial_gear_points) var/list/chosen_gear = loadout_data["SAVE_[loadout_slot]"] @@ -987,7 +987,7 @@ GLOBAL_LIST_EMPTY(preferences_datums) dat += "
[loadout_item ? (loadout_item[LOADOUT_CUSTOM_DESCRIPTION] ? loadout_item[LOADOUT_CUSTOM_DESCRIPTION] : gear.description) : gear.description] Progress: [min(progress_made, unlockable.progress_required)]/[unlockable.progress_required]
" - if(5) // Content preferences + if(CONTENT_PREFERENCES_TAB) // Content preferences dat += "
" dat += "

Fetish content prefs

" dat += "Arousal:[arousable == TRUE ? "Enabled" : "Disabled"]
" @@ -1011,7 +1011,7 @@ GLOBAL_LIST_EMPTY(preferences_datums) dat += "Automatic Wagging: [(cit_toggles & NO_AUTO_WAG) ? "Disabled" : "Enabled"]
" dat += "
" dat += "
" - if(6) // Custom keybindings + if(KEYBINDINGS_TAB) // Custom keybindings dat += "Keybindings: [(hotkeys) ? "Hotkeys" : "Input"]
" dat += "Keybindings mode controls how the game behaves with tab and map/input focus.
If it is on Hotkeys, the game will always attempt to force you to map focus, meaning keypresses are sent \ directly to the map instead of the input. You will still be able to use the command bar, but you need to tab to do it every time you click on the game map.
\ @@ -2718,7 +2718,7 @@ GLOBAL_LIST_EMPTY(preferences_datums) save_character() if("tab") - if (href_list["tab"]) + if(href_list["tab"]) current_tab = text2num(href_list["tab"]) if(href_list["preference"] == "gear") if(href_list["clear_loadout"])