Afegida confirmació per eixir del joc

This commit is contained in:
2024-09-25 09:19:12 +02:00
parent 2f152915ed
commit 6ad1bca29f
14 changed files with 156 additions and 16 deletions

View File

@@ -504,4 +504,10 @@ void Screen::displayInfo()
// Resolution
dbg_print(0, 0, infoResolution.c_str(), 255, 255, 0);
}
}
// Indica si hay alguna notificación activa en pantalla
bool Screen::notificationsAreActive()
{
return notify->active();
}

View File

@@ -134,6 +134,9 @@ public:
// Muestra una notificación de texto por pantalla;
void showNotification(std::string text1 = "", std::string text2 = "", int icon = -1);
// Indica si hay alguna notificación activa en pantalla
bool notificationsAreActive();
// Obtiene el puntero al renderizador
SDL_Renderer *getRenderer();
};