From 0a396cde7f9a629038e1d7f85e582155744bc7c7 Mon Sep 17 00:00:00 2001 From: untodesu Date: Sat, 15 Mar 2025 19:08:44 +0500 Subject: Add a specific category for sound levels --- game/client/settings.cc | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'game/client/settings.cc') diff --git a/game/client/settings.cc b/game/client/settings.cc index 65679cb..d239532 100644 --- a/game/client/settings.cc +++ b/game/client/settings.cc @@ -223,6 +223,8 @@ static std::string str_gamepad_checkbox_tooltip; static std::string str_video_gui; +static std::string str_sound_levels; + static std::vector values_all; static std::vector values[NUM_LOCATIONS]; @@ -619,6 +621,8 @@ static void on_language_set(const LanguageSetEvent &event) str_video_gui = language::resolve("settings.video.gui"); + str_sound_levels = language::resolve("settings.sound.levels"); + for(SettingValue *value : values_all) { if(value->type == setting_type::CHECKBOX) { auto checkbox = static_cast(value); @@ -734,8 +738,12 @@ static void layout_video(void) static void layout_sound(void) { - if(ImGui::BeginChild("###settings.sound.child")) + if(ImGui::BeginChild("###settings.sound.child")) { layout_values(settings_location::SOUND); + ImGui::SeparatorText(str_sound_levels.c_str()); + layout_values(settings_location::SOUND_LEVELS); + } + ImGui::EndChild(); } -- cgit