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

Fix Minimap click doing nothing #231

Merged
merged 1 commit into from
May 18, 2024

Conversation

Spartan322
Copy link
Member

@Spartan322 Spartan322 commented May 15, 2024

Add MapView queue_province_hover_update
Fix edge scrolling continuing when mouse leaves window
Add province hover reset when mouse leaves the window
Change _edge_move_threshold to 0.025

@Spartan322 Spartan322 added bug Something isn't working enhancement New feature or request labels May 15, 2024
Copy link
Contributor

@Hop311 Hop311 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it would be better to unset the hovered province when the mouse goes out of the window, rather than leaving the last hovered province set.
Also edge scrolling continues in the direction of the last recorded _mouse_pos_viewport value when the mouse exits the window, better to stop edge scrolling when the mouse is out of the window (but ideally still move if it's over a menu in the window).

Copy link
Contributor

@Hop311 Hop311 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you increase _edge_move_threshold to compensate for it stopping when out of the window? Maybe to 0.025, or whatever you feel works well.

game/src/Game/GameSession/MapView.gd Outdated Show resolved Hide resolved
Add MapView queue_province_hover_update
	Makes province hover much more reliable
Fix edge scrolling continuing when mouse leaves window
Add province hover reset when mouse leaves the window
Change _edge_move_threshold to 0.025
@Spartan322 Spartan322 merged commit fb74bc8 into OpenVicProject:master May 18, 2024
9 checks passed
@Spartan322 Spartan322 deleted the fix/map-behavior branch May 18, 2024 22:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants