Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed Issue 633, Slight refactor in hexgrid to remove duplicate code #1828

Merged
merged 1 commit into from Dec 21, 2020

Conversation

CKillen
Copy link

@CKillen CKillen commented Dec 21, 2020

#633

When hovering over roundmarker the current units movement range changes to grey so it can be seen.
I also refactored hexgrid.js to remove duplicate code between showMovementRange and my newly created showMovementRangeInOverlay.

Possible issues - this doesn't grey out the hexes when pressing the shift button. Since that wasn't listed in the issue I wasn't sure if I should add it.

@gitpod-io
Copy link

gitpod-io bot commented Dec 21, 2020

@DreadKnight
Copy link
Member

@CKillen Well done! Reusing code is always nice. And regarding Shift key, that would be nice as well now that you mentioned it. Feel free to make new PR for that, will make new issue real quick.

@DreadKnight DreadKnight merged commit d37ad47 into FreezingMoon:master Dec 21, 2020
@CKillen CKillen deleted the issue-633 branch December 22, 2020 02:23
CyberBishop pushed a commit to CyberBishop/AncientBeast that referenced this pull request Apr 20, 2023
Show active unit range when hovering marker + code reuse, fixes FreezingMoon#633
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.

None yet

2 participants