config: opció gameplay.pause_countdown per saltar el compte enrere de pausa
This commit is contained in:
@@ -2812,6 +2812,9 @@ void Game::updatePauseMenuUI() {
|
||||
switch (pause_menu_->getItemSelected()) {
|
||||
case 1:
|
||||
leaving_pause_menu_ = true;
|
||||
if (!Options::gameplay.pause_countdown) {
|
||||
pause_counter_ = 0; // salta el compte enrere de 3 segons
|
||||
}
|
||||
break;
|
||||
|
||||
case 2:
|
||||
@@ -2862,7 +2865,9 @@ void Game::renderPausedGame() {
|
||||
}
|
||||
|
||||
if (leaving_pause_menu_) {
|
||||
text_nokia_big2_->writeCentered(GAMECANVAS_CENTER_X, PLAY_AREA_FIRST_QUARTER_Y, std::to_string((pause_counter_ / 30) + 1));
|
||||
if (pause_counter_ > 0) {
|
||||
text_nokia_big2_->writeCentered(GAMECANVAS_CENTER_X, PLAY_AREA_FIRST_QUARTER_Y, std::to_string((pause_counter_ / 30) + 1));
|
||||
}
|
||||
} else {
|
||||
pause_menu_->render();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user