summaryrefslogtreecommitdiff
path: root/play.js
diff options
context:
space:
mode:
authorteisuru <31881306+teisuru@users.noreply.github.com>2023-07-18 21:32:26 +0200
committerTor Andersson <tor@ccxvii.net>2023-12-10 18:16:55 +0100
commitf9ad7df1164ad1067a95c5c198eac21bf8d69c75 (patch)
tree287d21e336d5dd7c9267ad09b35700ad74e0188e /play.js
parentf2e54b675196e2597987a09b75d97d78bbbbc679 (diff)
downloadplantagenet-f9ad7df1164ad1067a95c5c198eac21bf8d69c75.tar.gz
victory_check marker
victory_check marker in rules.js and play.js
Diffstat (limited to 'play.js')
-rw-r--r--play.js10
1 files changed, 8 insertions, 2 deletions
diff --git a/play.js b/play.js
index c888fc0..ee62a12 100644
--- a/play.js
+++ b/play.js
@@ -501,6 +501,7 @@ const calendar_xy = []
const locale_xy = []
let expand_calendar = -1
+let expand_track = -1
const ui = {
locale: [],
@@ -546,6 +547,7 @@ const ui = {
command: document.getElementById("command"),
turn: document.getElementById("turn"),
end: document.getElementById("end"),
+ victory_check: document.getElementById("victory_check"),
court1_header: document.getElementById("court1_header"),
court2_header: document.getElementById("court2_header"),
court1: document.getElementById("court1"),
@@ -884,7 +886,7 @@ function layout_calendar() {
}
}
}
-/*
+
function layout_track() {
for (let loc = 0; loc <= 45; ++loc) {
let [cx, cy] = track_xy[loc]
@@ -904,7 +906,7 @@ function layout_track() {
e.style.zIndex = z
}
}
-}*/
+}
function add_force(parent, type, lord, routed) {
let elt
@@ -1235,6 +1237,7 @@ function on_update() {
}
layout_calendar()
+ //layout_track()
for (let loc = 0; loc < data.locales.length; ++loc)
update_locale(loc)
@@ -1254,6 +1257,9 @@ function on_update() {
ui.held_york.textContent = `${view.held1} Held`
ui.held_lancaster.textContent = `${view.held2} Held`
+ ui.victory_check.style.top = (track_xy[view.victory_check]) + "px"
+ ui.victory_check.style.left = (track_xy[view.victory_check]) + "px"
+
update_plan()
update_cards()