diff options
| author | sD <stoned@derpymail.org> | 2020-02-12 02:10:22 +0100 |
|---|---|---|
| committer | sD <stoned@derpymail.org> | 2020-02-12 02:10:22 +0100 |
| commit | f07b7b6673fa654927c732a5d6ca5256e3d30cd3 (patch) | |
| tree | 31ce9965f088394a3a6a18ae16e7a1df186f6e47 /webAO | |
| parent | 84043c98d7927e5a8c02c9819deed95e920244d3 (diff) | |
hide the box
Diffstat (limited to 'webAO')
| -rw-r--r-- | webAO/client.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/webAO/client.js b/webAO/client.js index bce7916..54d05b6 100644 --- a/webAO/client.js +++ b/webAO/client.js @@ -1235,6 +1235,7 @@ class Viewport { const nameBox = document.getElementById("client_name"); const chatBox = document.getElementById("client_chat"); + const chatContainerBox = document.getElementById("client_chatcontainer"); const eviBox = document.getElementById("client_evi"); const shoutSprite = document.getElementById("client_shout"); const chatBoxInner = document.getElementById("client_inner_chat"); @@ -1265,6 +1266,7 @@ class Viewport { // Hide message box nameBox.style.display = "none"; chatBox.style.display = "none"; + chatContainerBox.style.display = "none"; shoutSprite.src = client.resources[shout]["src"]; shoutSprite.style.display = "block"; this.shoutaudio.src=`${AO_HOST}characters/${encodeURI(this.chatmsg.name.toLowerCase())}/${shout}.wav`; @@ -1282,6 +1284,7 @@ class Viewport { // Hide message box nameBox.style.display = "none"; chatBox.style.display = "none"; + chatContainerBox.style.display = "none"; const delay = await this.getAnimLength(`${AO_HOST}characters/${encodeURI(chatmsg.name.toLowerCase())}/${encodeURI(chatmsg.preanim)}.gif`); chatmsg.preanimdelay = delay; this.initUpdater(delay); @@ -1455,6 +1458,7 @@ class Viewport { tick() { const nameBox = document.getElementById("client_name"); const chatBox = document.getElementById("client_chat"); + const chatContainerBox = document.getElementById("client_chatcontainer"); const charSprite = document.getElementById("client_char"); const pairSprite = document.getElementById("client_pair_char"); const eviBox = document.getElementById("client_evi"); @@ -1553,6 +1557,8 @@ class Viewport { chatBox.style.display = "block"; chatBox.style.fontSize = (chatBox.offsetHeight * 0.3) + "px"; + chatContainerBox.style.display = "block"; + if (this.chatmsg.color === 6) chatBoxInner.className = "rainbow-text"; else { |
