summaryrefslogtreecommitdiff
path: root/meta/3rd/Cocos4.0/cc.MotionStreak.lua
blob: 3fe5625453d956b3da49361d2625fb00b854e798 (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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123

---@class cc.MotionStreak :cc.Node@all parent class: Node,TextureProtocol
local MotionStreak={ }
cc.MotionStreak=MotionStreak




---*  Remove all living segments of the ribbon.
---@return self
function MotionStreak:reset () end
---* js NA<br>
---* lua NA
---@return cc.BlendFunc
function MotionStreak:getBlendFunc () end
---* js NA<br>
---* lua NA
---@param blendFunc cc.BlendFunc
---@return self
function MotionStreak:setBlendFunc (blendFunc) end
---*  Color used for the tint.<br>
---* param colors The color used for the tint.
---@param colors color3b_table
---@return self
function MotionStreak:tintWithColor (colors) end
---* 
---@return cc.Texture2D
function MotionStreak:getTexture () end
---*  Sets the starting position initialized or not.<br>
---* param bStartingPositionInitialized True if initialized the starting position.
---@param bStartingPositionInitialized boolean
---@return self
function MotionStreak:setStartingPositionInitialized (bStartingPositionInitialized) end
---* 
---@param texture cc.Texture2D
---@return self
function MotionStreak:setTexture (texture) end
---*  Is the starting position initialized or not.<br>
---* return True if the starting position is initialized.
---@return boolean
function MotionStreak:isStartingPositionInitialized () end
---*  When fast mode is enabled, new points are added faster but with lower precision. <br>
---* return True if fast mode is enabled.
---@return boolean
function MotionStreak:isFastMode () end
---*  Get stroke.<br>
---* return float stroke.
---@return float
function MotionStreak:getStroke () end
---@overload fun(float:float,float:float,float:float,color3b_table:color3b_table,string4:cc.Texture2D):self
---@overload fun(float:float,float:float,float:float,color3b_table:color3b_table,string:string):self
---@param fade float
---@param minSeg float
---@param stroke float
---@param color color3b_table
---@param path string
---@return boolean
function MotionStreak:initWithFade (fade,minSeg,stroke,color,path) end
---*  Sets fast mode or not.<br>
---* param bFastMode True if enabled fast mode.
---@param bFastMode boolean
---@return self
function MotionStreak:setFastMode (bFastMode) end
---*  Set stroke.<br>
---* param stroke The width of stroke.
---@param stroke float
---@return self
function MotionStreak:setStroke (stroke) end
---@overload fun(float:float,float:float,float:float,color3b_table:color3b_table,string4:cc.Texture2D):self
---@overload fun(float:float,float:float,float:float,color3b_table:color3b_table,string:string):self
---@param timeToFade float
---@param minSeg float
---@param strokeWidth float
---@param strokeColor color3b_table
---@param imagePath string
---@return self
function MotionStreak:create (timeToFade,minSeg,strokeWidth,strokeColor,imagePath) end
---* 
---@return boolean
function MotionStreak:isOpacityModifyRGB () end
---* 
---@param opacity unsigned_char
---@return self
function MotionStreak:setOpacity (opacity) end
---* 
---@param y float
---@return self
function MotionStreak:setPositionY (y) end
---* 
---@param x float
---@return self
function MotionStreak:setPositionX (x) end
---* 
---@return float
function MotionStreak:getPositionY () end
---* 
---@return float
function MotionStreak:getPositionX () end
---* 
---@return vec3_table
function MotionStreak:getPosition3D () end
---* 
---@param value boolean
---@return self
function MotionStreak:setOpacityModifyRGB (value) end
---* 
---@return unsigned_char
function MotionStreak:getOpacity () end
---@overload fun(float:float,float:float):self
---@overload fun(float0:vec2_table):self
---@param x float
---@param y float
---@return self
function MotionStreak:setPosition (x,y) end
---@overload fun(float:float,float:float):self
---@overload fun():self
---@param x float
---@param y float
---@return self
function MotionStreak:getPosition (x,y) end
---* 
---@return self
function MotionStreak:MotionStreak () end