Añadidos nuevos iconos para las notificaciones. Rediseñada la notificación de login. Arreglado bug: No se podia elegir un icono para las notificaciones que no fuera de la primera fila

This commit is contained in:
2022-12-29 11:58:32 +01:00
parent b2061c86d2
commit c7fcbd0258
4 changed files with 5 additions and 5 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 433 B

After

Width:  |  Height:  |  Size: 523 B

View File

@@ -222,7 +222,7 @@ void Notify::showText(std::string text1, std::string text2, int icon)
{
Sprite *sp = new Sprite({0, 0, iconSize, iconSize}, iconTexture, renderer);
sp->setPos({padding, padding, iconSize, iconSize});
sp->setSpriteClip({iconSize * icon, 0, iconSize, iconSize});
sp->setSpriteClip({iconSize * (icon % 10), iconSize * (icon / 10), iconSize, iconSize});
sp->render();
delete sp;
}

View File

@@ -19,7 +19,7 @@ Director::Director(int argc, char *argv[])
section->subsection = SUBSECTION_LOGO_TO_INTRO;
#ifdef DEBUG
section->name = SECTION_PROG_GAME;
section->name = SECTION_PROG_LOGO;
#endif
// Crea e inicializa las opciones del programa

View File

@@ -296,11 +296,11 @@ void EnterID::initOnline()
jscore::init(options->online.server, options->online.port);
#ifdef DEBUG
const std::string caption = options->online.jailerID + " IS LOGGED IN (DEBUG)";
const std::string caption = "IS LOGGED IN (DEBUG)";
#else
const std::string caption = options->online.jailerID + " IS LOGGED IN";
const std::string caption = "IS LOGGED IN";
#endif
screen->showNotification(caption);
screen->showNotification(options->online.jailerID, caption, 11);
if (options->console)
{
std::cout << caption << std::endl;