Also receive "More Settings" or "Control Mapping" message in GameSettingsSreen and ControlMappingScreen.

This commit is contained in:
shenweip 2013-09-24 13:03:59 +08:00
parent f829028ec7
commit a8692d36fe
3 changed files with 9 additions and 0 deletions

View File

@ -216,6 +216,10 @@ void ControlMappingScreen::sendMessage(const char *message, const char *value) {
if (!strcmp(message, "language")) {
screenManager()->RecreateAllViews();
}
if (!strcmp(message, "settings")) {
UpdateUIState(UISTATE_MENU);
screenManager()->finishDialog(this, DR_OK);
}
}
UI::EventReturn ControlMappingScreen::OnBack(UI::EventParams &e) {

View File

@ -336,6 +336,10 @@ void GameSettingsScreen::sendMessage(const char *message, const char *value) {
if (!strcmp(message, "language")) {
screenManager()->RecreateAllViews();
}
if (!strcmp(message, "control mapping")) {
UpdateUIState(UISTATE_MENU);
screenManager()->push(new ControlMappingScreen());
}
}
UI::EventReturn GameSettingsScreen::OnDownloadPlugin(UI::EventParams &e) {

View File

@ -560,6 +560,7 @@ void MainScreen::sendMessage(const char *message, const char *value) {
}
if (!strcmp(message, "control mapping")) {
UpdateUIState(UISTATE_MENU);
screenManager()->push(new GameSettingsScreen(""));
screenManager()->push(new ControlMappingScreen());
}
if (!strcmp(message, "settings")) {