Changeset 5817 for code/branches/core5/src
- Timestamp:
- Sep 27, 2009, 10:17:54 PM (15 years ago)
- Location:
- code/branches/core5/src/modules/gamestates
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core5/src/modules/gamestates/GSMainMenu.cc
r5799 r5817 99 99 CommandExecutor::addConsoleCommandShortcut(this->ccStartDedicated_); 100 100 } 101 { 102 FunctorMember<GSMainMenu>* functor = createFunctor(&GSMainMenu::startMainMenu); 103 functor->setObject(this); 104 this->ccStartMainMenu_ = createConsoleCommand(functor, "startMainMenu"); 105 CommandExecutor::addConsoleCommandShortcut(this->ccStartMainMenu_); 106 } 101 107 102 108 InputManager::getInstance().enterState("mainMenu"); … … 156 162 Game::getInstance().requestStates("dedicated, level"); 157 163 } 164 void GSMainMenu::startMainMenu() 165 { 166 // HACK - HACK 167 Game::getInstance().popState(); 168 Game::getInstance().popState(); 169 Game::getInstance().requestStates("mainmenu"); 170 } 158 171 } -
code/branches/core5/src/modules/gamestates/GSMainMenu.h
r5738 r5817 51 51 void startClient(); 52 52 void startDedicated(); 53 void startMainMenu(); 53 54 54 55 private: … … 62 63 ConsoleCommand* ccStartClient_; 63 64 ConsoleCommand* ccStartDedicated_; 65 ConsoleCommand* ccStartMainMenu_; 64 66 65 67 // ambient sound for the main menu
Note: See TracChangeset
for help on using the changeset viewer.