From 52097b6ee7cc8f5a770eb851902560b5b8592218 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Mon, 22 Feb 2021 21:05:36 +0800 Subject: add meta/3rd with acknowledgement --- meta/3rd/Cocos4.0/cc.MotionStreak.lua | 123 ++++++++++++++++++++++++++++++++++ 1 file changed, 123 insertions(+) create mode 100644 meta/3rd/Cocos4.0/cc.MotionStreak.lua (limited to 'meta/3rd/Cocos4.0/cc.MotionStreak.lua') diff --git a/meta/3rd/Cocos4.0/cc.MotionStreak.lua b/meta/3rd/Cocos4.0/cc.MotionStreak.lua new file mode 100644 index 00000000..3fe56254 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.MotionStreak.lua @@ -0,0 +1,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
+---* lua NA +---@return cc.BlendFunc +function MotionStreak:getBlendFunc () end +---* js NA
+---* lua NA +---@param blendFunc cc.BlendFunc +---@return self +function MotionStreak:setBlendFunc (blendFunc) end +---* Color used for the tint.
+---* 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.
+---* 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.
+---* 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.
+---* return True if fast mode is enabled. +---@return boolean +function MotionStreak:isFastMode () end +---* Get stroke.
+---* 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.
+---* param bFastMode True if enabled fast mode. +---@param bFastMode boolean +---@return self +function MotionStreak:setFastMode (bFastMode) end +---* Set stroke.
+---* 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 \ No newline at end of file -- cgit v1.2.3