change volume to start timer

This commit is contained in:
2025-03-29 11:49:19 +01:00
parent e0de2b5f90
commit ec40495328
6 changed files with 34 additions and 28 deletions

View File

@@ -37,10 +37,10 @@ void SettingsMainAppMenu::computeFrame() {
}
case 3 : {
if (this->playerCursor.movedLeft()) {
this->settings->lowerMasterVolume();
this->settings->shortenStartTimer();
}
if (this->playerCursor.movedRight()) {
this->settings->raiseMasterVolume();
this->settings->lengthenStartTimer();
}
break;
}
@@ -73,7 +73,7 @@ void SettingsMainAppMenu::drawFrame() const {
this->placeText(text, this->playerCursor, "CHANGE KEYBINDS", 5.f, 15.f, sf::Vector2u{0, 0});
this->placeText(text, this->playerCursor, "CHANGE CONTROLS", 5.f, 25.f, sf::Vector2u{0, 1});
this->placeText(text, this->playerCursor, "< WINDOW SIZE: " + std::to_string(windowSize.x) + "x" + std::to_string(windowSize.y) + " >", 5.f, 35.f, sf::Vector2u{0, 2});
this->placeText(text, this->playerCursor, "< VOLUME: " + std::to_string(this->settings->getMasterVolume()) + "% >", 5.f, 45.f, sf::Vector2u{0, 3});
this->placeText(text, this->playerCursor, "< START TIMER: " + std::to_string(this->settings->getStartTimerLength()) + "s >", 5.f, 45.f, sf::Vector2u{0, 3});
this->renderWindow->display();
}