Eliminado todo el código de las notificaciones

This commit is contained in:
2024-05-31 19:38:25 +02:00
parent d13e4daf25
commit ff1227010b
11 changed files with 123 additions and 615 deletions

View File

@@ -2,7 +2,6 @@
#include <SDL2/SDL.h>
#include "asset.h"
#include "notify.h"
#include "utils.h"
#include "../const.h"
#include <vector>
@@ -22,7 +21,6 @@ private:
Asset *asset; // Objeto con el listado de recursos
SDL_Texture *gameCanvas; // Textura para completar la ventana de juego hasta la pantalla completa
options_t *options; // Variable con todas las opciones del programa
Notify *notify; // Dibuja notificaciones por pantalla
// Variables
int windowWidth; // Ancho de la pantalla o ventana
@@ -55,12 +53,6 @@ private:
// Dibuja el fade
void renderFade();
// Dibuja las notificaciones
void renderNotifications();
// Establece el tamaño de las notificaciones
void setNotificationSize();
public:
// Constructor
Screen(SDL_Window *window, SDL_Renderer *renderer, Asset *asset, options_t *options);
@@ -125,12 +117,6 @@ public:
// Dibuja los efectos
void renderFX();
// Actualiza el notificador
void updateNotifier();
// Muestra una notificación de texto por pantalla;
void showNotification(std::string text1 = "", std::string text2 = "", int icon = -1);
};
#endif