-
Notifications
You must be signed in to change notification settings - Fork 31
Zoom in and out buttons #275
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
Conversation
750b7f2 to
09977d1
Compare
manuq
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a great contribution! Only one thing requested: the buttons should contain icons, not text.
| layout_mode = 2 | ||
| focus_mode = 0 | ||
| theme_override_font_sizes/font_size = 24 | ||
| text = "-" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be an icon button. The Godot editor has icons for zoom less / more:
| layout_mode = 2 | ||
| focus_mode = 0 | ||
| theme_override_font_sizes/font_size = 24 | ||
| text = "+" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here, it should be an icon button.
manuq
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With the icons this is excellent now! Please squash the commits and add a descriptive commit message.
Here is a good article about writting good commmit messages: https://dhwthompson.com/2019/my-favourite-git-commit
|
|
||
| func _on_zoom_out_button_pressed() -> void: | ||
| if zoom > 0.2: | ||
| zoom /= ZOOM_FACTOR |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Proper input options are necessary for each platform, especially when the interface primarily utilizes point-and-click input
f48bd11 to
7ac9caa
Compare
Adds zoom in and out buttons for touch input devices
