diff options
| author | nathan <nathansmith@disroot.org> | 2025-12-21 23:22:13 +0000 |
|---|---|---|
| committer | nathan <nathansmith@disroot.org> | 2025-12-21 23:22:13 +0000 |
| commit | 260d51b8399935c067eb79720db63e08d1c3f1f2 (patch) | |
| tree | f4f8f28a942f8b2d9e3d796c5d75786301219d0f /src/ui.h | |
| parent | e4acecf8cebacbcbb6b7739aff7f34fd0147ed45 (diff) | |
| download | FindThings-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.h | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -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 |
