aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui.c
diff options
context:
space:
mode:
authornathan <nathansmith@disroot.org>2025-12-19 02:23:24 +0000
committernathan <nathansmith@disroot.org>2025-12-19 02:23:24 +0000
commite4acecf8cebacbcbb6b7739aff7f34fd0147ed45 (patch)
tree90f266e8aee4b94682c318e9bc77ef6b1e034556 /src/ui.c
parent8394a306ed1d8dfdc9ca72e4c2c7888a4b79c576 (diff)
downloadFindThings-e4acecf8cebacbcbb6b7739aff7f34fd0147ed45.tar.gz
FindThings-e4acecf8cebacbcbb6b7739aff7f34fd0147ed45.tar.bz2
FindThings-e4acecf8cebacbcbb6b7739aff7f34fd0147ed45.zip
So little yet so much
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);