- Timestamp:
- May 23, 2009, 9:53:13 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/pickups2/src/orxonox/objects/pickup/PickupInventory.h
r3001 r3016 56 56 // tolua_end 57 57 public: 58 //PickupInventory(BaseObject* creator);59 //virtual ~PickupInventory();58 PickupInventory(); 59 virtual ~PickupInventory(); 60 60 61 /** 62 @brief Toggle visiblity of inventory. 63 */ 61 static PickupInventory* getSingleton(); // tolua_export 62 64 63 static void toggleInventory(); // tolua_export 65 66 static void tabChanged(CEGUI::Window* tab); // tolua_export67 64 68 65 static unsigned int getEquipmentCount(); // tolua_export … … 80 77 static std::string getImageForItem(const BaseItem* item); // tolua_export 81 78 82 static void clearInventory(CEGUI::WindowManager* winMgr, int equipCount, int usableCount); // tolua_export83 staticvoid updateTabs(CEGUI::WindowManager* winMgr, CEGUI::Window* equipWindow, CEGUI::Window* usableWindow); // tolua_export79 void clearInventory(CEGUI::WindowManager* winMgr, CEGUI::Window* equipPane, CEGUI::Window* usablePane); // tolua_export 80 void updateTabs(CEGUI::WindowManager* winMgr, CEGUI::Window* equipWindow, CEGUI::Window* usableWindow); // tolua_export 84 81 85 staticvoid updateEquipment(CEGUI::WindowManager* winMgr, CEGUI::Window* target);86 staticvoid updateUsable(CEGUI::WindowManager* winMgr, CEGUI::Window* target);82 void updateEquipment(CEGUI::WindowManager* winMgr, CEGUI::Window* target); 83 void updateUsable(CEGUI::WindowManager* winMgr, CEGUI::Window* target); 87 84 88 static void addItem(CEGUI::WindowManager* winMgr, CEGUI::Window* target, const std::string& id, BaseItem* item, const std::string& titleColour, int x, int y); // tolua_export 85 static void createItemWindows(CEGUI::WindowManager* winMgr, const std::string& id, int x, int y); 86 static void setWindowProperties(CEGUI::WindowManager* winMgr, CEGUI::Window* target, const std::string& id, const BaseItem* item, const std::string& textColour); 87 88 const bool isVisible() const 89 { return this->bInventoryVisible_; } 90 void setVisible(bool visible) 91 { this->bInventoryVisible_ = visible; } 92 private: 93 bool bInventoryVisible_; 94 unsigned int createdEquipmentWindows_; 95 unsigned int createdUsableWindows_; 96 unsigned int visibleEquipmentWindows_; 97 unsigned int visibleUsableWIndows_; 98 99 static PickupInventory* pickupInventory_s; 89 100 }; // tolua_export 90 101 } // tolua_export
Note: See TracChangeset
for help on using the changeset viewer.