2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @module AnimationFrame
|
2014-03-20 10:21:28 +08:00
|
|
|
-- @extend Ref
|
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
|
|
|
--------------------------------
|
2015-03-19 11:55:42 +08:00
|
|
|
-- Set the SpriteFrame.<br>
|
|
|
|
-- param frame A SpriteFrame will be used.
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#AnimationFrame] setSpriteFrame
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #cc.SpriteFrame frame
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return AnimationFrame#AnimationFrame self (return value: cc.AnimationFrame)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2014-07-17 10:28:34 +08:00
|
|
|
-- @overload self
|
|
|
|
-- @overload self
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#AnimationFrame] getUserInfo
|
|
|
|
-- @param self
|
2014-10-17 22:56:22 +08:00
|
|
|
-- @return map_table#map_table ret (return value: map_table)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2015-03-19 11:55:42 +08:00
|
|
|
-- Sets the units of time the frame takes.<br>
|
|
|
|
-- param delayUnits The units of time the frame takes.
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#AnimationFrame] setDelayUnits
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #float delayUnits
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return AnimationFrame#AnimationFrame self (return value: cc.AnimationFrame)
|
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=#AnimationFrame] clone
|
|
|
|
-- @param self
|
|
|
|
-- @return AnimationFrame#AnimationFrame ret (return value: cc.AnimationFrame)
|
|
|
|
|
|
|
|
--------------------------------
|
2015-03-19 11:55:42 +08:00
|
|
|
-- Return a SpriteFrameName to be used.<br>
|
|
|
|
-- return a SpriteFrameName to be used.
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#AnimationFrame] getSpriteFrame
|
|
|
|
-- @param self
|
|
|
|
-- @return SpriteFrame#SpriteFrame ret (return value: cc.SpriteFrame)
|
|
|
|
|
|
|
|
--------------------------------
|
2015-03-19 11:55:42 +08:00
|
|
|
-- Gets the units of time the frame takes.<br>
|
|
|
|
-- return The units of time the frame takes.
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#AnimationFrame] getDelayUnits
|
|
|
|
-- @param self
|
|
|
|
-- @return float#float ret (return value: float)
|
|
|
|
|
|
|
|
--------------------------------
|
2015-03-19 11:55:42 +08:00
|
|
|
-- Sets user infomation.<br>
|
|
|
|
-- param userInfo A dictionary as UserInfo.
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#AnimationFrame] setUserInfo
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #map_table userInfo
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return AnimationFrame#AnimationFrame self (return value: cc.AnimationFrame)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
2015-05-05 11:31:53 +08:00
|
|
|
--------------------------------
|
|
|
|
-- initializes the animation frame with a spriteframe, number of delay units and a notification user info
|
|
|
|
-- @function [parent=#AnimationFrame] initWithSpriteFrame
|
|
|
|
-- @param self
|
|
|
|
-- @param #cc.SpriteFrame spriteFrame
|
|
|
|
-- @param #float delayUnits
|
|
|
|
-- @param #map_table userInfo
|
|
|
|
-- @return bool#bool ret (return value: bool)
|
|
|
|
|
2014-03-10 14:04:58 +08:00
|
|
|
--------------------------------
|
2015-03-19 11:55:42 +08:00
|
|
|
-- Creates the animation frame with a spriteframe, number of delay units and a notification user info.<br>
|
|
|
|
-- param spriteFrame The animation frame with a spriteframe.<br>
|
|
|
|
-- param delayUnits Number of delay units.<br>
|
|
|
|
-- param userInfo A notification user info.<br>
|
2014-09-02 13:45:07 +08:00
|
|
|
-- since 3.0
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#AnimationFrame] create
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #cc.SpriteFrame spriteFrame
|
|
|
|
-- @param #float delayUnits
|
|
|
|
-- @param #map_table userInfo
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @return AnimationFrame#AnimationFrame ret (return value: cc.AnimationFrame)
|
|
|
|
|
2015-05-05 11:31:53 +08:00
|
|
|
--------------------------------
|
|
|
|
-- js ctor
|
|
|
|
-- @function [parent=#AnimationFrame] AnimationFrame
|
|
|
|
-- @param self
|
|
|
|
-- @return AnimationFrame#AnimationFrame self (return value: cc.AnimationFrame)
|
|
|
|
|
2014-03-10 14:04:58 +08:00
|
|
|
return nil
|