From ec70ac44a5943b9ceb866844cae00a6be0d88e5f Mon Sep 17 00:00:00 2001 From: sD Date: Sat, 21 Dec 2019 21:32:02 +0100 Subject: add todo preanim --- webAO/client.js | 1 + 1 file changed, 1 insertion(+) (limited to 'webAO/client.js') diff --git a/webAO/client.js b/webAO/client.js index 8705aaa..3367eee 100644 --- a/webAO/client.js +++ b/webAO/client.js @@ -1284,6 +1284,7 @@ class Viewport { this.chatmsg.startpreanim = true; } + // TODO: preanims sometimes play when they're not supposed to if (this.textTimer >= this.shoutTimer && this.chatmsg.startpreanim) { // Effect stuff if (this.chatmsg.flash === "2") { -- cgit From 68852ffbb3a3c7d7d552cc45ab7b35424fe13ee8 Mon Sep 17 00:00:00 2001 From: sD Date: Sun, 22 Dec 2019 16:36:19 +0100 Subject: wait until the character is loaded --- webAO/client.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'webAO/client.js') diff --git a/webAO/client.js b/webAO/client.js index 3367eee..294b64b 100644 --- a/webAO/client.js +++ b/webAO/client.js @@ -353,7 +353,8 @@ class Client extends EventEmitter { * @param {number} character the character ID */ sendCharacter(character) { - this.serv.send(`CC#${this.playerID}#${character}#web#%`); + if (this.chars[character].name) + this.serv.send(`CC#${this.playerID}#${character}#web#%`); } /** -- cgit From a8c1ab9682f543e81245c68ba93636025ad87c18 Mon Sep 17 00:00:00 2001 From: sD Date: Sun, 22 Dec 2019 16:44:38 +0100 Subject: i broke the musiclist oh well --- webAO/client.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'webAO/client.js') diff --git a/webAO/client.js b/webAO/client.js index 294b64b..af480ea 100644 --- a/webAO/client.js +++ b/webAO/client.js @@ -187,7 +187,7 @@ class Client extends EventEmitter { * @param {string} message the message to send */ sendOOC(message) { - setCookie("OOC_name",escapeChat(encodeChat(document.getElementById("OOC_name").value))); + setCookie("OOC_name",document.getElementById("OOC_name").value); this.serv.send(`CT#${escapeChat(encodeChat(document.getElementById("OOC_name").value))}#${escapeChat(encodeChat(message))}#%`); } @@ -1600,7 +1600,7 @@ export function mutelist_click(_event) { // TODO: i don't feel like writing this rn } -window.musiclist_click = mutelist_click; +window.mutelist_click = mutelist_click; /** * Triggered when the showname checkboc is clicked -- cgit From 70a52b5551a72bfe642006c95368be3c694737c7 Mon Sep 17 00:00:00 2001 From: sD Date: Sun, 22 Dec 2019 16:52:09 +0100 Subject: fix spaces in pairing list --- webAO/client.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'webAO/client.js') diff --git a/webAO/client.js b/webAO/client.js index af480ea..846259e 100644 --- a/webAO/client.js +++ b/webAO/client.js @@ -572,9 +572,9 @@ class Client extends EventEmitter { } const mute_select = document.getElementById("mute_select"); - mute_select.add(new Option(escape(chargs[0]), charid)); + mute_select.add(new Option(safe_tags(chargs[0]), charid)); const pair_select = document.getElementById("pair_select"); - pair_select.add(new Option(escape(chargs[0]), charid)); + pair_select.add(new Option(safe_tags(chargs[0]), charid)); // sometimes ini files lack important settings const default_options = { -- cgit