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:
2023-11-14 23:20:13 -06:00
parent 0c9a341e89
commit f427928ca6
19 changed files with 289 additions and 87 deletions
+6 -1
View File
@@ -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);