aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui.h')
-rw-r--r--src/ui.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/ui.h b/src/ui.h
index b5089a3..14845d4 100644
--- a/src/ui.h
+++ b/src/ui.h
@@ -8,6 +8,10 @@
#define INTERACTION_COLUMN_MAX 80
#define INVENTORY_MAX 10
+#define INVENTORY_SPRITE_SIZE 32
+#define INVENTORY_ROWS 8
+#define INVENTORY_COLUMNS 8
+#define INVENTORY_SCALE 2.0
typedef char InteractionItems[INTERACTION_MENU_MAX][INTERACTION_LABEL_MAX];
@@ -32,7 +36,7 @@ typedef struct {
typedef struct {
EntityId id;
- AssetId texture;
+ AssetId textureId;
int count;
} InventoryItem;
@@ -65,10 +69,10 @@ void hideInteractionMenu(InteractionMenu* menu);
void updateInteractionMenu(InteractionMenu* menu, Game* game);
// Inventory
-void initInventory(Inventory* inventory);
+void initInventory(Inventory* inventory, const Settings* settings);
void showInventory(Inventory* inventory);
void hideInventory(Inventory* inventory);
void addItemToInventory(Inventory* inventory, InventoryItem item);
-void updateInventory(Inventory* inventory);
+void updateInventory(Inventory* inventory, Game* game);
#endif