From 458e0005690ea9d579588a0a12368fc2c2c9a93a Mon Sep 17 00:00:00 2001 From: untodesu Date: Tue, 1 Jul 2025 03:08:39 +0500 Subject: I hyper-focued on refactoring again - I put a cool-sounding "we are number one" remix on repeat and straight up grinded the entire repository to a better state until 03:09 AM. I guess I have something wrong in my brain that makes me do this shit --- src/game/client/settings.hh | 83 --------------------------------------------- 1 file changed, 83 deletions(-) delete mode 100644 src/game/client/settings.hh (limited to 'src/game/client/settings.hh') diff --git a/src/game/client/settings.hh b/src/game/client/settings.hh deleted file mode 100644 index 180f384..0000000 --- a/src/game/client/settings.hh +++ /dev/null @@ -1,83 +0,0 @@ -#ifndef CLIENT_SETTINGS_HH -#define CLIENT_SETTINGS_HH 1 -#pragma once - -class ConfigBoolean; -class ConfigString; - -class ConfigInt; -class ConfigFloat; -class ConfigUnsigned; - -class ConfigKeyBind; -class ConfigGamepadAxis; -class ConfigGamepadButton; - -enum class settings_location : unsigned int { - GENERAL = 0x0000U, - KEYBOARD_MOVEMENT = 0x0001U, - KEYBOARD_GAMEPLAY = 0x0002U, - KEYBOARD_MISC = 0x0003U, - GAMEPAD = 0x0004U, - GAMEPAD_MOVEMENT = 0x0005U, - GAMEPAD_GAMEPLAY = 0x0006U, - GAMEPAD_MISC = 0x0007U, - MOUSE = 0x0008U, - VIDEO = 0x0009U, - VIDEO_GUI = 0x000AU, - SOUND = 0x000BU, - SOUND_LEVELS = 0x000CU, - COUNT = 0x000DU, -}; - -namespace settings -{ -void init(void); -void init_late(void); -void shutdown(void); -void layout(void); -} // namespace settings - -namespace settings -{ -void add_checkbox(int priority, ConfigBoolean& value, settings_location location, const char* name, bool tooltip); -} // namespace settings - -namespace settings -{ -void add_input(int priority, ConfigInt& value, settings_location location, const char* name, bool tooltip); -void add_input(int priority, ConfigFloat& value, settings_location location, const char* name, bool tooltip, const char* format = "%.3f"); -void add_input(int priority, ConfigUnsigned& value, settings_location location, const char* name, bool tooltip); -void add_input(int priority, ConfigString& value, settings_location location, const char* name, bool tooltip, bool allow_whitespace); -} // namespace settings - -namespace settings -{ -void add_slider(int priority, ConfigInt& value, settings_location location, const char* name, bool tooltip); -void add_slider(int priority, ConfigFloat& value, settings_location location, const char* name, bool tooltip, const char* format = "%.3f"); -void add_slider(int priority, ConfigUnsigned& value, settings_location location, const char* name, bool tooltip); -} // namespace settings - -namespace settings -{ -void add_stepper(int priority, ConfigInt& value, settings_location location, const char* name, bool tooltip); -void add_stepper(int priority, ConfigUnsigned& value, settings_location location, const char* name, bool tooltip); -} // namespace settings - -namespace settings -{ -void add_keybind(int priority, ConfigKeyBind& value, settings_location location, const char* name); -} // namespace settings - -namespace settings -{ -void add_gamepad_axis(int priority, ConfigGamepadAxis& value, settings_location location, const char* name); -void add_gamepad_button(int priority, ConfigGamepadButton& value, settings_location location, const char* name); -} // namespace settings - -namespace settings -{ -void add_language_select(int priority, settings_location location, const char* name); -} // namespace settings - -#endif // CLIENT_SETTINGS_HH -- cgit