turned normal rendering into hotkey

This commit is contained in:
Dennis Eichhorn 2024-11-10 23:43:26 +01:00
parent 39714d68a8
commit e9e8213145
2 changed files with 9 additions and 2 deletions

View File

@ -249,6 +249,7 @@ struct CSettings {
// UI // UI
uint64 ui_visibility_flags = 0; uint64 ui_visibility_flags = 0;
uint64 game_visibility_flags = 0; uint64 game_visibility_flags = 0;
uint64 debug_visibility_flags = 0;
// HUD // HUD
bool game_hud_animated; bool game_hud_animated;
@ -535,6 +536,8 @@ void load_settings(CSettings* __restrict client_settings, char* data)
client_settings->ui_visibility_flags = strtoull(pos, &pos, 10); client_settings->ui_visibility_flags = strtoull(pos, &pos, 10);
} else if (strncmp(name, "_visibility_flags", sizeof("_visibility_flags") - 1) == 0) { } else if (strncmp(name, "_visibility_flags", sizeof("_visibility_flags") - 1) == 0) {
client_settings->game_visibility_flags = strtoull(pos, &pos, 10); client_settings->game_visibility_flags = strtoull(pos, &pos, 10);
} else if (strncmp(name, "_debug_visibility_flags", sizeof("_debug_visibility_flags") - 1) == 0) {
client_settings->debug_visibility_flags = strtoull(pos, &pos, 10);
} else if (strncmp(name, "_theme", sizeof("_theme") - 1) == 0) { } else if (strncmp(name, "_theme", sizeof("_theme") - 1) == 0) {
pos += strcpy_to_eol(pos, client_settings->game_theme); pos += strcpy_to_eol(pos, client_settings->game_theme);
} else if (strncmp(name, "_ui_dim", sizeof("_ui_dim") - 1) == 0) { } else if (strncmp(name, "_ui_dim", sizeof("_ui_dim") - 1) == 0) {

View File

@ -74,10 +74,14 @@
#define SETTING_TYPE_DISABLED 0x00 #define SETTING_TYPE_DISABLED 0x00
#define SETTING_TYPE_UNLIMITED 0x00 #define SETTING_TYPE_UNLIMITED 0x00
#define SETTING_DEBUG_VISIBILITY_WIREFRAME 1
#define SETTING_DEBUG_VISIBILITY_DEBUG 2
#define SETTING_DEBUG_VISIBILITY_NORMALS 4
#define SETTING_UI_VISIBILITY_FPS 1 #define SETTING_UI_VISIBILITY_FPS 1
#define SETTING_UI_VISIBILITY_APM 2 #define SETTING_UI_VISIBILITY_APM 2
#define SETTING_UI_VISIBILITY_DEBUG 4 #define SETTING_UI_VISIBILITY__ 4
#define SETTING_UI_VISIBILITY_WIREFRAME 8 #define SETTING_UI_VISIBILITY___ 8
#define SETTING_UI_VISIBILITY_HOTKEYS 16 #define SETTING_UI_VISIBILITY_HOTKEYS 16
#define SETTING_UI_VISIBILITY_XP_BAR 32 #define SETTING_UI_VISIBILITY_XP_BAR 32
#define SETTING_UI_VISIBILITY_COOLDOWN_TIMER 64 #define SETTING_UI_VISIBILITY_COOLDOWN_TIMER 64