Merge pull request #1261 from garrettjoecox/item-tracker-v3

Item tracker v3
This commit is contained in:
briaguya 2022-08-24 11:20:47 -04:00 committed by GitHub
commit 96d7602761
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 730 additions and 1521 deletions

File diff suppressed because it is too large Load Diff

View File

@ -1,5 +1,26 @@
#pragma once
#include <string>
#include <vector>
void InitItemTracker();
void DrawItemTracker(bool& open);
void DrawItemAmmo(int itemId);
typedef struct ItemTrackerItem {
uint32_t id;
std::string name;
std::string nameFaded;
uint32_t data;
void (*drawFunc)(ItemTrackerItem);
} ItemTrackerItem;
#define ITEM_TRACKER_ITEM(id, data, drawFunc) \
{ \
id, #id, #id "_Faded", data, drawFunc \
}
typedef struct ItemTrackerDungeon {
uint32_t id;
std::vector<uint32_t> items;
} ItemTrackerDungeon;