aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--webAO/client.js16
1 files changed, 14 insertions, 2 deletions
diff --git a/webAO/client.js b/webAO/client.js
index 4dd89b8..da98094 100644
--- a/webAO/client.js
+++ b/webAO/client.js
@@ -2131,8 +2131,20 @@ async changeBackground(position) {
}
// Shift by the horizontal offset
- //pairLayers.style.left = Number(this.chatmsg.other_offset[0]) + "%";
- //charLayers.style.left = Number(this.chatmsg.self_offset[0]) + "%";
+ switch(this.chatmsg.side) {
+ case "wit":
+ pairLayers.style.left = (200+Number(this.chatmsg.other_offset[0])) + "%";
+ charLayers.style.left = (200+Number(this.chatmsg.self_offset[0])) + "%";
+ break;
+ case "pro":
+ pairLayers.style.left = (400+Number(this.chatmsg.other_offset[0])) + "%";
+ charLayers.style.left = (400+Number(this.chatmsg.self_offset[0])) + "%";
+ break;
+ default:
+ pairLayers.style.left = Number(this.chatmsg.other_offset[0]) + "%";
+ charLayers.style.left = Number(this.chatmsg.self_offset[0]) + "%";
+ break;
+ }
// New vertical offsets
pairLayers.style.top = Number(this.chatmsg.other_offset[1]) + "%";