summaryrefslogtreecommitdiffstats
path: root/game/client/settings.cc
diff options
context:
space:
mode:
authoruntodesu <kirill@untode.su>2025-03-15 19:08:44 +0500
committeruntodesu <kirill@untode.su>2025-03-15 19:08:44 +0500
commit0a396cde7f9a629038e1d7f85e582155744bc7c7 (patch)
tree2a74684f434e58500d31c5ef932f0257bf3fb593 /game/client/settings.cc
parent3a6cfe786a9e78188923849e3f65e2218b1af80c (diff)
downloadvoxelius-0a396cde7f9a629038e1d7f85e582155744bc7c7.tar.bz2
voxelius-0a396cde7f9a629038e1d7f85e582155744bc7c7.zip
Add a specific category for sound levels
Diffstat (limited to 'game/client/settings.cc')
-rw-r--r--game/client/settings.cc10
1 files changed, 9 insertions, 1 deletions
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<SettingValue *> values_all;
static std::vector<SettingValue *> 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<SettingValue_CheckBox *>(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();
}