Renombrado "section->subsection" por el mas apropiado "section->options"
This commit is contained in:
@@ -59,7 +59,7 @@ Title::~Title()
|
||||
void Title::init()
|
||||
{
|
||||
// Inicializa variables
|
||||
section->subsection = SUBSECTION_TITLE_1;
|
||||
section->options = SECTION_OPTIONS_TITLE_1;
|
||||
counter = 0;
|
||||
nextSection.name = SECTION_PROG_GAME;
|
||||
postFade = 0;
|
||||
@@ -95,13 +95,13 @@ void Title::update()
|
||||
{
|
||||
case 1: // 1 PLAYER
|
||||
section->name = SECTION_PROG_GAME;
|
||||
section->subsection = SUBSECTION_GAME_PLAY_1P;
|
||||
section->options = SECTION_OPTIONS_GAME_PLAY_1P;
|
||||
JA_StopMusic();
|
||||
break;
|
||||
|
||||
case 2: // 2 PLAYER
|
||||
section->name = SECTION_PROG_GAME;
|
||||
section->subsection = SUBSECTION_GAME_PLAY_2P;
|
||||
section->options = SECTION_OPTIONS_GAME_PLAY_2P;
|
||||
JA_StopMusic();
|
||||
break;
|
||||
|
||||
@@ -115,17 +115,17 @@ void Title::update()
|
||||
}
|
||||
|
||||
// Sección 1 - Titulo animandose
|
||||
if (section->subsection == SUBSECTION_TITLE_1)
|
||||
if (section->options == SECTION_OPTIONS_TITLE_1)
|
||||
{
|
||||
gameLogo->update();
|
||||
if (gameLogo->hasFinished())
|
||||
{
|
||||
section->subsection = SUBSECTION_TITLE_2;
|
||||
section->options = SECTION_OPTIONS_TITLE_2;
|
||||
}
|
||||
}
|
||||
|
||||
// Sección 2 - La pantalla con el titulo, el fondo animado y la música
|
||||
else if (section->subsection == SUBSECTION_TITLE_2)
|
||||
else if (section->options == SECTION_OPTIONS_TITLE_2)
|
||||
{
|
||||
// El contador solo sube si no estamos definiendo botones
|
||||
if (!defineButtons->isEnabled())
|
||||
@@ -169,7 +169,7 @@ void Title::render()
|
||||
// Dibuja el logo con el título del juego
|
||||
gameLogo->render();
|
||||
|
||||
if (section->subsection == SUBSECTION_TITLE_2)
|
||||
if (section->options == SECTION_OPTIONS_TITLE_2)
|
||||
{
|
||||
const color_t shadow = {0x14, 0x87, 0xc4};
|
||||
// 'PULSA 1P o 2P PARA JUGAR'
|
||||
@@ -291,7 +291,7 @@ void Title::checkInput()
|
||||
{
|
||||
if (input->checkInput(input_start, false, INPUT_USE_GAMECONTROLLER, i))
|
||||
{
|
||||
if (section->subsection == SUBSECTION_TITLE_2 || ALLOW_TITLE_ANIMATION_SKIP)
|
||||
if (section->options == SECTION_OPTIONS_TITLE_2 || ALLOW_TITLE_ANIMATION_SKIP)
|
||||
{
|
||||
fade->activate();
|
||||
postFade = i + 1;
|
||||
|
||||
Reference in New Issue
Block a user