Commit 1a1e207
committed
fix: hexagon coordinate view tweaks (#2250)
- Remove hex.creature.xray() call in showGrid() so units remain fully visible (no longer tedious x-ray mode)
- Add 'dashed' visual state for empty (non-unit) hexes when showGrid is active, displaying a dashed grid overlay
- Set empty dashed hexes to 25% opacity when showGrid is active per issue spec
- Occupied hexes: creature sprite visible below, coordinates display in overlayHexesGroup (above creatures)
- Empty hexes: dashed hex at 25% opacity with coordinates on top in overlayHexesGroup
Changes:
- src/utility/hexgrid.ts: Modified showGrid() - removed xray call, added dashed class for empty hexes
- src/utility/hex.ts: Modified display() - set empty dashed hexes to 25% alpha when showGrid active
Bounty: 7 XTR
收款地址:eB51DWp1uECrLZRLsE2cnyZUzfRWvzUzaJzkatTpQV91 parent fb54641 commit 1a1e207
2 files changed
+9
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
581 | 581 | | |
582 | 582 | | |
583 | 583 | | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
584 | 588 | | |
585 | 589 | | |
586 | 590 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1456 | 1456 | | |
1457 | 1457 | | |
1458 | 1458 | | |
1459 | | - | |
1460 | | - | |
1461 | | - | |
1462 | | - | |
1463 | 1459 | | |
1464 | 1460 | | |
1465 | 1461 | | |
1466 | 1462 | | |
1467 | 1463 | | |
1468 | 1464 | | |
| 1465 | + | |
| 1466 | + | |
| 1467 | + | |
| 1468 | + | |
1469 | 1469 | | |
1470 | 1470 | | |
| 1471 | + | |
1471 | 1472 | | |
1472 | 1473 | | |
1473 | 1474 | | |
| |||
0 commit comments