void MainMenu::callbackActive(Widget &widget) { if (widget.getTag() == "BTN_NEWGAME") { if (_module->load("lev_m40aa")) _returnCode = 2; return; } if(widget.getTag() == "BTN_LOADGAME") { } if(widget.getTag() == "BTN_MOVIES") { createMovies(); sub(*_movies); return; } if(widget.getTag() == "BTN_OPTIONS") { createOptions(); sub(*_options); return; } if (widget.getTag() == "BTN_EXIT") { EventMan.requestQuit(); _returnCode = 1; return; } }
void MainMenu::callbackActive(Widget &widget) { if (widget.getTag() == "BTN_NEWGAME") { // Stop the currently running main music stopMenuMusic(); createClassSelection(); // Start the charGen music startCharGenMusic(); if (sub(*_classSelection) == 2) { _returnCode = 2; stopMenuMusic(); return; } // If we return from the chargen we stop the music and play the main music stopMenuMusic(); startMainMusic(); return; } if (widget.getTag() == "BTN_LOADGAME") { createLoadGame(); if (sub(*_loadGame) == 2) { _returnCode = 2; stopMenuMusic(); } return; } if (widget.getTag() == "BTN_MOVIES") { createMovies(); sub(*_movies); return; } if (widget.getTag() == "BTN_OPTIONS") { createOptions(); sub(*_options); return; } if (widget.getTag() == "BTN_EXIT") { EventMan.requestQuit(); _returnCode = 1; return; } }
void MainMenu::callbackActive(Widget &widget) { if (widget.getTag() == "BTN_NEWGAME") { try { _module->load("end_m01aa"); } catch (...) { Common::exceptionDispatcherWarning(); return; } _returnCode = 2; return; } if (widget.getTag() == "BTN_LOADGAME") { } if (widget.getTag() == "BTN_MOVIES") { createMovies(); sub(*_movies); return; } if (widget.getTag() == "BTN_OPTIONS") { createOptions(); sub(*_options); return; } if (widget.getTag() == "BTN_EXIT") { EventMan.requestQuit(); _returnCode = 1; return; } }
void MainMenu::callbackActive(Widget &widget) { if (widget.getTag() == "ExitButton") { EventMan.requestQuit(); return; } if (widget.getTag() == "NewButton") { createNew(); NewGameFogs fogs(ConfigMan.getInt("menufogcount", 4)); fogs.show(); if (sub(*_new, 0, false) == 2) { _returnCode = 2; return; } show(); return; } if (widget.getTag() == "MoviesButton") { createMovies(); sub(*_movies); return; } if (widget.getTag() == "OptionsButton") { createOptions(); sub(*_options); return; } }