diff options
author | Tor Andersson <tor@ccxvii.net> | 2022-09-03 16:20:44 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2022-11-17 13:11:27 +0100 |
commit | 4b1373063559ec4794506d0e0cd623da64b25fa3 (patch) | |
tree | 1a26b2a37504ae4eca6815169414006c350857f2 | |
parent | 3ee705d44d5862aeb950c572a51c7004a3259ad8 (diff) | |
download | rommel-in-the-desert-4b1373063559ec4794506d0e0cd623da64b25fa3.tar.gz |
move highlights?
-rw-r--r-- | play.html | 20 | ||||
-rw-r--r-- | rules.js | 4 |
2 files changed, 13 insertions, 11 deletions
@@ -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 { @@ -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) { |