forked from jaildesigner-jailgames/jaildoctors_dilemma
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:
Binary file not shown.
|
Before Width: | Height: | Size: 433 B After Width: | Height: | Size: 523 B |
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user