Merge pull request #10964 from CocosRobot/update_lua_bindings_1426687157

[AUTO]: updating luabinding automatically
This commit is contained in:
minggo 2015-03-19 11:49:54 +08:00
commit 74de66a286
35 changed files with 220 additions and 113 deletions

View File

@ -5,7 +5,7 @@
-- @parent_module cc
--------------------------------
-- param dt in seconds
-- param dt In seconds.
-- @function [parent=#ActionInstant] step
-- @param self
-- @param #float dt
@ -30,7 +30,7 @@
-- @return bool#bool ret (return value: bool)
--------------------------------
-- param time in seconds
-- param time In seconds.
-- @function [parent=#ActionInstant] update
-- @param self
-- @param #float time

View File

@ -5,20 +5,23 @@
-- @parent_module cc
--------------------------------
--
-- Gets the ampliture rate, extension in GridAction<br>
-- return The ampliture rate.
-- @function [parent=#ActionInterval] getAmplitudeRate
-- @param self
-- @return float#float ret (return value: float)
--------------------------------
--
-- Sets the ampliture rate, extension in GridAction<br>
-- param amp The ampliture rate.
-- @function [parent=#ActionInterval] setAmplitudeRate
-- @param self
-- @param #float amp
-- @return ActionInterval#ActionInterval self (return value: cc.ActionInterval)
--------------------------------
-- how many seconds had elapsed since the actions started to run.
-- How many seconds had elapsed since the actions started to run.<br>
-- return The seconds had elapsed since the ations started to run.
-- @function [parent=#ActionInterval] getElapsed
-- @param self
-- @return float#float ret (return value: float)

View File

@ -5,8 +5,10 @@
-- @parent_module cc
--------------------------------
-- Gets an action given its tag an a target<br>
-- return the Action the with the given tag
-- Gets an action given its tag an a target.<br>
-- param tag The action's tag.<br>
-- param target A certain target.<br>
-- return The Action the with the given tag.
-- @function [parent=#ActionManager] getActionByTag
-- @param self
-- @param #int tag
@ -14,7 +16,9 @@
-- @return Action#Action ret (return value: cc.Action)
--------------------------------
-- Removes an action given its tag and the target
-- Removes an action given its tag and the target.<br>
-- param tag The action's tag.<br>
-- param target A certain target.
-- @function [parent=#ActionManager] removeActionByTag
-- @param self
-- @param #int tag
@ -31,7 +35,10 @@
-- Adds an action with a target. <br>
-- If the target is already present, then the action will be added to the existing target.<br>
-- If the target is not present, a new instance of this target will be created either paused or not, and the action will be added to the newly created target.<br>
-- When the target is paused, the queued actions won't be 'ticked'.
-- When the target is paused, the queued actions won't be 'ticked'.<br>
-- param action A certain action.<br>
-- param target The target which need to be added an action.<br>
-- param paused Is the target paused or not.
-- @function [parent=#ActionManager] addAction
-- @param self
-- @param #cc.Action action
@ -40,21 +47,24 @@
-- @return ActionManager#ActionManager self (return value: cc.ActionManager)
--------------------------------
-- Resumes the target. All queued actions will be resumed.
-- Resumes the target. All queued actions will be resumed.<br>
-- param target A certain target.
-- @function [parent=#ActionManager] resumeTarget
-- @param self
-- @param #cc.Node target
-- @return ActionManager#ActionManager self (return value: cc.ActionManager)
--------------------------------
-- param dt in seconds
-- Main loop of ActionManager.<br>
-- param dt In seconds.
-- @function [parent=#ActionManager] update
-- @param self
-- @param #float dt
-- @return ActionManager#ActionManager self (return value: cc.ActionManager)
--------------------------------
-- Pauses the target: all running actions and newly added actions will be paused.
-- Pauses the target: all running actions and newly added actions will be paused.<br>
-- param target A certain target.
-- @function [parent=#ActionManager] pauseTarget
-- @param self
-- @param #cc.Node target
@ -64,7 +74,9 @@
-- Returns the numbers of actions that are running in a certain target. <br>
-- Composable actions are counted as 1 action. Example:<br>
-- - If you are running 1 Sequence of 7 actions, it will return 1.<br>
-- - If you are running 7 Sequences of 2 actions, it will return 7.
-- - If you are running 7 Sequences of 2 actions, it will return 7.<br>
-- param target A certain target.<br>
-- return The numbers of actions that are running in a certain target.
-- @function [parent=#ActionManager] getNumberOfRunningActionsInTarget
-- @param self
-- @param #cc.Node target
@ -72,28 +84,33 @@
--------------------------------
-- Removes all actions from a certain target.<br>
-- All the actions that belongs to the target will be removed.
-- All the actions that belongs to the target will be removed.<br>
-- param target A certain target.
-- @function [parent=#ActionManager] removeAllActionsFromTarget
-- @param self
-- @param #cc.Node target
-- @return ActionManager#ActionManager self (return value: cc.ActionManager)
--------------------------------
-- Resume a set of targets (convenience function to reverse a pauseAllRunningActions call)
-- Resume a set of targets (convenience function to reverse a pauseAllRunningActions call).<br>
-- param targetsToResume A set of targets need to be resumed.
-- @function [parent=#ActionManager] resumeTargets
-- @param self
-- @param #array_table targetsToResume
-- @return ActionManager#ActionManager self (return value: cc.ActionManager)
--------------------------------
-- Removes an action given an action reference.
-- Removes an action given an action reference.<br>
-- param action A certain target.
-- @function [parent=#ActionManager] removeAction
-- @param self
-- @param #cc.Action action
-- @return ActionManager#ActionManager self (return value: cc.ActionManager)
--------------------------------
-- Removes all actions given its tag and the target
-- Removes all actions given its tag and the target.<br>
-- param tag The actions' tag.<br>
-- param target A certain target.
-- @function [parent=#ActionManager] removeAllActionsByTag
-- @param self
-- @param #int tag
@ -101,7 +118,8 @@
-- @return ActionManager#ActionManager self (return value: cc.ActionManager)
--------------------------------
-- Pauses all running actions, returning a list of targets whose actions were paused.
-- Pauses all running actions, returning a list of targets whose actions were paused.<br>
-- return A list of targets whose actions were paused.
-- @function [parent=#ActionManager] pauseAllRunningActions
-- @param self
-- @return array_table#array_table ret (return value: array_table)

View File

@ -12,14 +12,17 @@
-- @return Animation#Animation ret (return value: cc.Animation)
--------------------------------
-- sets the Animation object to be animated
-- Sets the Animation object to be animated <br>
-- param A certain animation.
-- @function [parent=#Animate] setAnimation
-- @param self
-- @param #cc.Animation animation
-- @return Animate#Animate self (return value: cc.Animate)
--------------------------------
-- creates the action with an Animation and will restore the original frame when the animation is over
-- Creates the action with an Animation and will restore the original frame when the animation is over.<br>
-- param animation A certain animation.<br>
-- return An autoreleased Animate object.
-- @function [parent=#Animate] create
-- @param self
-- @param #cc.Animation animation
@ -51,7 +54,7 @@
-- @return Animate#Animate ret (return value: cc.Animate)
--------------------------------
-- param t in seconds
-- param t In seconds.
-- @function [parent=#Animate] update
-- @param self
-- @param #float t

View File

@ -24,7 +24,7 @@
-- @return BezierBy#BezierBy ret (return value: cc.BezierBy)
--------------------------------
-- param time in seconds
-- param time In seconds.
-- @function [parent=#BezierBy] update
-- @param self
-- @param #float time

View File

@ -5,8 +5,10 @@
-- @parent_module cc
--------------------------------
-- creates the action <br>
-- param duration in seconds
-- Creates the action.<br>
-- param duration Duration time, in seconds.<br>
-- param blinks Blink times.<br>
-- return An autoreleased Blink object.
-- @function [parent=#Blink] create
-- @param self
-- @param #float duration
@ -39,7 +41,7 @@
-- @return Blink#Blink ret (return value: cc.Blink)
--------------------------------
-- param time in seconds
-- param time In seconds.
-- @function [parent=#Blink] update
-- @param self
-- @param #float time

View File

@ -5,19 +5,21 @@
-- @parent_module cc
--------------------------------
-- executes the callback
-- Executes the callback.
-- @function [parent=#CallFunc] execute
-- @param self
-- @return CallFunc#CallFunc self (return value: cc.CallFunc)
--------------------------------
--
-- Get the selector target.<br>
-- return The selector target.
-- @function [parent=#CallFunc] getTargetCallback
-- @param self
-- @return Ref#Ref ret (return value: cc.Ref)
--------------------------------
--
-- Set the selector target.<br>
-- param The selector target.
-- @function [parent=#CallFunc] setTargetCallback
-- @param self
-- @param #cc.Ref sel
@ -30,7 +32,7 @@
-- @return CallFunc#CallFunc ret (return value: cc.CallFunc)
--------------------------------
-- param time in seconds
-- param time In seconds.
-- @function [parent=#CallFunc] update
-- @param self
-- @param #float time

View File

@ -5,8 +5,9 @@
-- @parent_module cc
--------------------------------
-- creates the action <br>
-- param d in seconds
-- Creates the action.<br>
-- param d Duration time, in seconds.<br>
-- return An autoreleased DelayTime object.
-- @function [parent=#DelayTime] create
-- @param self
-- @param #float d
@ -19,7 +20,7 @@
-- @return DelayTime#DelayTime ret (return value: cc.DelayTime)
--------------------------------
-- param time in seconds
-- param time In seconds.
-- @function [parent=#DelayTime] update
-- @param self
-- @param #float time

View File

@ -12,8 +12,9 @@
-- @return FadeIn#FadeIn self (return value: cc.FadeIn)
--------------------------------
-- creates the action<br>
-- param d in seconds
-- Creates the action.<br>
-- param d Duration time, in seconds.<br>
-- return An autoreleased FadeIn object.
-- @function [parent=#FadeIn] create
-- @param self
-- @param #float d

View File

@ -12,8 +12,8 @@
-- @return FadeOut#FadeOut self (return value: cc.FadeOut)
--------------------------------
-- creates the action <br>
-- param d in seconds
-- Creates the action.<br>
-- param d Duration time, in seconds.
-- @function [parent=#FadeOut] create
-- @param self
-- @param #float d

View File

@ -5,8 +5,10 @@
-- @parent_module cc
--------------------------------
-- creates an action with duration and opacity <br>
-- param duration in seconds
-- Creates an action with duration and opacity.<br>
-- param duration Duration time, in seconds.<br>
-- param opacity A certain opacity, the range is from 0 to 255.<br>
-- return An autoreleased FadeTo object.
-- @function [parent=#FadeTo] create
-- @param self
-- @param #float duration
@ -33,7 +35,7 @@
-- @return FadeTo#FadeTo ret (return value: cc.FadeTo)
--------------------------------
-- param time in seconds
-- param time In seconds.
-- @function [parent=#FadeTo] update
-- @param self
-- @param #float time

View File

@ -5,7 +5,9 @@
-- @parent_module cc
--------------------------------
-- create the action
-- Create the action.<br>
-- param x Flips the sprite horizontally if true.<br>
-- return An autoreleased FlipX object.
-- @function [parent=#FlipX] create
-- @param self
-- @param #bool x
@ -18,7 +20,7 @@
-- @return FlipX#FlipX ret (return value: cc.FlipX)
--------------------------------
-- param time in seconds
-- param time In seconds.
-- @function [parent=#FlipX] update
-- @param self
-- @param #float time

View File

@ -5,7 +5,9 @@
-- @parent_module cc
--------------------------------
-- create the action
-- Create the action.<br>
-- param y Flips the sprite vertically if true.<br>
-- return An autoreleased FlipY object.
-- @function [parent=#FlipY] create
-- @param self
-- @param #bool y
@ -18,7 +20,7 @@
-- @return FlipY#FlipY ret (return value: cc.FlipY)
--------------------------------
-- param time in seconds
-- param time In seconds.
-- @function [parent=#FlipY] update
-- @param self
-- @param #float time

View File

@ -5,7 +5,8 @@
-- @parent_module cc
--------------------------------
-- Allocates and initializes the action
-- Allocates and initializes the action.<br>
-- return An autoreleased Hide object.
-- @function [parent=#Hide] create
-- @param self
-- @return Hide#Hide ret (return value: cc.Hide)
@ -17,7 +18,7 @@
-- @return Hide#Hide ret (return value: cc.Hide)
--------------------------------
-- param time in seconds
-- param time In seconds.
-- @function [parent=#Hide] update
-- @param self
-- @param #float time

View File

@ -5,8 +5,12 @@
-- @parent_module cc
--------------------------------
-- creates the action<br>
-- param duration in seconds
-- Creates the action.<br>
-- param duration Duration time, in seconds.<br>
-- param position The jumping distance.<br>
-- param height The jumping height.<br>
-- param jumps The jumping times.<br>
-- return An autoreleased JumpBy object.
-- @function [parent=#JumpBy] create
-- @param self
-- @param #float duration
@ -35,7 +39,7 @@
-- @return JumpBy#JumpBy ret (return value: cc.JumpBy)
--------------------------------
-- param time in seconds
-- param time In seconds.
-- @function [parent=#JumpBy] update
-- @param self
-- @param #float time

View File

@ -5,8 +5,12 @@
-- @parent_module cc
--------------------------------
-- creates the action<br>
-- param duration in seconds
-- Creates the action.<br>
-- param duration Duration time, in seconds.<br>
-- param position The jumping destination position.<br>
-- param height The jumping height.<br>
-- param jumps The jumping times.<br>
-- return An autoreleased JumpTo object.
-- @function [parent=#JumpTo] create
-- @param self
-- @param #float duration

View File

@ -5,7 +5,9 @@
-- @parent_module cc
--------------------------------
-- creates a Place action with a position
-- Creates a Place action with a position.<br>
-- param pos A certain position.<br>
-- return An autoreleased Place object.
-- @function [parent=#Place] create
-- @param self
-- @param #vec2_table pos
@ -18,7 +20,7 @@
-- @return Place#Place ret (return value: cc.Place)
--------------------------------
-- param time in seconds
-- param time In seconds.
-- @function [parent=#Place] update
-- @param self
-- @param #float time

View File

@ -5,7 +5,9 @@
-- @parent_module cc
--------------------------------
-- create the action
-- Create the action.<br>
-- param isNeedCleanUp Is need to clean up, the default value is true.<br>
-- return An autoreleased RemoveSelf object.
-- @function [parent=#RemoveSelf] create
-- @param self
-- @return RemoveSelf#RemoveSelf ret (return value: cc.RemoveSelf)
@ -17,7 +19,7 @@
-- @return RemoveSelf#RemoveSelf ret (return value: cc.RemoveSelf)
--------------------------------
-- param time in seconds
-- param time In seconds.
-- @function [parent=#RemoveSelf] update
-- @param self
-- @param #float time

View File

@ -5,20 +5,25 @@
-- @parent_module cc
--------------------------------
--
-- Sets the inner action.<br>
-- param action The inner action.
-- @function [parent=#Repeat] setInnerAction
-- @param self
-- @param #cc.FiniteTimeAction action
-- @return Repeat#Repeat self (return value: cc.Repeat)
--------------------------------
--
-- Gets the inner action.<br>
-- return The inner action.
-- @function [parent=#Repeat] getInnerAction
-- @param self
-- @return FiniteTimeAction#FiniteTimeAction ret (return value: cc.FiniteTimeAction)
--------------------------------
-- creates a Repeat action. Times is an unsigned integer between 1 and pow(2,30)
-- Creates a Repeat action. Times is an unsigned integer between 1 and pow(2,30).<br>
-- param action The action needs to repeat.<br>
-- param times The repeat times.<br>
-- return An autoreleased Repeat object.
-- @function [parent=#Repeat] create
-- @param self
-- @param #cc.FiniteTimeAction action
@ -51,7 +56,7 @@
-- @return Repeat#Repeat self (return value: cc.Repeat)
--------------------------------
-- param dt in seconds
-- param dt In seconds.
-- @function [parent=#Repeat] update
-- @param self
-- @param #float dt

View File

@ -5,20 +5,24 @@
-- @parent_module cc
--------------------------------
--
-- Sets the inner action.<br>
-- param action The inner action.
-- @function [parent=#RepeatForever] setInnerAction
-- @param self
-- @param #cc.ActionInterval action
-- @return RepeatForever#RepeatForever self (return value: cc.RepeatForever)
--------------------------------
--
-- Gets the inner action.<br>
-- return The inner action.
-- @function [parent=#RepeatForever] getInnerAction
-- @param self
-- @return ActionInterval#ActionInterval ret (return value: cc.ActionInterval)
--------------------------------
-- creates the action
-- Creates the action.<br>
-- param action The action need to repeat forever.<br>
-- return An autoreleased RepeatForever object.
-- @function [parent=#RepeatForever] create
-- @param self
-- @param #cc.ActionInterval action
@ -50,7 +54,7 @@
-- @return RepeatForever#RepeatForever ret (return value: cc.RepeatForever)
--------------------------------
-- param dt in seconds
-- param dt In seconds.
-- @function [parent=#RepeatForever] step
-- @param self
-- @param #float dt

View File

@ -35,7 +35,7 @@
-- @return RotateBy#RotateBy ret (return value: cc.RotateBy)
--------------------------------
-- param time in seconds
-- param time In seconds.
-- @function [parent=#RotateBy] update
-- @param self
-- @param #float time

View File

@ -35,7 +35,7 @@
-- @return RotateTo#RotateTo ret (return value: cc.RotateTo)
--------------------------------
-- param dt in seconds
-- param dt In seconds.
-- @function [parent=#RotateTo] update
-- @param self
-- @param #float time

View File

@ -36,7 +36,7 @@
-- @return ScaleTo#ScaleTo ret (return value: cc.ScaleTo)
--------------------------------
-- param time in seconds
-- param time In seconds.
-- @function [parent=#ScaleTo] update
-- @param self
-- @param #float time

View File

@ -5,27 +5,32 @@
-- @parent_module cc
--------------------------------
-- render the scene
-- Render the scene.<br>
-- param renderer The renderer use to render the scene.
-- @function [parent=#Scene] render
-- @param self
-- @param #cc.Renderer renderer
-- @return Scene#Scene self (return value: cc.Scene)
--------------------------------
--
-- Get the default camera.<br>
-- return The default camera of scene.
-- @function [parent=#Scene] getDefaultCamera
-- @param self
-- @return Camera#Camera ret (return value: cc.Camera)
--------------------------------
-- creates a new Scene object with a predefined Size
-- Creates a new Scene object with a predefined Size. <br>
-- param size The predefined size of scene.<br>
-- return An autoreleased Scene object.
-- @function [parent=#Scene] createWithSize
-- @param self
-- @param #size_table size
-- @return Scene#Scene ret (return value: cc.Scene)
--------------------------------
-- creates a new Scene object
-- Creates a new Scene object. <br>
-- return An autoreleased Scene object.
-- @function [parent=#Scene] create
-- @param self
-- @return Scene#Scene ret (return value: cc.Scene)

View File

@ -30,7 +30,7 @@
-- @return Sequence#Sequence ret (return value: cc.Sequence)
--------------------------------
-- param t in seconds
-- param t In seconds.
-- @function [parent=#Sequence] update
-- @param self
-- @param #float t

View File

@ -5,7 +5,8 @@
-- @parent_module cc
--------------------------------
-- Allocates and initializes the action
-- Allocates and initializes the action.<br>
-- return An autoreleased Show object.
-- @function [parent=#Show] create
-- @param self
-- @return Show#Show ret (return value: cc.Show)
@ -17,7 +18,7 @@
-- @return Show#Show ret (return value: cc.Show)
--------------------------------
-- param time in seconds
-- param time In seconds.
-- @function [parent=#Show] update
-- @param self
-- @param #float time

View File

@ -5,8 +5,11 @@
-- @parent_module cc
--------------------------------
-- creates the action<br>
-- param t in seconds
-- Creates the action.<br>
-- param t Duration time, in seconds.<br>
-- param deltaSkewX Skew x delta angle.<br>
-- param deltaSkewY Skew y delta angle.<br>
-- return An autoreleased SkewBy object.
-- @function [parent=#SkewBy] create
-- @param self
-- @param #float t

View File

@ -5,8 +5,11 @@
-- @parent_module cc
--------------------------------
-- creates the action<br>
-- param t in seconds
-- Creates the action.<br>
-- param t Duration time, in seconds.<br>
-- param sx Skew x angle.<br>
-- param sy Skew y angle.<br>
-- return An autoreleased SkewTo object.
-- @function [parent=#SkewTo] create
-- @param self
-- @param #float t
@ -34,7 +37,7 @@
-- @return SkewTo#SkewTo ret (return value: cc.SkewTo)
--------------------------------
-- param time in seconds
-- param time In seconds.
-- @function [parent=#SkewTo] update
-- @param self
-- @param #float time

View File

@ -30,7 +30,7 @@
-- @return Spawn#Spawn ret (return value: cc.Spawn)
--------------------------------
-- param dt in seconds
-- param dt In seconds.
-- @function [parent=#Spawn] update
-- @param self
-- @param #float time

View File

@ -11,105 +11,121 @@
-- @return SpriteFrame#SpriteFrame ret (return value: cc.SpriteFrame)
--------------------------------
--
-- Set rotated of the sprite frame.<br>
-- param rotated Rotated the sprite frame if true.
-- @function [parent=#SpriteFrame] setRotated
-- @param self
-- @param #bool rotated
-- @return SpriteFrame#SpriteFrame self (return value: cc.SpriteFrame)
--------------------------------
-- set texture of the frame, the texture is retained
-- Set texture of the frame, the texture is retained.<br>
-- param pobTexture The texture of the sprite frame.
-- @function [parent=#SpriteFrame] setTexture
-- @param self
-- @param #cc.Texture2D pobTexture
-- @return SpriteFrame#SpriteFrame self (return value: cc.SpriteFrame)
--------------------------------
--
-- Get offset of the frame.<br>
-- return The offset of the sprite frame.
-- @function [parent=#SpriteFrame] getOffset
-- @param self
-- @return vec2_table#vec2_table ret (return value: vec2_table)
--------------------------------
--
-- Set rect of the sprite frame.<br>
-- param rectInPixels The rect of the sprite frame, in pixels.
-- @function [parent=#SpriteFrame] setRectInPixels
-- @param self
-- @param #rect_table rectInPixels
-- @return SpriteFrame#SpriteFrame self (return value: cc.SpriteFrame)
--------------------------------
-- get texture of the frame
-- Get texture of the frame.<br>
-- return The texture of the sprite frame.
-- @function [parent=#SpriteFrame] getTexture
-- @param self
-- @return Texture2D#Texture2D ret (return value: cc.Texture2D)
--------------------------------
-- get rect of the frame
-- Get rect of the frame.<br>
-- return The rect of the sprite frame.
-- @function [parent=#SpriteFrame] getRect
-- @param self
-- @return rect_table#rect_table ret (return value: rect_table)
--------------------------------
-- set offset of the frame
-- Set offset of the frame.<br>
-- param offsetInPixels The offset of the sprite frame, in pixels.
-- @function [parent=#SpriteFrame] setOffsetInPixels
-- @param self
-- @param #vec2_table offsetInPixels
-- @return SpriteFrame#SpriteFrame self (return value: cc.SpriteFrame)
--------------------------------
--
-- Get rect of the sprite frame.<br>
-- return The rect of the sprite frame, in pixels.
-- @function [parent=#SpriteFrame] getRectInPixels
-- @param self
-- @return rect_table#rect_table ret (return value: rect_table)
--------------------------------
-- set original size of the trimmed image
-- Set original size of the trimmed image.<br>
-- param sizeInPixels The original size of the trimmed image.
-- @function [parent=#SpriteFrame] setOriginalSize
-- @param self
-- @param #size_table sizeInPixels
-- @return SpriteFrame#SpriteFrame self (return value: cc.SpriteFrame)
--------------------------------
-- get original size of the trimmed image
-- Get original size of the trimmed image.<br>
-- return The original size of the trimmed image, in pixels.
-- @function [parent=#SpriteFrame] getOriginalSizeInPixels
-- @param self
-- @return size_table#size_table ret (return value: size_table)
--------------------------------
-- set original size of the trimmed image
-- Set original size of the trimmed image.<br>
-- param sizeInPixels The original size of the trimmed image, in pixels.
-- @function [parent=#SpriteFrame] setOriginalSizeInPixels
-- @param self
-- @param #size_table sizeInPixels
-- @return SpriteFrame#SpriteFrame self (return value: cc.SpriteFrame)
--------------------------------
--
-- Set offset of the frame.<br>
-- param offsets The offset of the sprite frame.
-- @function [parent=#SpriteFrame] setOffset
-- @param self
-- @param #vec2_table offsets
-- @return SpriteFrame#SpriteFrame self (return value: cc.SpriteFrame)
--------------------------------
--
-- Is the sprite frame rotated or not.<br>
-- return Is rotated if true.
-- @function [parent=#SpriteFrame] isRotated
-- @param self
-- @return bool#bool ret (return value: bool)
--------------------------------
-- set rect of the frame
-- Set rect of the frame.<br>
-- param The rect of the sprite.
-- @function [parent=#SpriteFrame] setRect
-- @param self
-- @param #rect_table rect
-- @return SpriteFrame#SpriteFrame self (return value: cc.SpriteFrame)
--------------------------------
-- get offset of the frame
-- Get offset of the frame.<br>
-- return The offset of the sprite frame, in pixels.
-- @function [parent=#SpriteFrame] getOffsetInPixels
-- @param self
-- @return vec2_table#vec2_table ret (return value: vec2_table)
--------------------------------
-- get original size of the trimmed image
-- Get original size of the trimmed image.<br>
-- return The original size of the trimmed image.
-- @function [parent=#SpriteFrame] getOriginalSize
-- @param self
-- @return size_table#size_table ret (return value: size_table)

View File

@ -7,7 +7,9 @@
--------------------------------
-- Adds multiple Sprite Frames from a plist file content. The texture will be associated with the created sprite frames. <br>
-- js addSpriteFrames<br>
-- lua addSpriteFrames
-- lua addSpriteFrames<br>
-- param plist_content Plist file content string.<br>
-- param texture Texture pointer.
-- @function [parent=#SpriteFrameCache] addSpriteFramesWithFileContent
-- @param self
-- @param #string plist_content
@ -26,7 +28,9 @@
--------------------------------
-- Adds an sprite frame with a given name.<br>
-- If the name already exists, then the contents of the old name will be replaced with the new one.
-- If the name already exists, then the contents of the old name will be replaced with the new one.<br>
-- param frame A certain sprite frame.<br>
-- param frameName The name of the sprite frame.
-- @function [parent=#SpriteFrameCache] addSpriteFrame
-- @param self
-- @param #cc.SpriteFrame frame
@ -46,7 +50,9 @@
-- If the name is not found it will return nil.<br>
-- You should retain the returned copy if you are going to use it.<br>
-- js getSpriteFrame<br>
-- lua getSpriteFrame
-- lua getSpriteFrame<br>
-- param name A certain sprite frame name.<br>
-- return The sprite frame.
-- @function [parent=#SpriteFrameCache] getSpriteFrameByName
-- @param self
-- @param #string name
@ -56,14 +62,16 @@
-- Removes multiple Sprite Frames from a plist file.<br>
-- Sprite Frames stored in this file will be removed.<br>
-- It is convenient to call this method when a specific texture needs to be removed.<br>
-- since v0.99.5
-- since v0.99.5<br>
-- param plist The name of the plist that needs to removed.
-- @function [parent=#SpriteFrameCache] removeSpriteFramesFromFile
-- @param self
-- @param #string plist
-- @return SpriteFrameCache#SpriteFrameCache self (return value: cc.SpriteFrameCache)
--------------------------------
--
-- Initialize method.<br>
-- return if success return true.
-- @function [parent=#SpriteFrameCache] init
-- @param self
-- @return bool#bool ret (return value: bool)
@ -81,7 +89,8 @@
--------------------------------
-- Removes all Sprite Frames associated with the specified textures.<br>
-- It is convenient to call this method when a specific texture needs to be removed.<br>
-- since v0.995.
-- since v0.995.<br>
-- param texture The texture that needs to removed.
-- @function [parent=#SpriteFrameCache] removeSpriteFramesFromTexture
-- @param self
-- @param #cc.Texture2D texture
@ -90,27 +99,30 @@
--------------------------------
-- Removes multiple Sprite Frames from a plist file content.<br>
-- Sprite Frames stored in this file will be removed.<br>
-- It is convenient to call this method when a specific texture needs to be removed.
-- It is convenient to call this method when a specific texture needs to be removed.<br>
-- param plist_content The string of the plist content that needs to removed.
-- @function [parent=#SpriteFrameCache] removeSpriteFramesFromFileContent
-- @param self
-- @param #string plist_content
-- @return SpriteFrameCache#SpriteFrameCache self (return value: cc.SpriteFrameCache)
--------------------------------
-- Deletes an sprite frame from the sprite frame cache.
-- Deletes an sprite frame from the sprite frame cache. <br>
-- param name The name of the sprite frame that needs to removed.
-- @function [parent=#SpriteFrameCache] removeSpriteFrameByName
-- @param self
-- @param #string name
-- @return SpriteFrameCache#SpriteFrameCache self (return value: cc.SpriteFrameCache)
--------------------------------
-- Destroys the cache. It releases all the Sprite Frames and the retained instance.
-- Destroys the cache. It releases all the Sprite Frames and the retained instance.
-- @function [parent=#SpriteFrameCache] destroyInstance
-- @param self
-- @return SpriteFrameCache#SpriteFrameCache self (return value: cc.SpriteFrameCache)
--------------------------------
-- Returns the shared instance of the Sprite Frame cache
-- Returns the shared instance of the Sprite Frame cache.<br>
-- return The instance of the Sprite Frame Cache.
-- @function [parent=#SpriteFrameCache] getInstance
-- @param self
-- @return SpriteFrameCache#SpriteFrameCache ret (return value: cc.SpriteFrameCache)

View File

@ -12,14 +12,18 @@
-- @return Node#Node ret (return value: cc.Node)
--------------------------------
-- Sets the target that the action will be forced to run with
-- Sets the target that the action will be forced to run with.<br>
-- param forcedTarget The target that the action will be forced to run with.
-- @function [parent=#TargetedAction] setForcedTarget
-- @param self
-- @param #cc.Node forcedTarget
-- @return TargetedAction#TargetedAction self (return value: cc.TargetedAction)
--------------------------------
-- Create an action with the specified action and forced target
-- Create an action with the specified action and forced target.<br>
-- param target The target needs to override.<br>
-- param action The action needs to override.<br>
-- return An autoreleased TargetedAction object.
-- @function [parent=#TargetedAction] create
-- @param self
-- @param #cc.Node target
@ -52,7 +56,7 @@
-- @return TargetedAction#TargetedAction ret (return value: cc.TargetedAction)
--------------------------------
-- param time in seconds
-- param time In seconds.
-- @function [parent=#TargetedAction] update
-- @param self
-- @param #float time

View File

@ -5,8 +5,12 @@
-- @parent_module cc
--------------------------------
-- creates an action with duration and color<br>
-- param duration in seconds
-- Creates an action with duration and color.<br>
-- param duration Duration time, in seconds.<br>
-- param deltaRed Delta red color.<br>
-- param deltaGreen Delta green color.<br>
-- param deltaBlue Delta blue color.<br>
-- return An autoreleased TintBy object.
-- @function [parent=#TintBy] create
-- @param self
-- @param #float duration
@ -35,7 +39,7 @@
-- @return TintBy#TintBy ret (return value: cc.TintBy)
--------------------------------
-- param time in seconds
-- param time In seconds.
-- @function [parent=#TintBy] update
-- @param self
-- @param #float time

View File

@ -35,7 +35,7 @@
-- @return TintTo#TintTo ret (return value: cc.TintTo)
--------------------------------
-- param time in seconds
-- param time In seconds.
-- @function [parent=#TintTo] update
-- @param self
-- @param #float time

View File

@ -5,7 +5,8 @@
-- @parent_module cc
--------------------------------
-- Allocates and initializes the action
-- Allocates and initializes the action.<br>
-- return An autoreleased ToggleVisibility object.
-- @function [parent=#ToggleVisibility] create
-- @param self
-- @return ToggleVisibility#ToggleVisibility ret (return value: cc.ToggleVisibility)
@ -17,7 +18,7 @@
-- @return ToggleVisibility#ToggleVisibility ret (return value: cc.ToggleVisibility)
--------------------------------
-- param time in seconds
-- param time In seconds.
-- @function [parent=#ToggleVisibility] update
-- @param self
-- @param #float time