- Timestamp:
- Feb 17, 2008, 6:26:23 PM (17 years ago)
- Location:
- code/branches/hud/src/orxonox
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/hud/src/orxonox/CMakeLists.txt
r790 r825 5 5 SpaceshipSteering.cc 6 6 hud/HUD.cc 7 hud/Bar.cc 7 8 particle/ParticleInterface.cc 8 9 tools/BillboardSet.cc -
code/branches/hud/src/orxonox/Orxonox.cc
r823 r825 398 398 Ogre::Overlay* hudOverlay = overlayManager.create("orxonoxsuperoverlay"); 399 399 400 hud::Bar* newBar = static_cast<hud::Bar*>(overlayManager.createOverlayElement("Panel", "Bar"));400 Bar* newBar = static_cast<Bar*>(overlayManager.createOverlayElement("Panel", "Bar")); 401 401 newBar->setLeft(0); 402 402 newBar->setTop(0); … … 405 405 newBar->setMaterialName("Orxonox/Red"); 406 406 newBar->setMetricsMode(Ogre::GMM_PIXELS); 407 newBar->setPercentage( 0.8);407 newBar->setPercentage((Ogre::Real)0.8); 408 408 newBar->show(); 409 409 -
code/branches/hud/src/orxonox/hud/Bar.cc
r824 r825 34 34 #include "Bar.h" 35 35 36 namespace hud36 namespace orxonox 37 37 { 38 38 using namespace Ogre; -
code/branches/hud/src/orxonox/hud/Bar.h
r823 r825 39 39 40 40 41 namespace hud 41 // namespace hud 42 namespace orxonox 42 43 { 43 44 class Bar : public Ogre::OverlayElement 44 45 { 45 46 private: 46 floatpercentage_;47 double percentage_; 47 48 bool horz_; 48 49 Ogre::ColourValue color_;
Note: See TracChangeset
for help on using the changeset viewer.