aboutsummaryrefslogtreecommitdiff
path: root/Northstar.Client/mod/scripts/vscripts/chat.gnut
diff options
context:
space:
mode:
authorTom Barham <me@cpdt.dev>2022-02-22 08:33:50 +1000
committerGitHub <noreply@github.com>2022-02-21 19:33:50 -0300
commitea9a2ed9b9698d891769fa8598b8262aad97ed77 (patch)
tree2bcac5590c8c12114b6a54febd7920506bbe66c4 /Northstar.Client/mod/scripts/vscripts/chat.gnut
parent1fad39a0d753fa905520ee858f3aa4e8a3ad96a5 (diff)
downloadNorthstarMods-ea9a2ed9b9698d891769fa8598b8262aad97ed77.tar.gz
NorthstarMods-ea9a2ed9b9698d891769fa8598b8262aad97ed77.zip
Advanced chat: custom messages and client hooks (#217)
Co-authored-by: EmmaM <27428383+emma-miler@users.noreply.github.com>
Diffstat (limited to 'Northstar.Client/mod/scripts/vscripts/chat.gnut')
-rw-r--r--Northstar.Client/mod/scripts/vscripts/chat.gnut18
1 files changed, 18 insertions, 0 deletions
diff --git a/Northstar.Client/mod/scripts/vscripts/chat.gnut b/Northstar.Client/mod/scripts/vscripts/chat.gnut
new file mode 100644
index 00000000..ce26434c
--- /dev/null
+++ b/Northstar.Client/mod/scripts/vscripts/chat.gnut
@@ -0,0 +1,18 @@
+untyped
+globalize_all_functions
+
+void function Chat_NetworkWriteLine(string text) {
+ NSChatWriteLine(0, text)
+}
+
+void function Chat_GameWriteLine(string text) {
+ NSChatWriteLine(1, text)
+}
+
+void function Chat_NetworkWrite(string text) {
+ NSChatWrite(0, text)
+}
+
+void function Chat_GameWrite(string text) {
+ NSChatWrite(1, text)
+}