mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-21 01:36:02 +08:00
Added fields to timeline classes, issue #8.
This commit is contained in:
parent
a1ad55f8a1
commit
5fdcfaca2e
@ -138,6 +138,7 @@ function Animation.RotateTimeline.new ()
|
||||
|
||||
local self = Animation.CurveTimeline.new()
|
||||
self.frames = {}
|
||||
self.boneIndex = -1
|
||||
|
||||
function self:getDuration ()
|
||||
return self.frames[#self.frames - 1]
|
||||
@ -207,6 +208,7 @@ function Animation.TranslateTimeline.new ()
|
||||
|
||||
local self = Animation.CurveTimeline.new()
|
||||
self.frames = {}
|
||||
self.boneIndex = -1
|
||||
|
||||
function self:getDuration ()
|
||||
return self.frames[#self.frames - 2]
|
||||
@ -297,6 +299,7 @@ function Animation.ColorTimeline.new ()
|
||||
|
||||
local self = Animation.CurveTimeline.new()
|
||||
self.frames = {}
|
||||
self.slotIndex = -1
|
||||
|
||||
function self:getDuration ()
|
||||
return self.frames[#self.frames - 4]
|
||||
@ -360,6 +363,7 @@ function Animation.AttachmentTimeline.new ()
|
||||
local self = Animation.CurveTimeline.new()
|
||||
self.frames = {}
|
||||
self.attachmentNames = {}
|
||||
self.slotName = nil
|
||||
|
||||
function self:getDuration ()
|
||||
return self.frames[#self.frames]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user