Ya se puede cambiar el jailerID desde el menu de opciones

This commit is contained in:
2023-09-25 21:48:45 +02:00
parent 08f3e04600
commit 769e057a81
7 changed files with 88 additions and 70 deletions

View File

@@ -478,13 +478,18 @@ void Title::update()
runInstructions(m_manual);
break;
case 12: // ACCEPT
case 12: // JAILERID:
runEnterID();
updateMenuLabels();
break;
case 13: // ACCEPT
applyOptions();
menu.active->reset();
menu.active = menu.title;
break;
case 13: // CANCEL
case 14: // CANCEL
options = &optionsPrevious;
updateMenuLabels();
menu.active->reset();
@@ -921,6 +926,11 @@ void Title::updateMenuLabels()
// HOW TO PLAY
menu.options->setItemCaption(i, lang->getText(2));
i++;
// JAILERID;
const std::string jailerID = options->online.jailerID == "" ? lang->getText(64) : options->online.jailerID;
menu.options->setItemCaption(i, "JAILERID: " + jailerID);
i++;
// ACCEPT
menu.options->setItemCaption(i, lang->getText(9)); // ACCEPT