Commit Graph

330 Commits

Author SHA1 Message Date
Catalin Mititiuc
35a82e94e8 Change record sheet visibility with JavaScript instead of CSS
since the CSS way doesn't work on my version of Firefox
2024-04-11 10:04:56 -07:00
Catalin Mititiuc
dacecbb4f5 Remove stroke around selected counters 2024-04-07 11:08:06 -07:00
Catalin Mititiuc
5afa53ef7a Add turn counter and inning indicator 2024-04-06 15:09:09 -07:00
Catalin Mititiuc
5e2a62bb7a Make counter's firing arc visible on mouseover 2024-04-06 12:09:08 -07:00
Catalin Mititiuc
ac9b456314 Add styling to sight line target hex 2024-04-06 11:45:21 -07:00
Catalin Mititiuc
ba1e9009a3 Avoid hiding firing arc if visibility is toggled when changing unit selection 2024-04-06 11:21:22 -07:00
Catalin Mititiuc
f73241afb8 Sight line logic; I think it works but this conditional is gnarly 2024-04-06 10:46:56 -07:00
Catalin Mititiuc
16672db15a WIP: sight line 2024-04-05 21:39:52 -07:00
Catalin Mititiuc
ea400e2de3 Fix firing arc position 2024-04-05 16:42:26 -07:00
Catalin Mititiuc
e8f0dde6da Select soldier by clicking on their counter; allow locking on another counter vs the hex 2024-04-05 16:19:30 -07:00
Catalin Mititiuc
83ba223e01 WIP: fix sight line 2024-04-05 13:55:46 -07:00
Catalin Mititiuc
9dff1c289d WIP: put everything on the same hex in a group together; get rid of x and y coordinates on counters completely 2024-04-05 13:21:26 -07:00
Catalin Mititiuc
a618b160d0 Fix ending turn not selecting active counter 2024-04-05 09:52:40 -07:00
Catalin Mititiuc
9dbb0a5369 Enlarge counter radius on pointer hover 2024-04-05 09:27:46 -07:00
Catalin Mititiuc
8bd67fbee2 Fix using duplicate ids for counters and clip paths 2024-04-04 15:52:56 -07:00
Catalin Mititiuc
b75a92bfe3 Fix 'pan event being cancelled by the browser' bug 2024-04-04 15:14:16 -07:00
Catalin Mititiuc
9e653d0681 Add prone counters 2024-04-04 09:04:05 -07:00
Catalin Mititiuc
adc67da606 Toggle allegiance firing arc visibility 2024-04-03 14:22:33 -07:00
Catalin Mititiuc
dc56db385c Fix unselecting selected record 2024-04-03 13:18:35 -07:00
Catalin Mititiuc
24aa825bc6 Clear sightline when counter moves back along move trace 2024-04-03 13:14:23 -07:00
Catalin Mititiuc
616bdf15d9 Use right mouse button for setting sight line 2024-04-03 09:40:20 -07:00
Catalin Mititiuc
202f3ffa6c WIP: more refactor 2024-04-02 21:58:29 -07:00
Catalin Mititiuc
7dfea639fb WIP: refactor 2024-04-02 19:26:41 -07:00
Catalin Mititiuc
fbb9663183 Movement history 2024-04-02 15:57:47 -07:00
Catalin Mititiuc
b03ab287e0 Overlaying firing arcs don't just keep getting darker and darker 2024-04-01 14:06:25 -07:00
Catalin Mititiuc
6711c88125 End turn 2024-04-01 12:58:22 -07:00
Catalin Mititiuc
5c1dfbca50 WIP: end movement, turn buttons 2024-04-01 12:20:04 -07:00
Catalin Mititiuc
64aeda4b55 Fix after moving svg into container div 2024-03-31 17:28:16 -07:00
Catalin Mititiuc
69b1d8252e Make sight-line stationary on click 2024-03-31 15:52:29 -07:00
Catalin Mititiuc
7fa416ee1a WIP: sight line, distance 2024-03-31 12:41:28 -07:00
Catalin Mititiuc
8332ce9bea WIP: sight line and hex count 2024-03-31 11:48:43 -07:00
Catalin Mititiuc
798658a826 WIP: line draw, localstorage settings 2024-03-30 19:58:55 -07:00
Catalin Mititiuc
45cfef270f Use matrix transform to calculate counter coordinates 2024-03-29 16:30:43 -07:00
Catalin Mititiuc
694f2dbb24 Add adjustment debug panel 2024-03-29 12:30:20 -07:00
Catalin Mititiuc
c5bfc6cc17 Disallow selecting text in SVG text elements 2024-03-28 14:24:41 -07:00
Catalin Mititiuc
6122d612d4 Capture pointer when panning svg 2024-03-28 14:23:23 -07:00
Catalin Mititiuc
a715a966f6 Pan the map when clicked and dragged 2024-03-28 12:04:53 -07:00
Catalin Mititiuc
86d1529f4c Spent way too much time on styling 2024-03-27 16:38:50 -07:00
Catalin Mititiuc
7c1cc97bd2 Scroll the record sheet sides individually when viewport width is narrow 2024-03-27 15:07:04 -07:00
Catalin Mititiuc
ca6eb9abab Grow/shrink record sheet as viewport size permits 2024-03-27 14:49:57 -07:00
Catalin Mititiuc
6c940cf89a Increase map to 2 map sheets; fix some layout/styles 2024-03-27 14:31:32 -07:00
Catalin Mititiuc
1add30fc6e Shift layout when viewport is large enough to accomodate 2024-03-26 16:16:26 -07:00
Catalin Mititiuc
77bbf5b826 WIP: think I got zoom working? 2024-03-26 16:02:57 -07:00
Catalin Mititiuc
42428e3643 WIP: zoom 2024-03-26 11:45:37 -07:00
Catalin Mititiuc
664e228e81 Remove some unnecessary styles 2024-03-25 14:30:45 -07:00
Catalin Mititiuc
b2a68f8d76 Only remove clicked counter if counter's soldier is currently selected 2024-03-25 14:25:59 -07:00
Catalin Mititiuc
8bdc269609 Add line of sight 2024-03-25 14:00:15 -07:00
Catalin Mititiuc
de5f3c2666 Clean up some styles 2024-03-25 12:54:27 -07:00
Catalin Mititiuc
fd7bccda92 Add 'Clear Firing Arcs' buttons 2024-03-25 11:09:28 -07:00
Catalin Mititiuc
16843364d3 Add physical status track to soldier records 2024-03-25 10:44:28 -07:00