- Timestamp:
- May 25, 2009, 5:38:00 PM (16 years ago)
- Location:
- code/branches/pickups2/src/orxonox/objects/pickup
- Files:
-
- 8 added
- 2 deleted
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/pickups2/src/orxonox/objects/pickup/CMakeLists.txt
r2972 r3063 3 3 DroppedItem.cc 4 4 EquipmentItem.cc 5 Jump.cc6 5 ModifierPickup.cc 7 6 PassiveItem.cc … … 11 10 UsableItem.cc 12 11 ) 12 13 ADD_SUBDIRECTORY(items) -
code/branches/pickups2/src/orxonox/objects/pickup/PickupSpawner.cc
r3046 r3063 34 34 #include "PickupSpawner.h" 35 35 #include "BaseItem.h" 36 #include "PickupInventory.h" // HACK; Only for hack, remove later 37 #include "gui/GUIManager.h" // HACK; see above 36 38 37 39 #include "core/CoreIncludes.h" … … 79 81 XMLPortParam(PickupSpawner, "triggerDistance", setTriggerDistance, getTriggerDistance, xmlelement, mode); 80 82 XMLPortParam(PickupSpawner, "respawnTime", setRespawnTime, getRespawnTime, xmlelement, mode); 83 84 // HACKs 85 // Load the GUI image as soon as the PickupSpawner gets loaded 86 // = less delays while running 87 BaseObject* newObject = this->itemTemplate_->getBaseclassIdentifier()->fabricate(this); 88 BaseItem* asItem = dynamic_cast<BaseItem*>(newObject); 89 if (asItem) 90 { 91 asItem->addTemplate(this->itemTemplate_); 92 PickupInventory::getImageForItem(asItem); 93 delete newObject; 94 } 95 96 // & load the GUI itself too, along with some empty windows 97 // = even less delays 98 GUIManager::getInstancePtr()->showGUI("PickupInventory"); 99 GUIManager::getInstancePtr()->executeCode("hideGUI(\"PickupInventory\")"); 100 PickupInventory::getSingleton(); 81 101 } 82 102 /**
Note: See TracChangeset
for help on using the changeset viewer.