summaryrefslogtreecommitdiff
path: root/play.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-06-04 20:45:51 +0200
committerTor Andersson <tor@ccxvii.net>2023-12-10 18:16:55 +0100
commit35f785f304c89ba5fe7f61d9959727e96e2b8706 (patch)
tree908d4508c4a41ce43c8a31918135582d6ee5740e /play.js
parent2f2c7698ffc2964a2f08feafca41f8a20f241d21 (diff)
downloadplantagenet-35f785f304c89ba5fe7f61d9959727e96e2b8706.tar.gz
Background colors and beveled borders.
Diffstat (limited to 'play.js')
-rw-r--r--play.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/play.js b/play.js
index 824b0da..66f682c 100644
--- a/play.js
+++ b/play.js
@@ -511,7 +511,7 @@ const ui = {
lord_events: [],
lord_moved1: [],
lord_moved2: [],
- lord_feed_x2: [],
+ lord_feed: [],
cards: [],
calendar: [],
@@ -583,7 +583,7 @@ function build_lord_mat(lord, ix, side, name) {
ui.lord_events[ix] = build_div(mat, "events")
ui.lord_moved1[ix] = build_div(mat, "marker square moved_fought one hide")
ui.lord_moved2[ix] = build_div(mat, "marker square moved_fought two hide")
- ui.lord_feed_x2[ix] = build_div(mat, "marker small feed_x2")
+ ui.lord_feed[ix] = build_div(mat, "marker small feed x2")
ui.lord_mat[ix] = mat
register_action(ui.lord_buttons[ix], "lord", ix)
}
@@ -970,7 +970,7 @@ function update_lord_mat(ix) {
// update_vassals(ui.ready_vassals[ix], ui.mustered_vassals[ix], ix)
update_forces(ui.forces[ix], view.pieces.forces[ix], ix, false)
update_forces(ui.routed[ix], view.pieces.routed[ix], ix, true)
- ui.lord_feed_x2[ix].classList.toggle("hide", count_lord_all_forces(ix) <= 6)
+ ui.lord_feed[ix].classList.toggle("hide", count_lord_all_forces(ix) <= 6)
} else {
ui.lord_mat[ix].classList.add("hidden")
ui.assets[ix].replaceChildren()
@@ -978,7 +978,7 @@ function update_lord_mat(ix) {
ui.routed[ix].replaceChildren()
ui.lord_moved1[ix].classList.add("hide")
ui.lord_moved2[ix].classList.add("hide")
- ui.lord_feed_x2[ix].classList.add("hide")
+ ui.lord_feed[ix].classList.add("hide")
}
let m = get_lord_moved(ix)
ui.lord_moved1[ix].classList.toggle("hide", is_levy_phase() || (m !== 1 && m !== 2))