diff options
| author | nathan <nathansmith@disroot.org> | 2025-12-17 23:05:49 +0000 |
|---|---|---|
| committer | nathan <nathansmith@disroot.org> | 2025-12-17 23:05:49 +0000 |
| commit | edaafadf2c5de7f23dfc20d420e973ed9dc92039 (patch) | |
| tree | 1cbfc2cbdbbda1052144947eef39224ff01877ce /src/ui.h | |
| parent | 0cddd5649838c0d37c0e4b12786d040ffdb01c97 (diff) | |
| download | FindThings-edaafadf2c5de7f23dfc20d420e973ed9dc92039.tar.gz FindThings-edaafadf2c5de7f23dfc20d420e973ed9dc92039.tar.bz2 FindThings-edaafadf2c5de7f23dfc20d420e973ed9dc92039.zip | |
Progress, I guess...
Diffstat (limited to 'src/ui.h')
| -rw-r--r-- | src/ui.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/ui.h b/src/ui.h new file mode 100644 index 0000000..8de144f --- /dev/null +++ b/src/ui.h @@ -0,0 +1,23 @@ +#include "utils.h" +#include "entity.h" +#include "world.h" + +#ifndef UI_H +#define UI_H + +#define INTERACTION_CHAT_COLUMN_MAX 80 + +typedef struct { + char text[INTERACTION_CHAT_MAX]; + Rectangle rect; + bool visible; +} InteractionChat; + +void initInteractionChat(InteractionChat* chat); +void showInteractionChat(InteractionChat* chat); +void hideInteractionChat(InteractionChat* chat); +void writeToInteractionChat(InteractionChat* chat, const char* text); +void clearInteractionChat(InteractionChat* chat); +void updateInteractionChat(InteractionChat* chat, Game* game); + +#endif |
