mirror of
https://github.com/tonytins/CozyPixelStudio.git
synced 2025-12-16 01:14:42 -05:00
Added AnimationTag class
Replaces nested Global.animation_tags arrays. Also replaced array.duplicate(true) with looping through the array and creating a new class for each array element, because duplicate(true) does not create new classes, unfortunately, which was causing issues with undo/redo.
This commit is contained in:
parent
e229ad1519
commit
34bc528e97
14 changed files with 134 additions and 83 deletions
15
src/Classes/AnimationTag.gd
Normal file
15
src/Classes/AnimationTag.gd
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
class_name AnimationTag extends Reference
|
||||
# A class for frame tag properties
|
||||
|
||||
|
||||
var name : String
|
||||
var color : Color
|
||||
var from : int
|
||||
var to : int
|
||||
|
||||
|
||||
func _init(_name, _color, _from, _to) -> void:
|
||||
name = _name
|
||||
color = _color
|
||||
from = _from
|
||||
to = _to
|
||||
Loading…
Add table
Add a link
Reference in a new issue