From f9ad7df1164ad1067a95c5c198eac21bf8d69c75 Mon Sep 17 00:00:00 2001 From: teisuru <31881306+teisuru@users.noreply.github.com> Date: Tue, 18 Jul 2023 21:32:26 +0200 Subject: victory_check marker victory_check marker in rules.js and play.js --- play.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'play.js') 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() -- cgit v1.2.3