add follow canvas movement and scale option to transparent checker (#311)

This commit is contained in:
Kinwailo 2020-08-18 03:30:58 +08:00 committed by GitHub
parent b998c87bcc
commit 39808082b6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 93 additions and 7 deletions

View file

@ -15,11 +15,7 @@ func _on_FitToFrame_pressed():
func _on_100_pressed():
Global.camera.zoom = Vector2.ONE
Global.camera.offset = Global.current_project.size / 2
Global.zoom_level_label.text = str(round(100 / Global.camera.zoom.x)) + " %"
Global.horizontal_ruler.update()
Global.vertical_ruler.update()
Global.camera.zoom_100()
func get_config() -> Dictionary: