Changeset 11701 for code/trunk/src/modules/overlays
- Timestamp:
- Jan 6, 2018, 12:24:02 AM (7 years ago)
- Location:
- code/trunk/src/modules/overlays/hud
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/modules/overlays/hud/HUDPickupItem.cc
r11700 r11701 50 50 51 51 std::string name = "HUDPickupItem" + getUniqueNumberString(); 52 orxout() << "name: "<< name<<endl;53 52 overlayElement_ = static_cast<Ogre::PanelOverlayElement* >(Ogre::OverlayManager::getSingleton().createOverlayElement("Panel", name )); 54 53 … … 59 58 HUDPickupItem::~HUDPickupItem() 60 59 { 61 /*if (this->isInitialized())62 {63 overlayElement_=nullptr;64 }*/65 60 } 66 61 … … 78 73 assert(overlayElement_); 79 74 assert(this->background_); 80 orxout()<< overlayElement_->getName()<< endl;81 75 //overlayElement_->hide(); 82 76 this->background_->removeChild(overlayElement_->getName()); 83 84 77 } 85 78 } -
code/trunk/src/modules/overlays/hud/HUDPickupSystem.cc
r11700 r11701 56 56 HUDPickupSystem::~HUDPickupSystem() 57 57 { 58 /*if (this->isInitialized())59 {60 this->picks.clear();61 }*/62 58 } 63 59 … … 72 68 //hide all pickup symbols in HUD and delete from local map 73 69 74 orxout() << "picks size before: " << picks.size() << endl;75 orxout() << "p size before: " << p.size() << endl;76 77 70 for(const auto& sm_pair : picks) 78 71 { 79 72 sm_pair.second->hideMe(sm_pair.first, repaint); 80 orxout() << "deleting local list picks: " << picks.size() << " pickup ptr" << sm_pair.first << endl;81 73 } 82 74 … … 89 81 float offsetY = 0.82f; 90 82 const float x = 0.102f; 91 orxout() << "picks size after: " << picks.size() << endl;92 orxout() << "p size after: " << p.size() << endl;93 83 94 84 for(Pickupable* pickup:p) … … 104 94 HUDPickupItem* item = new HUDPickupItem(this->getContext()); 105 95 item->initializeMaterial(this->getIcon(((Pickup*)pickup)->getRepresentationName()), offsetX+i*x, offsetY); 106 orxout() << "created new pickupHUDItem"<<endl;107 96 item->setOverlayGroup(this->getOverlayGroup()); 108 97 picks[pickup] = item;
Note: See TracChangeset
for help on using the changeset viewer.