forked from jaildesigner-jailgames/jaildoctors_dilemma
Trabajando en las notificaciones
This commit is contained in:
@@ -82,7 +82,7 @@ void Logo::checkEventHandler()
|
||||
}
|
||||
|
||||
// Comprueba las teclas que se han pulsado
|
||||
if ((eventHandler->type == SDL_KEYDOWN && eventHandler->key.repeat == 0) || (eventHandler->type == SDL_JOYBUTTONDOWN))
|
||||
if ((eventHandler->type == SDL_KEYUP && eventHandler->key.repeat == 0) || (eventHandler->type == SDL_JOYBUTTONUP))
|
||||
{
|
||||
switch (eventHandler->key.keysym.scancode)
|
||||
{
|
||||
@@ -125,6 +125,7 @@ void Logo::checkEventHandler()
|
||||
break;
|
||||
|
||||
default:
|
||||
section.subsection = SUBSECTION_LOGO_TO_TITLE;
|
||||
endSection();
|
||||
break;
|
||||
}
|
||||
@@ -317,12 +318,13 @@ void Logo::switchPalette()
|
||||
// Termina la sección
|
||||
void Logo::endSection()
|
||||
{
|
||||
if (options->online.enabled && options->online.jailerID == "")
|
||||
{
|
||||
section.name = SECTION_PROG_ENTER_ID;
|
||||
}
|
||||
else
|
||||
{
|
||||
section.name = (section.subsection == SUBSECTION_LOGO_TO_INTRO) ? SECTION_PROG_INTRO : SECTION_PROG_TITLE;
|
||||
}
|
||||
section.name = SECTION_PROG_ENTER_ID;
|
||||
//if (options->online.enabled && options->online.jailerID == "")
|
||||
//{
|
||||
// section.name = SECTION_PROG_ENTER_ID;
|
||||
//}
|
||||
//else
|
||||
//{
|
||||
// section.name = (section.subsection == SUBSECTION_LOGO_TO_INTRO) ? SECTION_PROG_INTRO : SECTION_PROG_TITLE;
|
||||
//}
|
||||
}
|
||||
Reference in New Issue
Block a user