ServiceMenu fix: refresc visual al canviar els mandos dels jugadors
This commit is contained in:
@@ -49,7 +49,7 @@ void ServiceMenu::toggle() {
|
|||||||
|
|
||||||
if (enabled_) {
|
if (enabled_) {
|
||||||
// Primero resetea el estado y luego muestra la animación
|
// Primero resetea el estado y luego muestra la animación
|
||||||
//reset();
|
// reset();
|
||||||
Options::gamepad_manager.assignAndLinkGamepads();
|
Options::gamepad_manager.assignAndLinkGamepads();
|
||||||
renderer_->show(this);
|
renderer_->show(this);
|
||||||
} else {
|
} else {
|
||||||
@@ -339,8 +339,10 @@ void ServiceMenu::initializeOptions() {
|
|||||||
options_.push_back(std::make_unique<ActionOption>(
|
options_.push_back(std::make_unique<ActionOption>(
|
||||||
Lang::getText("[SERVICE_MENU] SWAP_CONTROLLERS"),
|
Lang::getText("[SERVICE_MENU] SWAP_CONTROLLERS"),
|
||||||
SettingsGroup::CONTROLS,
|
SettingsGroup::CONTROLS,
|
||||||
[]() {
|
[this]() {
|
||||||
Options::gamepad_manager.swapPlayers();
|
Options::gamepad_manager.swapPlayers();
|
||||||
|
adjustListValues(); // Sincroniza el valor de las opciones de lista (como MANDO1) con los datos reales
|
||||||
|
updateOptionPairs(); // Actualiza los pares de texto <opción, valor> que se van a dibujar
|
||||||
}));
|
}));
|
||||||
|
|
||||||
// VIDEO
|
// VIDEO
|
||||||
|
|||||||
Reference in New Issue
Block a user