mirror of
https://github.com/tonytins/CozyPixelStudio.git
synced 2025-07-03 07:54:42 -04:00
Moved size variable from Canvas.gd to Project.gd
This commit is contained in:
parent
4e111a7ac0
commit
f9bd590d20
16 changed files with 79 additions and 73 deletions
|
@ -38,12 +38,12 @@ func _on_ColorDefaults_pressed() -> void:
|
|||
|
||||
|
||||
func _on_FitToFrameButton_pressed() -> void:
|
||||
Global.camera.fit_to_frame(Global.canvas.size)
|
||||
Global.camera.fit_to_frame(Global.current_project.size)
|
||||
|
||||
|
||||
func _on_100ZoomButton_pressed() -> void:
|
||||
Global.camera.zoom = Vector2.ONE
|
||||
Global.camera.offset = Global.canvas.size / 2
|
||||
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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue