85 Commits

Author SHA1 Message Date
515323feaa Fix restoring zoom on page reload 2025-06-16 22:41:31 -07:00
f534a22c2e Extract scenario-build function into separate module 2025-06-16 22:41:31 -07:00
c424c1fef2 Fix load scenario transition fade out 2025-06-16 22:41:31 -07:00
6d57d7489b Remove some commented-out code 2025-06-16 22:41:31 -07:00
7b5fd7590b WIP: Fix pan-zoom for webkit 2025-06-16 22:41:31 -07:00
3de614c8ee Don't use custom built-in elements because they are not supported in webkit 2025-06-16 22:41:31 -07:00
c46c361217 Fix/refactor tests 2025-06-16 22:41:31 -07:00
f53358216c Fix storing scenario in local storage 2025-06-16 22:41:31 -07:00
2458e1a308 Make scenarios list in modal dynamic 2025-06-16 22:41:31 -07:00
7f5829a534 WIP: put all svg refs in scenario file at build time 2025-06-16 22:41:31 -07:00
4075fd97f9 Try to simplify trooper counter 2025-06-16 22:41:31 -07:00
4a546ea443 WIP: select counter test 2025-06-16 22:41:31 -07:00
488ebb384b Import mapsheets.svg 2025-06-16 22:41:31 -07:00
de1b9e2689 WIP: mock selenium response 2025-06-16 22:41:31 -07:00
9f4ff16638 WIP: intercept request in test 2025-06-16 22:41:31 -07:00
5f7c980ad5 Minor refactor 2025-06-16 22:41:31 -07:00
e29bd0fb0f Don't export unnecessary functions 2025-06-16 22:41:31 -07:00
96739897ec Use observable for showing hex distance count 2025-06-16 22:41:31 -07:00
5453b87db7 Use observable for end move and prone flag 2025-06-16 22:41:31 -07:00
9d4952eaad Remove select callbacks and use observable instead 2025-06-16 22:41:31 -07:00
0a84d99ce6 Fix custom affiliation names 2025-06-16 22:41:31 -07:00
c0a6440b48 WIP: record sheet layout 2025-06-16 22:41:30 -07:00
142d472e06 Add weapon icons to record sheet 2025-06-16 22:41:30 -07:00
e4c1aaaf4f Simplify loading scenarios 2025-06-16 22:41:30 -07:00
baa1d34578 Change attacker color from green to blue; change trace color 2025-06-16 22:41:30 -07:00
873a5939ef Apply styles and map script to manually loaded files 2025-06-16 22:41:30 -07:00
c1f516be2a Don't blow up if weapon element missing from trooper counters 2025-06-16 22:41:30 -07:00
78882ad311 Fix preexisting prone counter not removing if unit end movement without moving 2025-06-16 22:41:30 -07:00
868ea94010 Generate weapon data dynamically from counters 2025-06-16 22:41:30 -07:00
17e28ba214 Organize public directory contents into assets folders 2025-06-16 22:41:29 -07:00
8fb858fc46 Clear placing stack on unselect 2025-06-16 22:41:29 -07:00
088a37d128 Allow placing a counter that doesn't already exist 2025-06-16 22:41:29 -07:00
484100727f Allow selecting off-board units 2025-06-16 22:41:29 -07:00
0af0271076 Fix cancel firing arc placement bug 2025-06-16 22:41:29 -07:00
8970c1f59e Refactor index.js 2025-06-16 22:41:29 -07:00
e6b6217221 Refactor place function in soldier module 2025-06-16 22:41:29 -07:00
93d17fc711 Fix end movement bug 2025-06-16 22:41:29 -07:00
1299c2cdaf Refactor cell event listeners 2025-06-16 22:41:29 -07:00
17fd1c813b Create record sheet dynamically when map is loaded 2025-06-16 22:41:29 -07:00
7455dd0173 Clear sight line before drawing after unlocking 2025-06-16 22:41:29 -07:00
0da0c51a45 Rename element class 'board' to 'gameboard' 2025-06-16 22:41:29 -07:00
4de8523965 Add all scenario maps 2025-06-16 22:41:29 -07:00
b980544203 Add ability to change maps 2025-06-16 22:41:29 -07:00
3e513c5684 Rename some files 2025-06-16 22:41:29 -07:00
58c5d8dd63 Some cleanup 2025-06-16 22:41:29 -07:00
868dbf13bb Remove 'reveal pattern' from counter module 2025-06-16 22:41:29 -07:00
863709b062 Remove 'reveal pattern' from sight line module 2025-06-16 22:41:29 -07:00
e33e9de566 Remove 'reveal pattern' from firing arc module 2025-06-16 22:41:29 -07:00
3749477ec1 Remove 'reveal pattern' from game, as it's not necessary 2025-06-16 22:41:29 -07:00
63376cb641 Move function into closure 2025-06-16 22:41:29 -07:00