aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsD <stoned@derpymail.org>2019-12-21 18:47:12 +0100
committersD <stoned@derpymail.org>2019-12-21 18:47:12 +0100
commit14a820df051d53e9a3254b819c1b63c84c549b14 (patch)
tree71cf16d7ea0befbde85b8041f32aa227d7271e7d
parente5ba4be22c3e77d120c8aaf17d19e6b439ea180b (diff)
fix offset
-rw-r--r--webAO/client.css1
-rw-r--r--webAO/client.html2
-rw-r--r--webAO/client.js1
3 files changed, 2 insertions, 2 deletions
diff --git a/webAO/client.css b/webAO/client.css
index 0899e48..5056e27 100644
--- a/webAO/client.css
+++ b/webAO/client.css
@@ -169,7 +169,6 @@ img {
height: 100%;
width: 100%;
bottom: 0;
- left: 0;
}
#client_bench {
diff --git a/webAO/client.html b/webAO/client.html
index 9423341..4a6852f 100644
--- a/webAO/client.html
+++ b/webAO/client.html
@@ -129,7 +129,7 @@
<option value="-1">None</option>
</select>
<label for="pair_offset">Pairing offset:</label>
- <input type="range" name="pair_offset" id="pair_offset" min="0" max="255" value="0">
+ <input type="range" name="pair_offset" id="pair_offset" min="-100" max="100" value="0">
</span>
</fieldset>
</div>
diff --git a/webAO/client.js b/webAO/client.js
index 512dc22..cccf2c8 100644
--- a/webAO/client.js
+++ b/webAO/client.js
@@ -1309,6 +1309,7 @@ class Viewport {
const pairName = this.chatmsg.other_name.toLowerCase();
const pairEmote = this.chatmsg.other_emote.toLowerCase();
pairSprite.style.display = "";
+ pairSprite.style.left = this.chatmsg.other_offset+"%";
pairSprite.src = `${AO_HOST}characters/${pairName}/(a)${pairEmote}.gif`;
} else {
pairSprite.style.display = "none";