From 4b1373063559ec4794506d0e0cd623da64b25fa3 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sat, 3 Sep 2022 16:20:44 +0200 Subject: move highlights? --- play.html | 20 ++++++++++++-------- rules.js | 4 +--- 2 files changed, 13 insertions(+), 11 deletions(-) diff --git a/play.html b/play.html index 0cfbcae..8781fa1 100644 --- a/play.html +++ b/play.html @@ -301,24 +301,28 @@ svg .hex.refit.action { stroke: lightskyblue; } -svg .hex.to { - stroke: blue; - stroke-dasharray: 4 4; -} - svg .hex.action { stroke: ivory; stroke-dasharray: 2 2; stroke-dashoffset: 1; } +svg .hex.action.forced_march { + stroke: crimson; +} + svg .hex.from { stroke: yellow; - stroke-dasharray: 8 4; + stroke-dasharray: none; } -svg .hex.action.forced_march { - stroke: crimson; +svg .hex.to { + stroke: yellow; + stroke-dasharray: 4 4; +} + +svg .hex.to.from { + stroke-dasharray: 8 4; } svg .hex.selected { diff --git a/rules.js b/rules.js index f8ccf2c..776a2b2 100644 --- a/rules.js +++ b/rules.js @@ -3270,12 +3270,10 @@ states.move = { let rommel1 = (game.rommel === 1) ? 1 : 0 let rommel2 = (game.rommel === 2) ? 1 : 0 - if (game.to1) view.to1 = game.to1 - if (game.to2) view.to2 = game.to2 - if (game.selected < 0) { view.prompt = `Move: Select unit to move.` + show_move_commands() // Select Group Move 1 if (!game.to1 && game.from1) { -- cgit v1.2.3