blob: 7257855b1e2b7c832ce8f250c6ab339ec42829b2 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#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;
EntityId entityId;
} InteractionChat;
void initInteractionChat(InteractionChat* chat, const Settings* settings);
void showInteractionChat(InteractionChat* chat);
void hideInteractionChat(InteractionChat* chat);
void setInteractionChat(InteractionChat* chat, const char* text);
void writeToInteractionChat(InteractionChat* chat, const char* text);
void clearInteractionChat(InteractionChat* chat);
void updateInteractionChat(InteractionChat* chat, Game* game);
#endif
|