mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-12-06 04:33:49 +01:00
Receive language change message in another screen
This commit is contained in:
1 parent
9907f4a740
commit
42c5061e18
5 files changed
+15
-1
No files matched your search
@@ -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()) {
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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 ¶ms)
|
||||
{
|
||||
screenManager()->finishDialog(this, DR_OK);
|
||||
|
||||
@@ -42,6 +42,7 @@ public:
|
||||
UI::EventReturn OnEnableAll(UI::EventParams ¶ms);
|
||||
protected:
|
||||
virtual void CreateViews();
|
||||
virtual void sendMessage(const char *message, const char *value);
|
||||
|
||||
private:
|
||||
UI::EventReturn OnCheckBox(UI::EventParams ¶ms);
|
||||
|
||||
+1
-1
Submodule native updated: 67183f5822...df8814e239.
Reference in new issue
Block a user