diff options
author | Tor Andersson <tor@ccxvii.net> | 2025-03-11 01:05:43 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2025-03-11 01:08:51 +0100 |
commit | d167c9891968b02627fc240b0b75ae9fd9b770af (patch) | |
tree | dbcf68bea4a48771d0f25e42b6ff51133c466b7e /play.js | |
parent | 0b20f381756c0aab5a2182680f6311a6b4530b0d (diff) | |
download | land-and-freedom-d167c9891968b02627fc240b0b75ae9fd9b770af.tar.gz |
More UI tweaks.
Diffstat (limited to 'play.js')
-rw-r--r-- | play.js | 26 |
1 files changed, 14 insertions, 12 deletions
@@ -180,13 +180,6 @@ function build_track(t, action_name, track_name, a, b) { for (let s = a; s <= b; ++s) { const bm = t * 11 + s - e = (ui.blank_markers[bm] = document.createElement("div")) - e.className = "red token blank hide" - e.style.top = Math.round(y+4) + "px" - e.style.left = Math.round(x+3) + "px" - register_action(e, "blank_marker", bm) - ui.map_container.appendChild(e) - ui.tracks_x[t][s] = Math.round(x) + 4 + "px" e = ui.tracks[t][s] = document.createElement("div") e.className = "track" @@ -195,6 +188,13 @@ function build_track(t, action_name, track_name, a, b) { register_action(e, action_name, s) ui.map_container.appendChild(e) + e = (ui.blank_markers[bm] = document.createElement("div")) + e.className = "red token blank hide" + e.style.top = Math.round(y+4) + "px" + e.style.left = Math.round(x+3) + "px" + register_action(e, "blank_marker", bm) + ui.map_container.appendChild(e) + x += 60.5 } @@ -538,17 +538,19 @@ function on_update() { // eslint-disable-line no-unused-vars action_button("play_to_tableau", "Action Points") action_button("play_for_event", "Event") action_button("remove_blank_marker", "Remove Blank marker") - action_button("use_ap", "Use Action Points") - action_button("use_momentum", "Play second card (Momentum)") - action_button("use_morale_bonus", "Use Morale Bonus") - action_button("spend_hp", "Spend Hero Points") + action_button("use_momentum", "Momentum") + action_button("use_ap", "Action Points") + action_button("use_morale_bonus", "Morale Bonus") + action_button("skip", "Skip") action_button("yes", "Yes") action_button("no", "No") - action_button("skip", "Skip") action_button("confirm", "Confirm") action_button("done", "Done") + + action_button("spend_hp", "Hero Points") + action_button("end_turn", "End Turn") action_button("undo", "Undo") |