Skip to content

Feature/2743 drawing and template interaction improvements #5731

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

Open
wants to merge 5 commits into
base: develop
Choose a base branch
from

Conversation

Baaaaaz
Copy link
Contributor

@Baaaaaz Baaaaaz commented Jul 25, 2025

Identify the Bug or Feature request

towards #2743
possibly #5165

Description of the Change

  • New Drawing Pointer Tool and Template Pointer Tool, allowing selection of drawn elements on the map using the mouse (either using mouse presses/releases or a draggable selection box) for subsequent interaction (e.g. show the draw panel popup menu for the selected drawn elements).
  • Drawing Pointer Tool -> will only affect drawings
  • Template Pointer Tool -> will only affect templates, selected templates can be dragged, deleted, or duplicated (Ctrl+V), a single selected template can be repositioned and resized
  • FlatImageLabelFactory -> New style labels for drawn elements using the drawn element's pen colors.
  • GraphicsUtil -> Addition of a new contrast color method to assist labelling when pen or background colors are transparent.
  • RessourceManager & Icons -> new icons for the new tools.
  • AppStyle -> new drawing selection box fill color (red to match new icon colors).
  • DrawPanelPopupMenu -> new Duplicate action for templates only
  • BlastTemplate -> direct setting of the control cell offset

Possible Drawbacks

  • Lots of different mouse event modifiers (i.e. Shift/Control/Alt).
  • Wall templates can be repositioned, but their shape/size cannot be changed.
  • Drawings cannot be dragged.
  • Drawing Pointer Tool does not interact with the Text Label Tool under drawing tools.
  • Labels (name, movement, radius/size) and interactions needs more thorough testing w.r.t. FoW.
  • The Delete Drawing Tool could be replaced, as the new tools do this and more.
  • Changing a drawn elements pen colors will not be reflected on the label until the layers or tools are changed.

Documentation Notes

New Drawing Pointer Tool:
image

New Template Pointer Tool:
image

New labels for templates:
image

New labels for drawings:
image

Popupmenu for the drawn elements (s) selected on the map:
image

Dragging templates to a new position:
image

Dragging template size/radius and path/direction:
image
image

Release Notes

  • Drawings can now be interacted with directly on the map using the mouse. Similarly for templates which can now be dragged.

This change is Reviewable

@FullBleed
Copy link

Nifty. You keep working on the drawing tools and I might actually start using them! ;)

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.

2 participants