mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2024-11-16 14:35:06 -05:00
Merge pull request #1261 from garrettjoecox/item-tracker-v3
Item tracker v3
This commit is contained in:
commit
96d7602761
File diff suppressed because it is too large
Load Diff
@ -1,5 +1,26 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
|
||||||
void InitItemTracker();
|
void InitItemTracker();
|
||||||
void DrawItemTracker(bool& open);
|
void DrawItemTracker(bool& open);
|
||||||
void DrawItemAmmo(int itemId);
|
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;
|
||||||
|
Loading…
Reference in New Issue
Block a user