aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui.c')
-rw-r--r--src/ui.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ui.c b/src/ui.c
index ae9341f..17a5c9f 100644
--- a/src/ui.c
+++ b/src/ui.c
@@ -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);