- Timestamp:
- Nov 7, 2016, 5:08:11 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/HUD_HS16/src/modules/overlays/hud/HUDPickupSystem.cc
r11263 r11277 27 27 */ 28 28 29 #include <vector> 30 #include <string> 31 29 32 #include "core/CoreIncludes.h" 30 33 #include "core/XMLPort.h" 31 34 #include "util/Convert.h" 32 35 #include "core/class/Super.h" 36 #include "HUDPickupSystem.h" 37 #include "pickup/Pickup.h" 38 #include "HUDPickupItem.h" 33 39 34 40 namespace orxonox … … 39 45 { 40 46 RegisterObject(HUDPickupSystem); 47 48 overlayElement_ = static_cast<Ogre::PanelOverlayElement* >(Ogre::OverlayManager::getSingleton().createOverlayElement("Panel", "HUDPickupSystem" + getUniqueNumberString())); 49 overlayElement_->setMaterialName("PickupBar"); 50 overlayElement_->setPosition(0.0f,0.0f); 51 overlayElement_->setDimensions(0.70f,0.15f); 52 orxout() << "hello HUDPickupSystem" << endl; 53 this->background_->addChild(overlayElement_); 41 54 42 55 } … … 52 65 //TODO: XMLPort 53 66 54 void HUDPickupSystem::updatePickupList( )67 void HUDPickupSystem::updatePickupList(std::vector<Pickup> picks) 55 68 { 56 69 for(Pickup p : picks) 70 { 71 HUDPickupItem item = new HUDPickupItem(this->getContext()); 72 item.initializeMaterial(p.getRepresentationName()); 73 } 57 74 } 58 75
Note: See TracChangeset
for help on using the changeset viewer.