blob: c2a5e8094bff20c90630cb52ce43e1d12c3c2565 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
|
---@class ccs.ArmatureAnimation
local ArmatureAnimation={ }
ccs.ArmatureAnimation=ArmatureAnimation
---*
---@return float
function ArmatureAnimation:getSpeedScale () end
---* Play animation by animation name.<br>
---* param animationName The animation name you want to play<br>
---* param durationTo The frames between two animation changing-over.<br>
---* It's meaning is changing to this animation need how many frames<br>
---* -1 : use the value from MovementData get from flash design panel<br>
---* param loop Whether the animation is loop<br>
---* loop < 0 : use the value from MovementData get from flash design panel<br>
---* loop = 0 : this animation is not loop<br>
---* loop > 0 : this animation is loop
---@param animationName string
---@param durationTo int
---@param loop int
---@return self
function ArmatureAnimation:play (animationName,durationTo,loop) end
---* Go to specified frame and pause current movement.
---@param frameIndex int
---@return self
function ArmatureAnimation:gotoAndPause (frameIndex) end
---*
---@param movementIndexes array_table
---@param durationTo int
---@param loop boolean
---@return self
function ArmatureAnimation:playWithIndexes (movementIndexes,durationTo,loop) end
---*
---@param data ccs.AnimationData
---@return self
function ArmatureAnimation:setAnimationData (data) end
---* Scale animation play speed.<br>
---* param animationScale Scale value
---@param speedScale float
---@return self
function ArmatureAnimation:setSpeedScale (speedScale) end
---*
---@return ccs.AnimationData
function ArmatureAnimation:getAnimationData () end
---* Go to specified frame and play current movement.<br>
---* You need first switch to the movement you want to play, then call this function.<br>
---* example : playByIndex(0);<br>
---* gotoAndPlay(0);<br>
---* playByIndex(1);<br>
---* gotoAndPlay(0);<br>
---* gotoAndPlay(15);
---@param frameIndex int
---@return self
function ArmatureAnimation:gotoAndPlay (frameIndex) end
---* Init with a Armature<br>
---* param armature The Armature ArmatureAnimation will bind to
---@param armature ccs.Armature
---@return boolean
function ArmatureAnimation:init (armature) end
---*
---@param movementNames array_table
---@param durationTo int
---@param loop boolean
---@return self
function ArmatureAnimation:playWithNames (movementNames,durationTo,loop) end
---* Get movement count
---@return int
function ArmatureAnimation:getMovementCount () end
---*
---@param animationIndex int
---@param durationTo int
---@param loop int
---@return self
function ArmatureAnimation:playWithIndex (animationIndex,durationTo,loop) end
---* Get current movementID<br>
---* return The name of current movement
---@return string
function ArmatureAnimation:getCurrentMovementID () end
---* Create with a Armature<br>
---* param armature The Armature ArmatureAnimation will bind to
---@param armature ccs.Armature
---@return self
function ArmatureAnimation:create (armature) end
---* Pause the Process
---@return self
function ArmatureAnimation:pause () end
---* Stop the Process
---@return self
function ArmatureAnimation:stop () end
---*
---@param dt float
---@return self
function ArmatureAnimation:update (dt) end
---* Resume the Process
---@return self
function ArmatureAnimation:resume () end
---* js ctor
---@return self
function ArmatureAnimation:ArmatureAnimation () end
|