Skip to content

fix: hexagon coordinate view tweaks (#2250)#2912

Open
sungdark wants to merge 2 commits intoFreezingMoon:masterfrom
sungdark:fix/hexagon-coord-view-2250
Open

fix: hexagon coordinate view tweaks (#2250)#2912
sungdark wants to merge 2 commits intoFreezingMoon:masterfrom
sungdark:fix/hexagon-coord-view-2250

Conversation

@sungdark
Copy link
Copy Markdown

@sungdark sungdark commented Mar 27, 2026

Fix: Hexagon Coordinate View Tweaks (#2250)

Problem

When viewing hexagon coordinates (by hovering the round marker or holding Shift), the current implementation:

  1. Uses x-ray mode on creatures, making them transparent - which is tedious and confusing
  2. Shows solid hexes instead of dashed hexes for empty (non-unit) places

Solution

Modified showGrid() in src/utility/hexgrid.ts and display() in src/utility/hex.ts:

  1. Removed x-ray mode for units: No longer calls hex.creature.xray(val) when viewing coordinates. Creatures remain fully visible.
  2. Added dashed grid for empty hexes: When showGrid is active, empty (non-unit) hexes now display with the dashed visual state, showing the hex_dashed texture instead of solid hexes.
  3. 25% opacity for empty dashed hexes: Empty hexes with dashed class display at 25% opacity when showGrid is active, per the issue specification.

Changes

  • src/utility/hexgrid.ts: Modified showGrid() method to:

    • Remove hex.creature.xray(val) call (units no longer go x-ray when viewing coordinates)
    • Add 'dashed' visual state for empty hexes to show dashed grid overlay
  • src/utility/hex.ts: Modified display() method to:

    • Set empty dashed hexes to 25% alpha (this.display.alpha = 0.25) when showGrid is also active

How it works

  • Coordinates on top of units: Coordinate text is rendered in overlayHexesGroup (above creature sprites in displayHexesGroup), so coordinates are always visible on top of units even without x-ray
  • Dashed grid for empty hexes at 25% opacity: Empty hexes show hex_dashed texture at 25% opacity when showGrid is active
  • Creature hexes: Hexes with units show coordinates on top (via overlayHexesGroup) while creature sprite remains visible below at full opacity

Bounty: 7 XTR
Recipient Address: eB51DWp1uECrLZRLsE2cnyZUzfRWvzUzaJzkatTpQV9

- Added movementType function that returns 'flying' when upgraded
- Non-upgraded ability still creates death trap (affects all units)
- Upgraded ability provides flying movement to leap over units during movement phase
- Simplified trap behavior (no longer checks for allies)
- Fixes issue: Goey Body upgrade revamp FreezingMoon#2850
@vercel
Copy link
Copy Markdown

vercel bot commented Mar 27, 2026

@sungdark is attempting to deploy a commit to the FreezingMoon Team on Vercel.

A member of the Team first needs to authorize it.

- 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
收款地址:eB51DWp1uECrLZRLsE2cnyZUzfRWvzUzaJzkatTpQV9
@sungdark sungdark force-pushed the fix/hexagon-coord-view-2250 branch from 10345b8 to 1a1e207 Compare March 27, 2026 12:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant