2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @module MotionStreak
|
2014-03-26 14:03:04 +08:00
|
|
|
-- @extend Node,TextureProtocol
|
2014-06-25 17:36:50 +08:00
|
|
|
-- @parent_module cc
|
2014-03-18 15:55:30 +08:00
|
|
|
|
2014-03-10 14:04:58 +08:00
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
-- Remove all living segments of the ribbon
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#MotionStreak] reset
|
|
|
|
-- @param self
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return MotionStreak#MotionStreak self (return value: cc.MotionStreak)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
--
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#MotionStreak] setTexture
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #cc.Texture2D texture
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return MotionStreak#MotionStreak self (return value: cc.MotionStreak)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
--
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#MotionStreak] getTexture
|
|
|
|
-- @param self
|
|
|
|
-- @return Texture2D#Texture2D ret (return value: cc.Texture2D)
|
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
-- color used for the tint
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#MotionStreak] tintWithColor
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #color3b_table colors
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return MotionStreak#MotionStreak self (return value: cc.MotionStreak)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
2015-01-14 16:26:14 +08:00
|
|
|
--------------------------------
|
|
|
|
-- js NA<br>
|
|
|
|
-- lua NA
|
|
|
|
-- @function [parent=#MotionStreak] setBlendFunc
|
|
|
|
-- @param self
|
|
|
|
-- @param #cc.BlendFunc blendFunc
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return MotionStreak#MotionStreak self (return value: cc.MotionStreak)
|
2015-01-14 16:26:14 +08:00
|
|
|
|
2014-03-10 14:04:58 +08:00
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
--
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#MotionStreak] setStartingPositionInitialized
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #bool bStartingPositionInitialized
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return MotionStreak#MotionStreak self (return value: cc.MotionStreak)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
2015-01-14 16:26:14 +08:00
|
|
|
--------------------------------
|
|
|
|
-- js NA<br>
|
|
|
|
-- lua NA
|
|
|
|
-- @function [parent=#MotionStreak] getBlendFunc
|
|
|
|
-- @param self
|
|
|
|
-- @return BlendFunc#BlendFunc ret (return value: cc.BlendFunc)
|
|
|
|
|
2014-03-10 14:04:58 +08:00
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
--
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#MotionStreak] isStartingPositionInitialized
|
|
|
|
-- @param self
|
|
|
|
-- @return bool#bool ret (return value: bool)
|
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
-- When fast mode is enabled, new points are added faster but with lower precision
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#MotionStreak] isFastMode
|
|
|
|
-- @param self
|
|
|
|
-- @return bool#bool ret (return value: bool)
|
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
--
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#MotionStreak] setFastMode
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #bool bFastMode
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return MotionStreak#MotionStreak self (return value: cc.MotionStreak)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2014-07-17 10:28:34 +08:00
|
|
|
-- @overload self, float, float, float, color3b_table, cc.Texture2D
|
|
|
|
-- @overload self, float, float, float, color3b_table, string
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#MotionStreak] create
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #float fade
|
|
|
|
-- @param #float minSeg
|
|
|
|
-- @param #float stroke
|
|
|
|
-- @param #color3b_table color
|
|
|
|
-- @param #string path
|
2014-10-17 22:56:22 +08:00
|
|
|
-- @return MotionStreak#MotionStreak ret (return value: cc.MotionStreak)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
2014-03-18 15:55:30 +08:00
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
--
|
2014-03-18 15:55:30 +08:00
|
|
|
-- @function [parent=#MotionStreak] isOpacityModifyRGB
|
|
|
|
-- @param self
|
|
|
|
-- @return bool#bool ret (return value: bool)
|
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
--
|
2014-03-18 15:55:30 +08:00
|
|
|
-- @function [parent=#MotionStreak] setPositionY
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #float y
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return MotionStreak#MotionStreak self (return value: cc.MotionStreak)
|
2014-03-18 15:55:30 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
--
|
2014-03-18 15:55:30 +08:00
|
|
|
-- @function [parent=#MotionStreak] setPositionX
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #float x
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return MotionStreak#MotionStreak self (return value: cc.MotionStreak)
|
2014-03-18 15:55:30 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
--
|
2014-03-18 15:55:30 +08:00
|
|
|
-- @function [parent=#MotionStreak] getPositionY
|
|
|
|
-- @param self
|
|
|
|
-- @return float#float ret (return value: float)
|
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
--
|
2014-03-18 15:55:30 +08:00
|
|
|
-- @function [parent=#MotionStreak] getPositionX
|
|
|
|
-- @param self
|
|
|
|
-- @return float#float ret (return value: float)
|
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
--
|
2014-03-18 15:55:30 +08:00
|
|
|
-- @function [parent=#MotionStreak] setOpacity
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #unsigned char opacity
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return MotionStreak#MotionStreak self (return value: cc.MotionStreak)
|
2014-03-18 15:55:30 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
--
|
2014-03-18 15:55:30 +08:00
|
|
|
-- @function [parent=#MotionStreak] setOpacityModifyRGB
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #bool value
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return MotionStreak#MotionStreak self (return value: cc.MotionStreak)
|
2014-03-18 15:55:30 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
--
|
2014-03-18 15:55:30 +08:00
|
|
|
-- @function [parent=#MotionStreak] getOpacity
|
|
|
|
-- @param self
|
|
|
|
-- @return unsigned char#unsigned char ret (return value: unsigned char)
|
|
|
|
|
|
|
|
--------------------------------
|
2014-07-17 10:28:34 +08:00
|
|
|
-- @overload self, float, float
|
|
|
|
-- @overload self, vec2_table
|
2014-03-18 15:55:30 +08:00
|
|
|
-- @function [parent=#MotionStreak] setPosition
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #float x
|
|
|
|
-- @param #float y
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return MotionStreak#MotionStreak self (return value: cc.MotionStreak)
|
2014-03-18 15:55:30 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2014-07-17 10:28:34 +08:00
|
|
|
-- @overload self, float, float
|
|
|
|
-- @overload self
|
2014-03-18 15:55:30 +08:00
|
|
|
-- @function [parent=#MotionStreak] getPosition
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #float x
|
|
|
|
-- @param #float y
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return MotionStreak#MotionStreak self (return value: cc.MotionStreak)
|
2014-03-18 15:55:30 +08:00
|
|
|
|
2014-03-10 14:04:58 +08:00
|
|
|
return nil
|