Añadido botón de servicio al titulo

This commit is contained in:
2024-09-09 13:31:37 +02:00
parent 7e1085ea42
commit 1b2d1c5786
6 changed files with 65 additions and 34 deletions

View File

@@ -20,17 +20,17 @@ DefineButtons::DefineButtons(Input *input, Text *text, param_t *param, options_t
buttons.clear();
db_button_t button;
button.label = "DISPARO IZQUIERDA";
button.label = "DISPARAR CAP A L'ESQUERRA";
button.input = input_fire_left;
button.button = SDL_CONTROLLER_BUTTON_X;
buttons.push_back(button);
button.label = "DISPARO CENTRO";
button.label = "DISPARAR CAP AMUNT";
button.input = input_fire_center;
button.button = SDL_CONTROLLER_BUTTON_Y;
buttons.push_back(button);
button.label = "DISPARO DERECHA";
button.label = "DISPARAR CAP A LA DRETA";
button.input = input_fire_right;
button.button = SDL_CONTROLLER_BUTTON_RIGHTSHOULDER;
buttons.push_back(button);
@@ -40,7 +40,7 @@ DefineButtons::DefineButtons(Input *input, Text *text, param_t *param, options_t
button.button = SDL_CONTROLLER_BUTTON_START;
buttons.push_back(button);
button.label = "SALIR DEL JUEGO";
button.label = "SERVEI";
button.input = input_exit;
button.button = SDL_CONTROLLER_BUTTON_BACK;
buttons.push_back(button);
@@ -69,7 +69,7 @@ void DefineButtons::render()
{
if (enabled)
{
text->writeCentered(x, y - 10, "PLAYER " + std::to_string(indexController + 1));
text->writeCentered(x, y - 10, "JUGADOR " + std::to_string(indexController + 1));
text->writeCentered(x, y, controllerNames[indexController]);
text->writeCentered(x, y + 10, buttons[indexButton].label);
}