sound volumes are now read from and saved to config.rc + bugfix
- fixed calling of IMGUIClear() when the view state changed (was previously called only when the game state changed)
This commit is contained in:
+4
-7
@@ -663,22 +663,19 @@ void View::DrawUiHighscore() {
|
||||
void View::DrawUiOptions() {
|
||||
DrawPageTitle ("Options");
|
||||
SelectFont ("console.ttf size=23");
|
||||
|
||||
// Enter your name
|
||||
std::string player_name = GetModel()->GetPlayerName();
|
||||
|
||||
Engine::GUI::Label (1, "Effects Volume: ", screen_right * 0.5 - 150, 240);
|
||||
Engine::GUI::Label (10, "Effects Volume: ", screen_right * 0.5 - 150, 240);
|
||||
|
||||
float effects_volume = Engine::GetEffectsVolume();
|
||||
if (Engine::GUI::VerticalSlider (2, screen_right * 0.5 - 100, 250, 250, 16, 0., 1., effects_volume)) {
|
||||
if (Engine::GUI::VerticalSlider (1, screen_right * 0.5 - 100, 250, 250, 16, 0., 1., effects_volume)) {
|
||||
Engine::LogDebug ("Setting effects volume to: %f", effects_volume);
|
||||
Engine::SetEffectsVolume(effects_volume);
|
||||
}
|
||||
|
||||
Engine::GUI::Label (3, "Music Volume: ", screen_right * 0.5 - 150, 300);
|
||||
Engine::GUI::Label (11, "Music Volume: ", screen_right * 0.5 - 150, 300);
|
||||
|
||||
float music_volume = Engine::GetMusicVolume();
|
||||
if (Engine::GUI::VerticalSlider (4, screen_right * 0.5 - 100, 310, 250, 16, 0., 1., music_volume)) {
|
||||
if (Engine::GUI::VerticalSlider (2, screen_right * 0.5 - 100, 310, 250, 16, 0., 1., music_volume)) {
|
||||
Engine::LogDebug ("Setting music volume to: %f", music_volume);
|
||||
Engine::SetMusicVolume(music_volume);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user