diff options
| author | stonedDiscord <10584181+stonedDiscord@users.noreply.github.com> | 2020-11-06 19:47:45 +0100 |
|---|---|---|
| committer | stonedDiscord <10584181+stonedDiscord@users.noreply.github.com> | 2020-11-06 19:47:45 +0100 |
| commit | 9091ebb3293f58e759949304b236d788141846b1 (patch) | |
| tree | 0bf3bd5b38941a4f7342246ea5732e3677935002 /webAO | |
| parent | 46764a72a287cb49d3854b57ae437b0ac947d5cd (diff) | |
play the gif and don't do extra animation for custom shouts
Diffstat (limited to 'webAO')
| -rw-r--r-- | webAO/client.js | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/webAO/client.js b/webAO/client.js index f91d208..1016d24 100644 --- a/webAO/client.js +++ b/webAO/client.js @@ -1453,7 +1453,8 @@ class Viewport { undefined, "holdit", "objection", - "takethat" + "takethat", + "custom" ]; this.colors = [ @@ -1840,9 +1841,14 @@ async changeBackground(position) { if (shout) { // Hide message box chatContainerBox.style.opacity = 0; - shoutSprite.src = client.resources[shout]["src"]; + if (shout === 4) { + shoutSprite.src = `${AO_HOST}characters/${encodeURI(this.chatmsg.name.toLowerCase())}/custom.gif`; + } else { + shoutSprite.src = client.resources[shout]["src"]; + shoutSprite.style.animation = "bubble 700ms steps(10, jump-both)"; + } shoutSprite.style.opacity = 1; - shoutSprite.style.animation = "bubble 700ms steps(10, jump-both)"; + let shoutUrl; |
