Les notificacions ara accepten un vector de cadenes en lloc de una o dos cadenes

This commit is contained in:
2024-11-03 18:12:46 +01:00
parent 69a92cba66
commit f29eb2f411
6 changed files with 61 additions and 75 deletions

View File

@@ -40,9 +40,9 @@ namespace globalInputs
{
#ifdef ARCADE
const int index = code == section::Options::QUIT_WITH_CONTROLLER ? 116 : 94;
Notifier::get()->showText(lang::getText(index), std::string(), -1, exit_code);
Notifier::get()->showText({lang::getText(index), std::string()}, -1, exit_code);
#else
Notifier::get()->showText(lang::getText(94), std::string(), -1, exit_code);
Notifier::get()->showText({lang::getText(94), std::string()}, -1, exit_code);
#endif
}
}
@@ -51,7 +51,7 @@ namespace globalInputs
void reset()
{
section::name = section::Name::INIT;
Notifier::get()->showText("Reset");
Notifier::get()->showText({"Reset"});
}
// Activa o desactiva el audio
@@ -68,7 +68,7 @@ namespace globalInputs
JA_SetMusicVolume(0);
JA_SetSoundVolume(0);
}
Notifier::get()->showText("Audio " + boolToOnOff(options.audio.enabled));
Notifier::get()->showText({"Audio " + boolToOnOff(options.audio.enabled)});
}
// Comprueba los inputs que se pueden introducir en cualquier sección del juego
@@ -82,7 +82,7 @@ namespace globalInputs
{
Screen::get()->toggleVideoMode();
const std::string mode = options.video.mode == ScreenVideoMode::WINDOW ? "Window" : "Fullscreen";
Notifier::get()->showText(mode + " mode");
Notifier::get()->showText({mode + " mode"});
return;
}
@@ -91,7 +91,7 @@ namespace globalInputs
{
Screen::get()->decWindowSize();
const std::string size = std::to_string(options.video.window.size);
Notifier::get()->showText("Window size x" + size);
Notifier::get()->showText({"Window size x" + size});
return;
}
@@ -100,7 +100,7 @@ namespace globalInputs
{
Screen::get()->incWindowSize();
const std::string size = std::to_string(options.video.window.size);
Notifier::get()->showText("Window size x" + size);
Notifier::get()->showText({"Window size x" + size});
return;
}
#endif