aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui.h
diff options
context:
space:
mode:
authornathan <nathansmith@disroot.org>2025-12-21 23:22:13 +0000
committernathan <nathansmith@disroot.org>2025-12-21 23:22:13 +0000
commit260d51b8399935c067eb79720db63e08d1c3f1f2 (patch)
treef4f8f28a942f8b2d9e3d796c5d75786301219d0f /src/ui.h
parente4acecf8cebacbcbb6b7739aff7f34fd0147ed45 (diff)
downloadFindThings-260d51b8399935c067eb79720db63e08d1c3f1f2.tar.gz
FindThings-260d51b8399935c067eb79720db63e08d1c3f1f2.tar.bz2
FindThings-260d51b8399935c067eb79720db63e08d1c3f1f2.zip
Working on interaction menu thingy
Diffstat (limited to 'src/ui.h')
-rw-r--r--src/ui.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/ui.h b/src/ui.h
index 7257855..0b3c858 100644
--- a/src/ui.h
+++ b/src/ui.h
@@ -14,6 +14,14 @@ typedef struct {
EntityId entityId;
} InteractionChat;
+typedef struct {
+ char items[INTERACTION_MENU_MAX][INTERACTION_LABEL_MAX];
+ Rectangle rect;
+ bool visible;
+ EntityId entityId;
+} InteractionMenu;
+
+// Interaction chat procedures.
void initInteractionChat(InteractionChat* chat, const Settings* settings);
void showInteractionChat(InteractionChat* chat);
void hideInteractionChat(InteractionChat* chat);
@@ -22,4 +30,11 @@ void writeToInteractionChat(InteractionChat* chat, const char* text);
void clearInteractionChat(InteractionChat* chat);
void updateInteractionChat(InteractionChat* chat, Game* game);
+// Interaction menu procedures.
+void initInteractionMenu(InteractionMenu* menu, const Settings* settings);
+void resetInteractionMenu(InteractionMenu* menu);
+void showInteractionMenu(InteractionMenu* menu);
+void hideInteractionMenu(InteractionMenu* menu);
+void updateInteractionMenu(InteractionMenu* menu, Game* game);
+
#endif