Changeset 525 for code/branches/FICN/src/loader
- Timestamp:
- Dec 13, 2007, 11:54:00 PM (17 years ago)
- Location:
- code/branches/FICN/src/loader
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/FICN/src/loader/LevelLoader.cc
r521 r525 104 104 TiXmlNode* tNode; 105 105 106 Ogre::OverlayManager& omgr = Ogre::OverlayManager::getSingleton(); 107 Ogre::Overlay* mLoadOverlay; 106 108 107 109 // Set loading screen … … 126 128 loadingBarHeight_ = tElem->Attribute("height"); 127 129 } 128 showLoadingScreen(); 130 131 132 mLoadOverlay = (Ogre::Overlay*)omgr.getByName("Orxonox/LoadingScreenSample"); 133 mLoadOverlay->show(); 134 135 std::cout << "\n\n\nThis is Orxonox\nthe hottest 3D action shooter ever to exist\n\n\n"; 136 std::cout << "Level: " << name() << "\nDescription:" << description() << "\nImage:"<<image()<<"\n\n\n"; 137 std::cout << "Backgroundcolor: " << loadingBackgroundColor_ << "\nBackgroundimage:" << loadingBackgroundImage_ << "\n\n\n"; 138 129 139 } 130 140 … … 147 157 } 148 158 } 149 159 160 if (loadElem) 161 { 162 mLoadOverlay->hide(); 163 } 150 164 std::cout << "Loading finished!\n\n\n\n\n"; 151 165 } 152 }153 154 void LevelLoader::showLoadingScreen()155 {156 157 Ogre::OverlayManager& omgr = Ogre::OverlayManager::getSingleton();158 Ogre::Overlay* mLoadOverlay = (Ogre::Overlay*)omgr.getByName("Orxonox/LoadingScreenSample");159 mLoadOverlay->show();160 161 std::cout << "\n\n\nThis is Orxonox\nthe hottest 3D action shooter ever to exist\n\n\n";162 std::cout << "Level: " << name() << "\nDescription:" << description() << "\nImage:"<<image()<<"\n\n\n";163 std::cout << "Backgroundcolor: " << loadingBackgroundColor_ << "\nBackgroundimage:" << loadingBackgroundImage_ << "\n\n\n";164 166 } 165 167 -
code/branches/FICN/src/loader/LevelLoader.h
r507 r525 29 29 // Destructor 30 30 ~LevelLoader(); 31 // Shows a simple loading screen32 void showLoadingScreen();33 31 // Loads all level data 34 32 void loadLevel();
Note: See TracChangeset
for help on using the changeset viewer.