From e4acecf8cebacbcbb6b7739aff7f34fd0147ed45 Mon Sep 17 00:00:00 2001 From: nathan Date: Thu, 18 Dec 2025 19:23:24 -0700 Subject: So little yet so much --- src/ui.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/ui.c') 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); -- cgit v1.2.3