Changeset 3060 for code/trunk/src/orxonox/gamestates
- Timestamp:
- May 25, 2009, 3:07:31 PM (16 years ago)
- Location:
- code/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
/code/branches/sound (added) merged: 2829,2866,2899,2930-2932,2950,2955,2966-2968,2980,2982,2984,2998-2999,3010
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/gamestates/GSMainMenu.cc
r2957 r3060 40 40 #include "objects/Scene.h" 41 41 #include "GraphicsManager.h" 42 #include "sound/SoundMainMenu.h" 42 43 43 44 namespace orxonox … … 79 80 80 81 InputManager::getInstance().requestEnterState("mainMenu"); 82 83 this->ambient_ = new SoundMainMenu(); 84 this->ambient_->play(true); 81 85 } 82 86 83 87 void GSMainMenu::deactivate() 84 88 { 89 delete this->ambient_; 90 85 91 InputManager::getInstance().requestLeaveState("mainMenu"); 86 92 InputManager::getInstance().requestDestroyState("mainMenu"); -
code/trunk/src/orxonox/gamestates/GSMainMenu.h
r2896 r3060 55 55 // console commands 56 56 ConsoleCommand* ccStartGame_; 57 58 // ambient sound for the main menu 59 SoundMainMenu* ambient_; 57 60 }; 58 61 }
Note: See TracChangeset
for help on using the changeset viewer.