summaryrefslogtreecommitdiff
path: root/meta/3rd/Cocos4.0/library/cc/ActionTween.lua
blob: 8ee28f6ee00bb48481ae58b8a92b25a35183c9e0 (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
---@meta

---@class cc.ActionTween :cc.ActionInterval
local ActionTween={ }
cc.ActionTween=ActionTween




---* brief Initializes the action with the property name (key), and the from and to parameters.<br>
---* param duration The duration of the ActionTween. It's a value in seconds.<br>
---* param key The key of property which should be updated.<br>
---* param from The value of the specified property when the action begin.<br>
---* param to The value of the specified property when the action end.<br>
---* return If the initialization success, return true; otherwise, return false.
---@param duration float
---@param key string
---@param from float
---@param to float
---@return boolean
function ActionTween:initWithDuration (duration,key,from,to) end
---* brief Create and initializes the action with the property name (key), and the from and to parameters.<br>
---* param duration The duration of the ActionTween. It's a value in seconds.<br>
---* param key The key of property which should be updated.<br>
---* param from The value of the specified property when the action begin.<br>
---* param to The value of the specified property when the action end.<br>
---* return If the creation success, return a pointer of ActionTween; otherwise, return nil.
---@param duration float
---@param key string
---@param from float
---@param to float
---@return self
function ActionTween:create (duration,key,from,to) end
---* 
---@param target cc.Node
---@return self
function ActionTween:startWithTarget (target) end
---* 
---@return self
function ActionTween:clone () end
---* 
---@param dt float
---@return self
function ActionTween:update (dt) end
---* 
---@return self
function ActionTween:reverse () end