1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-01-31 07:29:49 +00:00

Update size label when changing project or scaling

This commit is contained in:
OverloadedOrama 2020-09-14 17:51:35 +03:00
parent cf2f477ff9
commit edf7e43bb8
2 changed files with 3 additions and 0 deletions

View file

@ -312,6 +312,7 @@ func undo(_frame_index := -1, _layer_index := -1, project : Project = current_pr
canvas.camera_zoom()
Global.canvas.grid.isometric_polylines.clear()
Global.canvas.grid.update()
Global.cursor_position_label.text = "[%s×%s]" % [project.size.x, project.size.y]
elif "Frame" in action_name:
# This actually means that frames.size is one, but it hasn't been updated yet
@ -342,6 +343,7 @@ func redo(_frame_index := -1, _layer_index := -1, project : Project = current_pr
canvas.camera_zoom()
Global.canvas.grid.isometric_polylines.clear()
Global.canvas.grid.update()
Global.cursor_position_label.text = "[%s×%s]" % [project.size.x, project.size.y]
elif "Frame" in action_name:
if project.frames.size() == 1: # Stop animating

View file

@ -176,6 +176,7 @@ func change_project() -> void:
Global.horizontal_ruler.update()
Global.vertical_ruler.update()
Global.preview_zoom_slider.value = -Global.camera_preview.zoom.x
Global.cursor_position_label.text = "[%s×%s]" % [size.x, size.y]
Global.window_title = "%s - Pixelorama %s" % [name, Global.current_version]
if has_changed: