fix: la clase title no hacía fade al pasar al modo demo

This commit is contained in:
2024-07-07 22:48:00 +02:00
parent caca21cba5
commit dfc14da179
6 changed files with 44 additions and 24 deletions

View File

@@ -69,9 +69,9 @@ void DefineButtons::render()
{
if (enabled)
{
text->writeCentered(x, y - 20, "PLAYER " + std::to_string(indexController + 1));
text->writeCentered(x, y - 10, controllerNames[indexController]);
text->writeCentered(x, y, buttons[indexButton].label);
text->writeCentered(x, y - 10, "PLAYER " + std::to_string(indexController + 1));
text->writeCentered(x, y, controllerNames[indexController]);
text->writeCentered(x, y + 10, buttons[indexButton].label);
}
}
@@ -143,6 +143,8 @@ void DefineButtons::incIndexButton()
// Guarda los cambios en las opciones
saveBindingsToOptions();
//input->allActive(indexController);
// Reinicia variables
indexButton = 0;
indexController = 0;