Kaynağa Gözat

Fix initial value of sound/music labels in settings

Ivan Savenko 2 yıl önce
ebeveyn
işleme
1084da00df
1 değiştirilmiş dosya ile 7 ekleme ve 0 silme
  1. 7 0
      client/windows/settings/GeneralOptionsTab.cpp

+ 7 - 0
client/windows/settings/GeneralOptionsTab.cpp

@@ -142,6 +142,13 @@ GeneralOptionsTab::GeneralOptionsTab()
 
 	std::shared_ptr<CToggleButton> compactTownCreatureInfo = widget<CToggleButton>("compactTownCreatureInfoCheckbox");
 	compactTownCreatureInfo->setSelected(settings["gameTweaks"]["compactTownCreatureInfo"].Bool());
+
+	std::shared_ptr<CLabel> musicVolumeLabel = widget<CLabel>("musicValueLabel");
+	musicVolumeLabel->setText(std::to_string(CCS->musich->getVolume()) + "%");
+
+	std::shared_ptr<CLabel> soundVolumeLabel = widget<CLabel>("soundValueLabel");
+	musicVolumeLabel->setText(std::to_string(CCS->soundh->getVolume()) + "%");
+
 }