mirror of
https://github.com/tonytins/CozyPixelStudio.git
synced 2025-12-15 12:54:43 -05:00
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.
15 lines
246 B
GDScript
15 lines
246 B
GDScript
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
|