Cel buttons have a green outline to indicate that they're linked

The first time the link button get pressed, the currently selected cel is being linked. In futue commits, new frames will be linked on layers where the link button is pressed.
This commit is contained in:
OverloadedOrama 2020-03-18 02:02:41 +02:00
parent a60efccbfd
commit 778c86183f
3 changed files with 11 additions and 0 deletions

View file

@ -7,6 +7,8 @@ onready var popup_menu := $PopupMenu
func _ready() -> void:
hint_tooltip = "Frame: %s, Layer: %s" % [frame, layer]
if frame in Global.layers[layer][5]:
get_node("LinkedIndicator").visible = true
func _on_FrameButton_pressed() -> void:
if Input.is_action_just_released("left_mouse"):