Creator icon indicating copy to clipboard operation
Creator copied to clipboard

feat: add possibility to zoom the course workflow

Open Maxsiom opened this issue 4 years ago • 0 comments

Description

I worked on the possibility to zoom the course workflow in the Course Window. First, I thought about manually scaling each single object. Since this needs a lot of rework in every rendering component, a global scaling value, and more work in future GUI components, I decided to find another solution. Then I thought about GUI scaling. So I found a solution using the GUI.matrix.

zoom

It works pretty well but there are still to problems I did not find a proper solution yet:

  1. The scrollbars do move when zooming. Tried to create manual ones but I did something wrong so it did not work out, unfortunately. bug_scrollbars

  2. When zoomed the context menus are positioned wrongly. It uses Event.current.mousePosition. I tried to overwrite it but it did not work out. bug_context

I hope you can do something with this draft PR. 👍

Manual

Panning with middle mouse button. Zooming with CTRL + Mouse Wheel.

Type of change

  • [ ] Bug fix (non-breaking change which fixes an issue)
  • [x] New feature (non-breaking change which adds functionality)
  • [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • [ ] This change requires a documentation update

Maxsiom avatar Jan 08 '21 09:01 Maxsiom