idem
This commit is contained in:
@@ -16,7 +16,7 @@ DefineButtons::DefineButtons(std::unique_ptr<Text> text)
|
||||
// Inicializa variables
|
||||
enabled = false;
|
||||
x = param.game.width / 2;
|
||||
y = param.title.pressStartPosition;
|
||||
y = param.title.press_start_position;
|
||||
indexController = 0;
|
||||
indexButton = 0;
|
||||
|
||||
@@ -59,7 +59,7 @@ void DefineButtons::render()
|
||||
{
|
||||
if (enabled)
|
||||
{
|
||||
text->writeCentered(x, y - 10, lang::getText(100) + std::to_string(options.controller[indexController].playerId));
|
||||
text->writeCentered(x, y - 10, lang::getText(100) + std::to_string(options.controller[indexController].player_id));
|
||||
text->writeCentered(x, y, controllerNames[indexController]);
|
||||
text->writeCentered(x, y + 10, buttons[indexButton].label);
|
||||
}
|
||||
@@ -172,7 +172,7 @@ void DefineButtons::saveBindingsToOptions()
|
||||
// Intercambia los jugadores asignados a los dos primeros mandos
|
||||
void DefineButtons::swapControllers()
|
||||
{
|
||||
const int temp = options.controller[0].playerId;
|
||||
options.controller[0].playerId = options.controller[1].playerId;
|
||||
options.controller[1].playerId = temp;
|
||||
const int temp = options.controller[0].player_id;
|
||||
options.controller[0].player_id = options.controller[1].player_id;
|
||||
options.controller[1].player_id = temp;
|
||||
}
|
||||
Reference in New Issue
Block a user