Changeset 8688 in orxonox.OLD for branches/gui/src/story_entities
- Timestamp:
- Jun 21, 2006, 10:33:24 PM (19 years ago)
- Location:
- branches/gui/src/story_entities
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/gui/src/story_entities/game_menu.cc
r8677 r8688 25 25 26 26 #include "util/loading/load_param.h" 27 #include "fast_factory.h"28 27 #include "util/loading/factory.h" 29 #include "loading/resource_manager.h" 30 31 #include "world_entity.h" 32 #include "elements/image_entity.h" 33 #include "terrain.h" 28 #include "util/loading/resource_manager.h" 29 30 #include "graphics_engine.h" 34 31 #include "camera.h" 35 36 #include "graphics_engine.h"37 #include "object_manager.h"38 32 #include "sound_engine.h" 33 39 34 #include "sound_source.h" 40 41 #include "cd_engine.h"42 35 43 36 #include "glgui.h" … … 136 129 137 130 this->optionsBox = NULL; 131 this->generalBox = NULL; 138 132 this->audioBox = NULL; 139 133 this->videoBox = NULL; 140 134 this->controlBox = NULL; 141 135 this->levelsBox = NULL; 136 137 this->currentlyOpened = NULL; 142 138 143 139 return GameWorld::loadData(); … … 174 170 } 175 171 172 176 173 void GameMenu::showCampaigns() 177 174 { 178 179 175 if (this->levelsBox == NULL) 180 176 { … … 206 202 } 207 203 208 this->levelsBox->showAll(); 209 this->levelsBox->setRelCoor2D(200, 100); 210 this->mainMenuBox->setRelCoorSoft2D(50, 100, 5); 204 this->showSecondLevelElement(this->levelsBox); 211 205 212 206 } 213 207 214 208 void GameMenu::showMultiPlayer() 215 { 216 217 } 209 {} 218 210 219 211 void GameMenu::showOptionsMenu() … … 241 233 } 242 234 } 243 this->optionsBox->showAll(); 244 this->optionsBox->setRelCoor2D(200, 100); 235 236 this->showSecondLevelElement(this->optionsBox); 237 } 238 239 240 void GameMenu::showSecondLevelElement(OrxGui::GLGuiBox* element) 241 { 242 if (this->currentlyOpened != NULL && this->currentlyOpened != element) 243 this->currentlyOpened->hideAll(); 244 245 element->showAll(); 246 element->setRelCoor2D(200, 100); 247 248 this->currentlyOpened = element; 245 249 246 250 this->mainMenuBox->setRelCoorSoft2D(50, 100, 5); 247 248 } 249 250 251 251 } 252 252 253 253 -
branches/gui/src/story_entities/game_menu.h
r8677 r8688 46 46 void showOptionsMenu(); 47 47 48 48 49 void quitMenu(); 49 50 … … 54 55 55 56 private: 57 void showSecondLevelElement(OrxGui::GLGuiBox* element); 58 59 56 60 void animateScene(float dt); 57 61 void switchMenuLayer(int layer1, int layer2); … … 66 70 67 71 OrxGui::GLGuiBox* optionsBox; 72 OrxGui::GLGuiBox* generalBox; 68 73 OrxGui::GLGuiBox* audioBox; 69 74 OrxGui::GLGuiBox* videoBox; 70 75 OrxGui::GLGuiBox* controlBox; 76 77 OrxGui::GLGuiBox* currentlyOpened; 71 78 72 79 Vector cameraVector;
Note: See TracChangeset
for help on using the changeset viewer.