aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui.h
diff options
context:
space:
mode:
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