Arreglados los cambios de lenguaje
This commit is contained in:
@@ -144,7 +144,7 @@ Title::Title(SDL_Renderer *renderer, Screen *screen, Input *input, Asset *asset,
|
||||
}
|
||||
|
||||
// Actualiza los textos de los menus
|
||||
// updateMenuLabels();
|
||||
updateMenuLabels();
|
||||
}
|
||||
|
||||
// Destructor
|
||||
@@ -252,14 +252,10 @@ void Title::update()
|
||||
JA_PlayMusic(titleMusic);
|
||||
}
|
||||
|
||||
// Actualiza el contador de ticks
|
||||
ticks = SDL_GetTicks();
|
||||
|
||||
dustBitmapR->update();
|
||||
dustBitmapL->update();
|
||||
|
||||
// Actualiza la lógica del titulo
|
||||
menu.active->update();
|
||||
fade->update();
|
||||
|
||||
if (fade->hasEnded())
|
||||
@@ -306,7 +302,7 @@ void Title::update()
|
||||
// Comprueba las entradas para el menu
|
||||
if (menuVisible == true)
|
||||
{
|
||||
menu.active->checkInput();
|
||||
menu.active->update();
|
||||
}
|
||||
|
||||
// Comprueba si se ha seleccionado algún item del menú
|
||||
@@ -318,14 +314,17 @@ void Title::update()
|
||||
postFade = 0;
|
||||
fade->activateFade();
|
||||
break;
|
||||
|
||||
case 1: // 2 PLAYERS
|
||||
postFade = 1;
|
||||
fade->activateFade();
|
||||
break;
|
||||
|
||||
case 2: // OPTIONS
|
||||
menu.active = menu.options;
|
||||
optionsPrevious = *options;
|
||||
break;
|
||||
|
||||
case 3: // QUIT
|
||||
postFade = 2;
|
||||
fade->activateFade();
|
||||
@@ -350,20 +349,24 @@ void Title::update()
|
||||
options->difficulty = DIFFICULTY_EASY;
|
||||
updateMenuLabels();
|
||||
break;
|
||||
|
||||
case 1: // PLAYER 1 CONTROLS
|
||||
updatePlayerInputs(0);
|
||||
updateMenuLabels();
|
||||
break;
|
||||
|
||||
case 3: // PLAYER 2 CONTROLS
|
||||
updatePlayerInputs(1);
|
||||
updateMenuLabels();
|
||||
break;
|
||||
|
||||
case 5: // Language
|
||||
options->language++;
|
||||
if (options->language == 3)
|
||||
options->language = 0;
|
||||
updateMenuLabels();
|
||||
break;
|
||||
|
||||
case 6: // Display mode
|
||||
switchFullScreenModeVar();
|
||||
if (options->fullScreenMode != 0)
|
||||
@@ -378,12 +381,14 @@ void Title::update()
|
||||
}
|
||||
updateMenuLabels();
|
||||
break;
|
||||
|
||||
case 8: // Windows size
|
||||
options->windowSize++;
|
||||
if (options->windowSize == 5)
|
||||
options->windowSize = 1;
|
||||
updateMenuLabels();
|
||||
break;
|
||||
|
||||
case 9: // FILTER
|
||||
if (options->filter == FILTER_LINEAL)
|
||||
options->filter = FILTER_NEAREST;
|
||||
@@ -391,6 +396,7 @@ void Title::update()
|
||||
options->filter = FILTER_LINEAL;
|
||||
updateMenuLabels();
|
||||
break;
|
||||
|
||||
case 10: // VSYNC
|
||||
if (options->vSync)
|
||||
options->vSync = false;
|
||||
@@ -398,14 +404,17 @@ void Title::update()
|
||||
options->vSync = true;
|
||||
updateMenuLabels();
|
||||
break;
|
||||
|
||||
case 11: // HOW TO PLAY
|
||||
runInstructions(INSTRUCTIONS_MODE_MANUAL);
|
||||
break;
|
||||
|
||||
case 12: // ACCEPT
|
||||
applyOptions();
|
||||
menu.active->reset();
|
||||
menu.active = menu.title;
|
||||
break;
|
||||
|
||||
case 13: // CANCEL
|
||||
options = &optionsPrevious;
|
||||
updateMenuLabels();
|
||||
|
||||
Reference in New Issue
Block a user