Don Melitonitzada la classe Notifier e independitzada de la classe Screen

Ara es poden afegir codis a les notificacions per identificarles
This commit is contained in:
2024-10-15 20:09:09 +02:00
parent e99c2c5265
commit de6508c37c
10 changed files with 506 additions and 463 deletions

View File

@@ -25,6 +25,7 @@
#include "jail_audio.h" // for JA_PlaySound, JA_DeleteSound, JA_L...
#include "lang.h" // for getText
#include "manage_hiscore_table.h" // for ManageHiScoreTable
#include "notifier.h" // for Notifier
#include "options.h" // for options
#include "param.h" // for param
#include "player.h" // for Player, PlayerStatus
@@ -2404,7 +2405,7 @@ void Game::checkEvents()
case SDLK_3:
{
auto_pop_balloons_ = !auto_pop_balloons_;
screen_->showNotification("auto_pop_balloons_ " + boolToString(auto_pop_balloons_));
Notifier::get()->showText("auto_pop_balloons_ " + boolToString(auto_pop_balloons_));
break;
}