#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