Win32 UI: Add a System Language menu that's dynamically created. Also fix several small bugs where the UI wouldn't switch languages on the Pause screen, and in a couple other spots.

This commit is contained in:
The Dax committed 2013-09-04 08:00:50 -04:00
1 parent d69d33b0da
commit aebd5156a5
6 files changed
+97 -5

No files matched your search

+11 -1
View File
@@ -551,6 +551,9 @@ void MainScreen::sendMessage(const char *message, const char *value) {
if (!strcmp(message, "boot")) {
screenManager()->switchScreen(new EmuScreen(value));
}
if (!strcmp(message, "language")) {
RecreateViews();
}
}
void MainScreen::update(InputState &input) {
@@ -710,7 +713,8 @@ void GamePauseScreen::CreateViews() {
}
UI::EventReturn GamePauseScreen::OnGameSettings(UI::EventParams &e) {
screenManager()->push(new GameSettingsScreen(gamePath_));
screenManager()->push(new GameSettingsScreen(gamePath_));
RecreateViews();
return UI::EVENT_DONE;
}
@@ -748,3 +752,9 @@ UI::EventReturn GamePauseScreen::OnCwCheat(UI::EventParams &e) {
screenManager()->push(new CwCheatScreen());
return UI::EVENT_DONE;
}
void GamePauseScreen::sendMessage(const char *message, const char *value) {
if (!strcmp(message, "language")) {
RecreateViews();
}
}