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

Update topology toolbar tooltip to include movement blocking #4773

Merged

Conversation

kwvanderlinde
Copy link
Collaborator

@kwvanderlinde kwvanderlinde commented May 7, 2024

Identify the Bug or Feature request

Fixes #4772

Description of the Change

Some tools were missing calls to DefaultTool.mouseMoved() in their overrides of that method, which meant the coordinates were not being updated. This includes all the topology tools, the oval drawing tool, the adjust board tool, and the adjust grid tool.

The pointer tool, stamp tool, and line drawing tool were updated to be consistent about calling DefaultTool.mouseMoved() at the start of their overrides. This doesn't change or fix anything, but makes sure it won't get missed regardless of the conditions set in these overrides.

DrawnLabel appears to be a legacy label implementation. Its corresponding tool, DrawnTextTool also has the coordinate problem. But since it is unused, I deleted it instead of fixing it.

Also noticed the tooltip for the topology toolbar only mentioned VBL. So I changed it from Vision Blocking Layer (VBL) Tools to Topology Tools (Vision and Movement Blocking Layer)

Possible Drawbacks

Should be none.

Documentation Notes

N/A

Release Notes

  • Fixed a bug where various tools would not update the coordinate status bar

This change is Reviewable

All topology tools needed this fix, as did the oval drawing tool. Each one of these failed to call `super.mouseMoved()`
in their respective overrides but now do so at the start of the method.

The board and grid adjust tools were similar, but did not need their overrides at all.
This ensures the mouse coordinates are saved and the coordinate status bar is updated, regardless of whatever else
happens in these methods.
This is a legacy label implementation, referenced nowhere except during serialization. We have to keep it around because
campaigns may have them serialized. However the corresponding tool `DrawnTextTool` is unused and has been removed, and
some parts of `DrawnLabel` could be removed as well.
@kwvanderlinde kwvanderlinde self-assigned this May 7, 2024
@kwvanderlinde kwvanderlinde force-pushed the bugfix/4772-topology-tool-coordinates branch from bb9b0e8 to 0c1e2cd Compare May 7, 2024 05:35
@cwisniew cwisniew added this pull request to the merge queue May 14, 2024
Merged via the queue into RPTools:develop with commit c458e74 May 14, 2024
4 checks passed
@kwvanderlinde kwvanderlinde deleted the bugfix/4772-topology-tool-coordinates branch May 16, 2024 16:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Merged
Development

Successfully merging this pull request may close these issues.

[Bug]: Topology tool cursor coordinates
2 participants