From edaafadf2c5de7f23dfc20d420e973ed9dc92039 Mon Sep 17 00:00:00 2001 From: nathan Date: Wed, 17 Dec 2025 16:05:49 -0700 Subject: Progress, I guess... --- src/ui.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 src/ui.h (limited to 'src/ui.h') 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 -- cgit v1.2.3