Changeset 11293 for code/branches/HUD_HS16/src/modules/overlays
- Timestamp:
- Nov 17, 2016, 4:58:06 PM (8 years ago)
- Location:
- code/branches/HUD_HS16/src/modules/overlays/hud
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/HUD_HS16/src/modules/overlays/hud/HUDPickupItem.cc
r11277 r11293 65 65 } 66 66 67 void initializeMaterial( std::strings)67 void initializeMaterial(const std::string& s) 68 68 { 69 69 overlayElement_->setMaterialName(s); -
code/branches/HUD_HS16/src/modules/overlays/hud/HUDPickupItem.h
r11277 r11293 36 36 37 37 // void setPickup(Pickup* pickup); 38 void initializeMaterial( std::strings);38 void initializeMaterial(const std::string& s); 39 39 40 40 private: -
code/branches/HUD_HS16/src/modules/overlays/hud/HUDPickupSystem.cc
r11277 r11293 50 50 overlayElement_->setPosition(0.0f,0.0f); 51 51 overlayElement_->setDimensions(0.70f,0.15f); 52 orxout() << "hello HUDPickupSystem" << endl;52 orxout() << "hello here is the HUDPickupSystem" << endl; 53 53 this->background_->addChild(overlayElement_); 54 54 … … 65 65 //TODO: XMLPort 66 66 67 void HUDPickupSystem::updatePickupList(std::vector< Pickup> picks)67 void HUDPickupSystem::updatePickupList(std::vector<WeakPtr<Pickup>> picks) 68 68 { 69 for(Pickup p : picks)69 for(Pickup* p : picks) 70 70 { 71 HUDPickupItem item = new HUDPickupItem(this->getContext());72 item .initializeMaterial(p.getRepresentationName());71 HUDPickupItem* item = new HUDPickupItem(this->getContext()); 72 item->initializeMaterial(p->getRepresentationName()); 73 73 } 74 74 } -
code/branches/HUD_HS16/src/modules/overlays/hud/HUDPickupSystem.h
r11277 r11293 41 41 #include "pickup/Pickup.h" 42 42 #include "pickup/PickupRepresentation.h" 43 #include "HUDPickupItem.h" 43 44 44 45 namespace orxonox … … 58 59 // virtual void sizeChanged() override; 59 60 private: 60 void updatePickupList(std::vector< Pickup> picks);61 void updatePickupList(std::vector<WeakPtr<Pickup>> picks); 61 62 void createPickupList(); 62 63 void destroyAll();
Note: See TracChangeset
for help on using the changeset viewer.