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

"Reset to Center" and "Zoom to Drawing" Functions #264

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

tafode
Copy link
Contributor

@tafode tafode commented Mar 22, 2024

As described in #233 I have created two new buttons in the toolbar. One for resetting the camera to center/home (position 0/0 with Zoom 1) and one that zooms out so that the whole drawing is shown.

image

I'm not sure if the Icons are clear enough. So I'm open for suggestions. Additionally they don't match exactly the style of the others.

Known issues with this solution:

  • If it would be necessary to zoom out further than 100 to see the whole drawing, it stops at the limit of 100 and only shows a part of the drawing.
  • In some cases, if the window is very small, a small part of the drawing may be hidden under the toolbar when zoom to drawing.

Added Toolbar buttons for the new functions
Re-Implementation for Godot 4.3
@tafode tafode reopened this Sep 2, 2024
@tafode
Copy link
Contributor Author

tafode commented Sep 2, 2024

I'm not sure if this feature is still needed/wanted, but I have re-implemented the logic, so that it works now with the new Godot 4.3 version.

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.

1 participant