mirror of https://github.com/axmolengine/axmol.git
66 lines
2.4 KiB
Lua
66 lines
2.4 KiB
Lua
|
|
--------------------------------
|
|
-- @module ProgressFromTo
|
|
-- @extend ActionInterval
|
|
-- @parent_module cc
|
|
|
|
--------------------------------
|
|
-- brief Initializes the action with a duration, a "from" percentage and a "to" percentage.<br>
|
|
-- param duration Specify the duration of the ProgressFromTo action. It's a value in seconds.<br>
|
|
-- param fromPercentage Specify the source percentage.<br>
|
|
-- param toPercentage Specify the destination percentage.<br>
|
|
-- return If the creation sucess, return true; otherwise, return false.
|
|
-- @function [parent=#ProgressFromTo] initWithDuration
|
|
-- @param self
|
|
-- @param #float duration
|
|
-- @param #float fromPercentage
|
|
-- @param #float toPercentage
|
|
-- @return bool#bool ret (return value: bool)
|
|
|
|
--------------------------------
|
|
-- brief Create and initializes the action with a duration, a "from" percentage and a "to" percentage.<br>
|
|
-- param duration Specify the duration of the ProgressFromTo action. It's a value in seconds.<br>
|
|
-- param fromPercentage Specify the source percentage.<br>
|
|
-- param toPercentage Specify the destination percentage.<br>
|
|
-- return If the creation sucess, return a pointer of ProgressFromTo action; otherwise, return nil.
|
|
-- @function [parent=#ProgressFromTo] create
|
|
-- @param self
|
|
-- @param #float duration
|
|
-- @param #float fromPercentage
|
|
-- @param #float toPercentage
|
|
-- @return ProgressFromTo#ProgressFromTo ret (return value: cc.ProgressFromTo)
|
|
|
|
--------------------------------
|
|
--
|
|
-- @function [parent=#ProgressFromTo] startWithTarget
|
|
-- @param self
|
|
-- @param #cc.Node target
|
|
-- @return ProgressFromTo#ProgressFromTo self (return value: cc.ProgressFromTo)
|
|
|
|
--------------------------------
|
|
--
|
|
-- @function [parent=#ProgressFromTo] clone
|
|
-- @param self
|
|
-- @return ProgressFromTo#ProgressFromTo ret (return value: cc.ProgressFromTo)
|
|
|
|
--------------------------------
|
|
--
|
|
-- @function [parent=#ProgressFromTo] reverse
|
|
-- @param self
|
|
-- @return ProgressFromTo#ProgressFromTo ret (return value: cc.ProgressFromTo)
|
|
|
|
--------------------------------
|
|
--
|
|
-- @function [parent=#ProgressFromTo] update
|
|
-- @param self
|
|
-- @param #float time
|
|
-- @return ProgressFromTo#ProgressFromTo self (return value: cc.ProgressFromTo)
|
|
|
|
--------------------------------
|
|
--
|
|
-- @function [parent=#ProgressFromTo] ProgressFromTo
|
|
-- @param self
|
|
-- @return ProgressFromTo#ProgressFromTo self (return value: cc.ProgressFromTo)
|
|
|
|
return nil
|