fix: hexagon coordinate view tweaks (#2250)#2913
Open
sungdark wants to merge 4 commits intoFreezingMoon:masterfrom
Open
fix: hexagon coordinate view tweaks (#2250)#2913sungdark wants to merge 4 commits intoFreezingMoon:masterfrom
sungdark wants to merge 4 commits intoFreezingMoon:masterfrom
Conversation
Implements leap movement for Gumble's Goey Body ability when upgraded. - Allows Gumble to leap over units when moving at least 2 hexagons - Adds ignoreCreatures parameter to isWalkable and search functions - Adds getLeapRange method in hexgrid - Adds 'leap' movement type support in creature movement system Fixes issue FreezingMoon#2850
- Adds Undo Move feature that allows players to undo the last movement action - Undo is available once per round via Ctrl+Z hotkey or button click - Saves creature state (position, health, energy, remaining move, etc.) before each move - Restores state when undo is triggered - Replaces Delay Turn button after a move action is performed - Resets undo availability at the start of each new round Implements: FreezingMoon#2704
…raded When upgraded, Goey Body now provides leap movement (already implemented) instead of creating a confusing trap on death that may or may not affect allies. Fixes FreezingMoon#2850
- Remove x-ray effect on units when grid view is shown (was tedious) - Coordinates now display on top of all units with white stroke for visibility - Add dashed hex grid overlay at 25% opacity for non-unit occupied hexes - Ensure coord text is always on top via bringToTop
|
@rhoggs-bot-test-account is attempting to deploy a commit to the FreezingMoon Team on Vercel. A member of the Team first needs to authorize it. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements the hexagon coordinate view tweaks described in issue #2250:
Units no longer in x-ray mode — Removed the tedious x-ray effect on units when the grid view is shown (holding Shift or hovering the turn marker).
Coordinates display on top of units — Added white stroke to coordinate text on ALL hexes (not just empty ones) and ensured coord text is always brought to top of the overlay group for visibility over units.
Dashed hex grid overlay — Added a new dashed hex grid (at 25% opacity) for non-unit occupied hexes, displayed on top when the coordinate view is active.
Changes
src/utility/hexgrid.ts: ModifiedshowGrid()to remove x-ray call and adddashedGridvisual class to empty hexessrc/utility/hex.ts: ModifiedupdateStyle()to handledashedGridclass (dashed hex at 25% opacity) and always show coordinate text with white stroke on all hexesTesting
Build verified successfully. The coordinate view is triggered by:
Bounty: 7 XTR
Payment address: eB51DWp1uECrLZRLsE2cnyZUzfRWvzUzaJzkatTpQV9