summaryrefslogtreecommitdiff
path: root/play.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-05-01 01:49:49 +0200
committerTor Andersson <tor@ccxvii.net>2024-05-01 01:49:49 +0200
commit45133db61d0a0898daa0c626dc9ee45827434cde (patch)
tree64a2aab0a6555946ef7ff086e5315f65b3644ff9 /play.js
parentfed84534012f9e9fe236c978136e26574112887a (diff)
downloadplantagenet-45133db61d0a0898daa0c626dc9ee45827434cde.tar.gz
tweak seat layouts
Diffstat (limited to 'play.js')
-rw-r--r--play.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/play.js b/play.js
index 814725f..17b1230 100644
--- a/play.js
+++ b/play.js
@@ -803,7 +803,7 @@ function layout_calendar() {
list = calendar_layout_lanc[loc]
for (let i = 0; i < list.length; ++i) {
let e = ui.lord_cylinder[list[i]]
- let x = cx, y = cy, z = 30
+ let x = cx, y = cy, z = 30 + i
x += 5
y += i * 30 - 2
e.style.top = y + "px"
@@ -813,9 +813,9 @@ function layout_calendar() {
// cylinder is 44x48, exile marker is 39
if (is_lord_in_exile(list[i])) {
e = ui.lord_exile[list[i]]
- e.style.top = y + 5 + "px"
+ e.style.top = y + 7 + "px"
e.style.left = x + 3 - 20 + "px"
- e.style.zIndex = z - 1
+ e.style.zIndex = z + 1
}
}
@@ -823,7 +823,7 @@ function layout_calendar() {
for (let i = 0; i < list.length; ++i) {
// ui.lord_exile[ix].classList.toggle("hide", !is_lord_in_exile(ix))
let e = ui.lord_cylinder[list[i]]
- let x = cx, y = cy, z = 30
+ let x = cx, y = cy, z = 30 + i
x += 50
y += i * 30 - 2
e.style.top = y + "px"
@@ -833,7 +833,7 @@ function layout_calendar() {
// cylinder is 44, exile marker is 39
if (is_lord_in_exile(list[i])) {
e = ui.lord_exile[list[i]]
- e.style.top = y + "px"
+ e.style.top = y + 7 + "px"
e.style.left = x + 3 + 20 + "px"
e.style.zIndex = z - 1
}