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

@ -66,3 +66,5 @@ func _on_LockButton_pressed() -> void:
func _on_LinkButton_pressed() -> void:
Global.layers[i][4] = !Global.layers[i][4]
if !Global.layers[i][5]:
Global.layers[i][5].append(Global.current_frame)