Move global UI status out of WndMainWindow.cpp, simplify the menu translation code(it doesn't need to dictate checked or enabled items, the UI already does it later on anyway), and clear out a few old menu items that have been removed.

This commit is contained in:
The Dax 2013-09-13 13:06:13 -04:00
parent 2d084ec747
commit e8fd5881b8
6 changed files with 48 additions and 91 deletions

View file

@ -559,9 +559,11 @@ void MainScreen::sendMessage(const char *message, const char *value) {
screenManager()->RecreateAllViews();
}
if (!strcmp(message, "control mapping")) {
globalUIState = UISTATE_MENU;
screenManager()->push(new ControlMappingScreen());
}
if (!strcmp(message, "settings")) {
globalUIState = UISTATE_MENU;
screenManager()->push(new GameSettingsScreen(""));
}
}