mirror of
https://github.com/tonytins/CozyPixelStudio.git
synced 2025-06-25 16:04:43 -04:00
Merging layer & saving sprite now uses custom blend_rect method
Also added CameraMovement.gd to the preview window camera and fixed a cursor problem where it always remained as the default arrow cursor outside the canvas
This commit is contained in:
parent
5613c3d7ef
commit
2369243cfc
6 changed files with 25 additions and 16 deletions
|
@ -16,7 +16,7 @@ func _input(event : InputEvent) -> void:
|
|||
elif event.is_action_released("camera_drag"):
|
||||
drag = false
|
||||
|
||||
if Global.can_draw && Global.has_focus && Rect2(Vector2.ZERO, viewport_size).has_point(mouse_pos):
|
||||
if Global.can_draw && Rect2(Vector2.ZERO, viewport_size).has_point(mouse_pos):
|
||||
if event.is_action_pressed("zoom_in"): # Wheel Up Event
|
||||
zoom_camera(-1)
|
||||
elif event.is_action_pressed("zoom_out"): # Wheel Down Event
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue