pretmap icon indicating copy to clipboard operation
pretmap copied to clipboard

Change cursor based on tool selected

Open garakmon opened this issue 6 years ago • 5 comments

This should resolve Issue #7 .

*This changes the cursor only over the editable part of the map.

garakmon avatar Aug 11 '18 18:08 garakmon

gif

garakmon avatar Aug 11 '18 18:08 garakmon

Latest commit addresses #51 and #33 Adds:

  • View Menu with keyboard shortcuts > Zoom In (+) / Zoom Out (-)
    • default scaling is 5/4 - 4/5
  • Map ‘+’ cursor drag and move edit mode that can also be toggled with M key

Not implemented: scroll wheel zooming in drag mode (but keyboard shortcuts should be sufficient at least for now).

garakmon avatar Aug 13 '18 03:08 garakmon

Demo: Alt text

garakmon avatar Aug 13 '18 04:08 garakmon

The icons you're using seem jarring to me because their base coordinate is different. The pencil's is bottom-left, the bucket's is bottom-right, etc. I think this cursor style is easier to use:

pretmap-cursors

huderlem avatar Sep 06 '18 22:09 huderlem

I did it the way I did just because I wanted the tools to work from the tip (like, the pencil shouldn't draw from the middle, etc.), but this is also a good solution.

garakmon avatar Sep 07 '18 03:09 garakmon