aboutsummaryrefslogtreecommitdiff
path: root/webAO/client.js
diff options
context:
space:
mode:
authorsD <stoned@derpymail.org>2020-07-14 19:01:04 +0200
committersD <stoned@derpymail.org>2020-07-14 19:01:04 +0200
commit71e3a749d7a8de9c982e670f88eb2c08d3091565 (patch)
treeff72ac97dedeaa337d6bc70830c7eb4995535aa8 /webAO/client.js
parentdefaf5b6511588d3a00809979c9e0cf3ffd0766e (diff)
add a callword array and fill it when it's changed
Diffstat (limited to 'webAO/client.js')
-rw-r--r--webAO/client.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/webAO/client.js b/webAO/client.js
index 938c566..d4b6bc9 100644
--- a/webAO/client.js
+++ b/webAO/client.js
@@ -121,6 +121,8 @@ class Client extends EventEmitter {
this.areas = [];
this.musics = [];
+ this.callwords = [];
+
this.resources = {
"holdit": {
"src": AO_HOST + "misc/default/holdit_bubble.png",
@@ -2202,6 +2204,14 @@ export function reloadTheme() {
window.reloadTheme = reloadTheme;
/**
+ * Triggered by a changed callword list
+ */
+export function changeCallwords() {
+ client.callwords = document.getElementById("client_callwords").value.split('\n');
+}
+window.changeCallwords = changeCallwords;
+
+/**
* Triggered by the modcall sfx dropdown
*/
export function modcall_test() {