mirror of
https://github.com/tonytins/CozyPixelStudio.git
synced 2025-06-25 17:14:42 -04:00
The selected cel (?) is now pressed, based on current layer and frame
All the other buttons are pressed = false. Also removed some legacy code.
This commit is contained in:
parent
87629fdf2f
commit
2a5dfa7ea2
4 changed files with 25 additions and 57 deletions
|
@ -12,8 +12,6 @@ func _on_FrameButton_pressed() -> void:
|
|||
if Input.is_action_just_released("left_mouse"):
|
||||
Global.current_frame = frame
|
||||
Global.current_layer = layer
|
||||
print(str(frame), str(layer))
|
||||
print("Current layer: %s" % Global.current_layer)
|
||||
elif Input.is_action_just_released("right_mouse"):
|
||||
if Global.canvases.size() == 1:
|
||||
popup_menu.set_item_disabled(0, true)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue