diff options
Diffstat (limited to 'src/ui.c')
| -rw-r--r-- | src/ui.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -35,6 +35,11 @@ void hideInteractionChat(InteractionChat* chat) chat->visible = false; } +void setInteractionChat(InteractionChat* chat, const char* text) +{ + strncpy(chat->text, text, INTERACTION_CHAT_MAX * sizeof(char) - 1); +} + void writeToInteractionChat(InteractionChat* chat, const char* text) { strncat(chat->text, text, INTERACTION_CHAT_MAX * sizeof(char) - 1); |
