Call the base class sendMessage when handling messages from native, so every screen can refresh from a language update at any time.

This commit is contained in:
The Dax committed 2013-10-21 16:52:44 -04:00
1 parent a28151437b
commit db370c1fd3
8 files changed
+27 -23

No files matched your search

+3 -3
View File
@@ -214,9 +214,9 @@ void ControlMappingScreen::CreateViews() {
}
void ControlMappingScreen::sendMessage(const char *message, const char *value) {
if (!strcmp(message, "language")) {
screenManager()->RecreateAllViews();
}
// Always call the base class method first to handle the most common messages.
UIDialogScreenWithBackground::sendMessage(message, value);
if (!strcmp(message, "settings")) {
UpdateUIState(UISTATE_MENU);
screenManager()->push(new GameSettingsScreen(""));