Implemented Loadout selection item buttons, corrected inventory window missing category variables, corrected loadout item selection logic, updated inventory window layout.
This commit is contained in:
+6
-1
@@ -48,7 +48,7 @@ typedef std::function<bool(Crawler*,ItemProps)> ItemScript;
|
||||
|
||||
class Item{
|
||||
friend class Inventory;
|
||||
friend class Player;
|
||||
friend class Crawler;
|
||||
private:
|
||||
uint32_t amt;
|
||||
ItemInfo*it;
|
||||
@@ -77,6 +77,11 @@ public:
|
||||
static std::vector<IT>&get(ITCategory itemCategory);
|
||||
|
||||
static bool SwapItems(ITCategory itemCategory,uint32_t slot1,uint32_t slot2);
|
||||
//Makes sure this is a valid category. Will error out if it doesn't exist! Use for ERROR HANDLING!
|
||||
static bool ValidateItemCategory(ITCategory itemCategory){
|
||||
get(itemCategory);
|
||||
return true;
|
||||
}
|
||||
private:
|
||||
static void InsertIntoSortedInv(IT item);
|
||||
static bool ExecuteAction(IT item);
|
||||
|
||||
Reference in New Issue
Block a user