Receive language change message in another screen

This commit is contained in:
shenweip authored and Henrik Rydgard committed 2013-09-14 11:52:59 +02:00
1 parent 9907f4a740
commit 42c5061e18
5 files changed
+15 -1

No files matched your search

+6
View File
@@ -212,6 +212,12 @@ void ControlMappingScreen::CreateViews() {
}
}
void ControlMappingScreen::sendMessage(const char *message, const char *value) {
if (!strcmp(message, "language")) {
screenManager()->RecreateAllViews();
}
}
UI::EventReturn ControlMappingScreen::OnBack(UI::EventParams &e) {
// If we're in-game, return to the game via DR_CANCEL.
if(PSP_IsInited()) {
+1
View File
@@ -28,6 +28,7 @@ public:
ControlMappingScreen() {}
protected:
virtual void CreateViews();
virtual void sendMessage(const char *message, const char *value);
virtual UI::EventReturn OnBack(UI::EventParams &e);
private:
+6
View File
@@ -93,6 +93,12 @@ void CwCheatScreen::CreateViews() {
}
}
void CwCheatScreen::sendMessage(const char *message, const char *value) {
if (!strcmp(message, "language")) {
screenManager()->RecreateAllViews();
}
}
UI::EventReturn CwCheatScreen::OnBack(UI::EventParams &params)
{
screenManager()->finishDialog(this, DR_OK);
+1
View File
@@ -42,6 +42,7 @@ public:
UI::EventReturn OnEnableAll(UI::EventParams &params);
protected:
virtual void CreateViews();
virtual void sendMessage(const char *message, const char *value);
private:
UI::EventReturn OnCheckBox(UI::EventParams &params);
+1 -1
Submodule native updated: 67183f5822...df8814e239.