From d58d36d1c8e87b99d5863de22d25dbd78e42d3a6 Mon Sep 17 00:00:00 2001 From: CocosRobot Date: Wed, 18 Jun 2014 03:44:06 +0000 Subject: [PATCH] [AUTO]: updating luabinding automatically --- .../lua-bindings/auto/api/Armature.lua | 14 +- .../scripting/lua-bindings/auto/api/Bone.lua | 10 - .../lua-bindings/auto/api/GLProgram.lua | 90 - .../lua-bindings/auto/api/LabelBMFont.lua | 122 - .../lua-bindings/auto/api/LabelTTF.lua | 191 - .../scripting/lua-bindings/auto/api/Node.lua | 22 + .../lua-bindings/auto/api/OrbitCamera.lua | 7 - .../lua-bindings/auto/api/ParallaxNode.lua | 5 - .../lua-bindings/auto/api/ParticleSystem.lua | 11 - .../lua-bindings/auto/api/ScrollView.lua | 2 +- .../lua-bindings/auto/api/ShuffleTiles.lua | 12 - .../auto/api/SkeletonAnimation.lua | 8 - .../lua-bindings/auto/api/TMXLayer.lua | 12 - .../lua-bindings/auto/api/Texture2D.lua | 20 - .../lua-bindings/auto/api/TileMapAtlas.lua | 5 - .../lua-bindings/auto/api/TurnOffTiles.lua | 6 - .../lua-bindings/auto/api/Widget.lua | 28 +- .../auto/api/lua_cocos2dx_auto_api.lua | 10 - .../lua-bindings/auto/lua_cocos2dx_auto.cpp | 3874 +---------------- .../lua-bindings/auto/lua_cocos2dx_auto.hpp | 66 - .../auto/lua_cocos2dx_spine_auto.cpp | 56 - .../auto/lua_cocos2dx_spine_auto.hpp | 1 - .../auto/lua_cocos2dx_studio_auto.cpp | 200 +- .../auto/lua_cocos2dx_studio_auto.hpp | 4 - .../auto/lua_cocos2dx_ui_auto.cpp | 198 +- .../auto/lua_cocos2dx_ui_auto.hpp | 3 - 26 files changed, 262 insertions(+), 4715 deletions(-) delete mode 100644 cocos/scripting/lua-bindings/auto/api/LabelBMFont.lua delete mode 100644 cocos/scripting/lua-bindings/auto/api/LabelTTF.lua diff --git a/cocos/scripting/lua-bindings/auto/api/Armature.lua b/cocos/scripting/lua-bindings/auto/api/Armature.lua index b4b18c2dcd..19131739cc 100644 --- a/cocos/scripting/lua-bindings/auto/api/Armature.lua +++ b/cocos/scripting/lua-bindings/auto/api/Armature.lua @@ -46,11 +46,6 @@ -- @param self -- @return Bone#Bone ret (return value: ccs.Bone) --------------------------------- --- @function [parent=#Armature] setArmatureData --- @param self --- @param #ccs.ArmatureData armaturedata - -------------------------------- -- @function [parent=#Armature] removeBone -- @param self @@ -62,11 +57,6 @@ -- @param self -- @return BatchNode#BatchNode ret (return value: ccs.BatchNode) --------------------------------- --- @function [parent=#Armature] getName --- @param self --- @return string#string ret (return value: string) - -------------------------------- -- overload function: init(string) -- @@ -95,9 +85,9 @@ -- @param #ccs.BatchNode batchnode -------------------------------- --- @function [parent=#Armature] setName +-- @function [parent=#Armature] setArmatureData -- @param self --- @param #string str +-- @param #ccs.ArmatureData armaturedata -------------------------------- -- @function [parent=#Armature] addBone diff --git a/cocos/scripting/lua-bindings/auto/api/Bone.lua b/cocos/scripting/lua-bindings/auto/api/Bone.lua index a9902028f8..ed45007a4c 100644 --- a/cocos/scripting/lua-bindings/auto/api/Bone.lua +++ b/cocos/scripting/lua-bindings/auto/api/Bone.lua @@ -51,11 +51,6 @@ -- @function [parent=#Bone] updateColor -- @param self --------------------------------- --- @function [parent=#Bone] getName --- @param self --- @return string#string ret (return value: string) - -------------------------------- -- @function [parent=#Bone] setTransformDirty -- @param self @@ -101,11 +96,6 @@ -- @param #ccs.DisplayData displaydata -- @param #int int --------------------------------- --- @function [parent=#Bone] setName --- @param self --- @param #string str - -------------------------------- -- @function [parent=#Bone] removeFromParent -- @param self diff --git a/cocos/scripting/lua-bindings/auto/api/GLProgram.lua b/cocos/scripting/lua-bindings/auto/api/GLProgram.lua index 8e932c58a5..f5f222a13c 100644 --- a/cocos/scripting/lua-bindings/auto/api/GLProgram.lua +++ b/cocos/scripting/lua-bindings/auto/api/GLProgram.lua @@ -15,13 +15,6 @@ -- @param #char char -- @return bool#bool ret (return value: bool) --------------------------------- --- @function [parent=#GLProgram] setUniformLocationWithMatrix4fv --- @param self --- @param #int int --- @param #float float --- @param #unsigned int int - -------------------------------- -- @function [parent=#GLProgram] initWithFilenames -- @param self @@ -29,12 +22,6 @@ -- @param #string str -- @return bool#bool ret (return value: bool) --------------------------------- --- @function [parent=#GLProgram] getUniformLocationForName --- @param self --- @param #char char --- @return int#int ret (return value: int) - -------------------------------- -- @function [parent=#GLProgram] use -- @param self @@ -44,12 +31,6 @@ -- @param self -- @return string#string ret (return value: string) --------------------------------- --- @function [parent=#GLProgram] getUniform --- @param self --- @param #string str --- @return Uniform#Uniform ret (return value: cc.Uniform) - -------------------------------- -- overload function: setUniformsForBuiltins(mat4_table) -- @@ -59,58 +40,16 @@ -- @param self -- @param #mat4_table mat4 --------------------------------- --- @function [parent=#GLProgram] setUniformLocationWith3i --- @param self --- @param #int int --- @param #int int --- @param #int int --- @param #int int - --------------------------------- --- @function [parent=#GLProgram] setUniformLocationWith3iv --- @param self --- @param #int int --- @param #int int --- @param #unsigned int int - -------------------------------- -- @function [parent=#GLProgram] updateUniforms -- @param self --------------------------------- --- @function [parent=#GLProgram] setUniformLocationWith4iv --- @param self --- @param #int int --- @param #int int --- @param #unsigned int int - --------------------------------- --- @function [parent=#GLProgram] getUniformLocation --- @param self --- @param #string str --- @return int#int ret (return value: int) - -------------------------------- -- @function [parent=#GLProgram] setUniformLocationWith1i -- @param self -- @param #int int -- @param #int int --------------------------------- --- @function [parent=#GLProgram] setUniformLocationWith2iv --- @param self --- @param #int int --- @param #int int --- @param #unsigned int int - --------------------------------- --- @function [parent=#GLProgram] setUniformLocationWithMatrix3fv --- @param self --- @param #int int --- @param #float float --- @param #unsigned int int - -------------------------------- -- @function [parent=#GLProgram] reset -- @param self @@ -127,40 +66,11 @@ -- @param #string str -- @return int#int ret (return value: int) --------------------------------- --- @function [parent=#GLProgram] getVertexAttrib --- @param self --- @param #string str --- @return VertexAttrib#VertexAttrib ret (return value: cc.VertexAttrib) - --------------------------------- --- @function [parent=#GLProgram] setUniformLocationWithMatrix2fv --- @param self --- @param #int int --- @param #float float --- @param #unsigned int int - --------------------------------- --- @function [parent=#GLProgram] setUniformLocationWith4i --- @param self --- @param #int int --- @param #int int --- @param #int int --- @param #int int --- @param #int int - -------------------------------- -- @function [parent=#GLProgram] link -- @param self -- @return bool#bool ret (return value: bool) --------------------------------- --- @function [parent=#GLProgram] setUniformLocationWith2i --- @param self --- @param #int int --- @param #int int --- @param #int int - -------------------------------- -- @function [parent=#GLProgram] createWithByteArrays -- @param self diff --git a/cocos/scripting/lua-bindings/auto/api/LabelBMFont.lua b/cocos/scripting/lua-bindings/auto/api/LabelBMFont.lua deleted file mode 100644 index 073f582412..0000000000 --- a/cocos/scripting/lua-bindings/auto/api/LabelBMFont.lua +++ /dev/null @@ -1,122 +0,0 @@ - --------------------------------- --- @module LabelBMFont --- @extend Node,LabelProtocol,BlendProtocol - --------------------------------- --- @function [parent=#LabelBMFont] setLineBreakWithoutSpace --- @param self --- @param #bool bool - --------------------------------- --- @function [parent=#LabelBMFont] getBlendFunc --- @param self --- @return BlendFunc#BlendFunc ret (return value: cc.BlendFunc) - --------------------------------- --- @function [parent=#LabelBMFont] isOpacityModifyRGB --- @param self --- @return bool#bool ret (return value: bool) - --------------------------------- --- @function [parent=#LabelBMFont] getLetter --- @param self --- @param #int int --- @return Sprite#Sprite ret (return value: cc.Sprite) - --------------------------------- --- @function [parent=#LabelBMFont] getString --- @param self --- @return string#string ret (return value: string) - --------------------------------- --- @function [parent=#LabelBMFont] setBlendFunc --- @param self --- @param #cc.BlendFunc blendfunc - --------------------------------- --- @function [parent=#LabelBMFont] setString --- @param self --- @param #string str - --------------------------------- --- @function [parent=#LabelBMFont] initWithString --- @param self --- @param #string str --- @param #string str --- @param #float float --- @param #cc.TextHAlignment texthalignment --- @param #vec2_table vec2 --- @return bool#bool ret (return value: bool) - --------------------------------- --- @function [parent=#LabelBMFont] setOpacityModifyRGB --- @param self --- @param #bool bool - --------------------------------- --- @function [parent=#LabelBMFont] getFntFile --- @param self --- @return string#string ret (return value: string) - --------------------------------- --- @function [parent=#LabelBMFont] setFntFile --- @param self --- @param #string str --- @param #vec2_table vec2 - --------------------------------- --- @function [parent=#LabelBMFont] setAlignment --- @param self --- @param #cc.TextHAlignment texthalignment - --------------------------------- --- @function [parent=#LabelBMFont] setWidth --- @param self --- @param #float float - --------------------------------- --- overload function: create() --- --- overload function: create(string, string, float, cc.TextHAlignment, vec2_table) --- --- @function [parent=#LabelBMFont] create --- @param self --- @param #string str --- @param #string str --- @param #float float --- @param #cc.TextHAlignment texthalignment --- @param #vec2_table vec2 --- @return LabelBMFont#LabelBMFont ret (retunr value: cc.LabelBMFont) - --------------------------------- --- @function [parent=#LabelBMFont] getBoundingBox --- @param self --- @return rect_table#rect_table ret (return value: rect_table) - --------------------------------- --- @function [parent=#LabelBMFont] getDescription --- @param self --- @return string#string ret (return value: string) - --------------------------------- --- @function [parent=#LabelBMFont] setColor --- @param self --- @param #color3b_table color3b - --------------------------------- --- @function [parent=#LabelBMFont] getChildByTag --- @param self --- @param #int int --- @return Node#Node ret (return value: cc.Node) - --------------------------------- --- @function [parent=#LabelBMFont] getContentSize --- @param self --- @return size_table#size_table ret (return value: size_table) - --------------------------------- --- @function [parent=#LabelBMFont] LabelBMFont --- @param self - -return nil diff --git a/cocos/scripting/lua-bindings/auto/api/LabelTTF.lua b/cocos/scripting/lua-bindings/auto/api/LabelTTF.lua deleted file mode 100644 index 1e6e09dc33..0000000000 --- a/cocos/scripting/lua-bindings/auto/api/LabelTTF.lua +++ /dev/null @@ -1,191 +0,0 @@ - --------------------------------- --- @module LabelTTF --- @extend Node,LabelProtocol,BlendProtocol - --------------------------------- --- @function [parent=#LabelTTF] enableShadow --- @param self --- @param #size_table size --- @param #float float --- @param #float float --- @param #bool bool - --------------------------------- --- @function [parent=#LabelTTF] setDimensions --- @param self --- @param #size_table size - --------------------------------- --- @function [parent=#LabelTTF] getFontSize --- @param self --- @return float#float ret (return value: float) - --------------------------------- --- @function [parent=#LabelTTF] getString --- @param self --- @return string#string ret (return value: string) - --------------------------------- --- @function [parent=#LabelTTF] setFlippedY --- @param self --- @param #bool bool - --------------------------------- --- @function [parent=#LabelTTF] setFlippedX --- @param self --- @param #bool bool - --------------------------------- --- @function [parent=#LabelTTF] setTextDefinition --- @param self --- @param #cc.FontDefinition fontdefinition - --------------------------------- --- @function [parent=#LabelTTF] setFontName --- @param self --- @param #string str - --------------------------------- --- @function [parent=#LabelTTF] getHorizontalAlignment --- @param self --- @return TextHAlignment#TextHAlignment ret (return value: cc.TextHAlignment) - --------------------------------- --- @function [parent=#LabelTTF] initWithStringAndTextDefinition --- @param self --- @param #string str --- @param #cc.FontDefinition fontdefinition --- @return bool#bool ret (return value: bool) - --------------------------------- --- @function [parent=#LabelTTF] setString --- @param self --- @param #string str - --------------------------------- --- @function [parent=#LabelTTF] initWithString --- @param self --- @param #string str --- @param #string str --- @param #float float --- @param #size_table size --- @param #cc.TextHAlignment texthalignment --- @param #cc.TextVAlignment textvalignment --- @return bool#bool ret (return value: bool) - --------------------------------- --- @function [parent=#LabelTTF] setFontFillColor --- @param self --- @param #color3b_table color3b --- @param #bool bool - --------------------------------- --- @function [parent=#LabelTTF] getBlendFunc --- @param self --- @return BlendFunc#BlendFunc ret (return value: cc.BlendFunc) - --------------------------------- --- @function [parent=#LabelTTF] enableStroke --- @param self --- @param #color3b_table color3b --- @param #float float --- @param #bool bool - --------------------------------- --- @function [parent=#LabelTTF] getDimensions --- @param self --- @return size_table#size_table ret (return value: size_table) - --------------------------------- --- @function [parent=#LabelTTF] setVerticalAlignment --- @param self --- @param #cc.TextVAlignment textvalignment - --------------------------------- --- @function [parent=#LabelTTF] setFontSize --- @param self --- @param #float float - --------------------------------- --- @function [parent=#LabelTTF] getVerticalAlignment --- @param self --- @return TextVAlignment#TextVAlignment ret (return value: cc.TextVAlignment) - --------------------------------- --- @function [parent=#LabelTTF] getTextDefinition --- @param self --- @return FontDefinition#FontDefinition ret (return value: cc.FontDefinition) - --------------------------------- --- @function [parent=#LabelTTF] setBlendFunc --- @param self --- @param #cc.BlendFunc blendfunc - --------------------------------- --- @function [parent=#LabelTTF] getFontName --- @param self --- @return string#string ret (return value: string) - --------------------------------- --- @function [parent=#LabelTTF] setHorizontalAlignment --- @param self --- @param #cc.TextHAlignment texthalignment - --------------------------------- --- @function [parent=#LabelTTF] disableShadow --- @param self - --------------------------------- --- @function [parent=#LabelTTF] disableStroke --- @param self - --------------------------------- --- overload function: create() --- --- overload function: create(string, string, float, size_table, cc.TextHAlignment, cc.TextVAlignment) --- --- @function [parent=#LabelTTF] create --- @param self --- @param #string str --- @param #string str --- @param #float float --- @param #size_table size --- @param #cc.TextHAlignment texthalignment --- @param #cc.TextVAlignment textvalignment --- @return LabelTTF#LabelTTF ret (retunr value: cc.LabelTTF) - --------------------------------- --- @function [parent=#LabelTTF] createWithFontDefinition --- @param self --- @param #string str --- @param #cc.FontDefinition fontdefinition --- @return LabelTTF#LabelTTF ret (return value: cc.LabelTTF) - --------------------------------- --- @function [parent=#LabelTTF] getBoundingBox --- @param self --- @return rect_table#rect_table ret (return value: rect_table) - --------------------------------- --- @function [parent=#LabelTTF] getDescription --- @param self --- @return string#string ret (return value: string) - --------------------------------- --- @function [parent=#LabelTTF] getContentSize --- @param self --- @return size_table#size_table ret (return value: size_table) - --------------------------------- --- @function [parent=#LabelTTF] visit --- @param self --- @param #cc.Renderer renderer --- @param #mat4_table mat4 --- @param #unsigned int int - --------------------------------- --- @function [parent=#LabelTTF] LabelTTF --- @param self - -return nil diff --git a/cocos/scripting/lua-bindings/auto/api/Node.lua b/cocos/scripting/lua-bindings/auto/api/Node.lua index 7078931e44..39991328ed 100644 --- a/cocos/scripting/lua-bindings/auto/api/Node.lua +++ b/cocos/scripting/lua-bindings/auto/api/Node.lua @@ -71,6 +71,12 @@ -- @param self -- @return bool#bool ret (return value: bool) +-------------------------------- +-- @function [parent=#Node] getChildByName +-- @param self +-- @param #string str +-- @return Node#Node ret (return value: cc.Node) + -------------------------------- -- @function [parent=#Node] updateDisplayedOpacity -- @param self @@ -202,6 +208,11 @@ -- @param self -- @param #cc.Node node +-------------------------------- +-- @function [parent=#Node] getName +-- @param self +-- @return string#string ret (return value: string) + -------------------------------- -- @function [parent=#Node] getRotation3D -- @param self @@ -392,6 +403,11 @@ -- @param #int int -- @return Action#Action ret (return value: cc.Action) +-------------------------------- +-- @function [parent=#Node] setName +-- @param self +-- @param #string str + -------------------------------- -- overload function: setAdditionalTransform(cc.AffineTransform) -- @@ -612,6 +628,12 @@ -- @param self -- @param #cc.Ref ref +-------------------------------- +-- @function [parent=#Node] enumerateChildren +-- @param self +-- @param #string str +-- @param #function func + -------------------------------- -- overload function: removeFromParentAndCleanup(bool) -- diff --git a/cocos/scripting/lua-bindings/auto/api/OrbitCamera.lua b/cocos/scripting/lua-bindings/auto/api/OrbitCamera.lua index f2e0677478..ff34153f0b 100644 --- a/cocos/scripting/lua-bindings/auto/api/OrbitCamera.lua +++ b/cocos/scripting/lua-bindings/auto/api/OrbitCamera.lua @@ -3,13 +3,6 @@ -- @module OrbitCamera -- @extend ActionCamera --------------------------------- --- @function [parent=#OrbitCamera] sphericalRadius --- @param self --- @param #float float --- @param #float float --- @param #float float - -------------------------------- -- @function [parent=#OrbitCamera] create -- @param self diff --git a/cocos/scripting/lua-bindings/auto/api/ParallaxNode.lua b/cocos/scripting/lua-bindings/auto/api/ParallaxNode.lua index 905d50955e..dd04ae9d0f 100644 --- a/cocos/scripting/lua-bindings/auto/api/ParallaxNode.lua +++ b/cocos/scripting/lua-bindings/auto/api/ParallaxNode.lua @@ -16,11 +16,6 @@ -- @param self -- @param #bool bool --------------------------------- --- @function [parent=#ParallaxNode] setParallaxArray --- @param self --- @param #cc._ccArray _ccarray - -------------------------------- -- @function [parent=#ParallaxNode] create -- @param self diff --git a/cocos/scripting/lua-bindings/auto/api/ParticleSystem.lua b/cocos/scripting/lua-bindings/auto/api/ParticleSystem.lua index 710e41e4dd..f6a106fbe5 100644 --- a/cocos/scripting/lua-bindings/auto/api/ParticleSystem.lua +++ b/cocos/scripting/lua-bindings/auto/api/ParticleSystem.lua @@ -196,12 +196,6 @@ -- @param self -- @param #color4f_table color4f --------------------------------- --- @function [parent=#ParticleSystem] updateQuadWithParticle --- @param self --- @param #cc.sParticle sparticle --- @param #vec2_table vec2 - -------------------------------- -- @function [parent=#ParticleSystem] getAtlasIndex -- @param self @@ -276,11 +270,6 @@ -- @param self -- @return float#float ret (return value: float) --------------------------------- --- @function [parent=#ParticleSystem] initParticle --- @param self --- @param #cc.sParticle sparticle - -------------------------------- -- @function [parent=#ParticleSystem] setEmitterMode -- @param self diff --git a/cocos/scripting/lua-bindings/auto/api/ScrollView.lua b/cocos/scripting/lua-bindings/auto/api/ScrollView.lua index 217c88aa56..7c7e663466 100644 --- a/cocos/scripting/lua-bindings/auto/api/ScrollView.lua +++ b/cocos/scripting/lua-bindings/auto/api/ScrollView.lua @@ -196,7 +196,7 @@ -- @function [parent=#ScrollView] getChildByName -- @param self -- @param #string str --- @return Widget#Widget ret (return value: ccui.Widget) +-- @return Node#Node ret (return value: cc.Node) -------------------------------- -- @function [parent=#ScrollView] getDescription diff --git a/cocos/scripting/lua-bindings/auto/api/ShuffleTiles.lua b/cocos/scripting/lua-bindings/auto/api/ShuffleTiles.lua index aef6653507..e9f757cfaf 100644 --- a/cocos/scripting/lua-bindings/auto/api/ShuffleTiles.lua +++ b/cocos/scripting/lua-bindings/auto/api/ShuffleTiles.lua @@ -3,18 +3,6 @@ -- @module ShuffleTiles -- @extend TiledGrid3DAction --------------------------------- --- @function [parent=#ShuffleTiles] placeTile --- @param self --- @param #vec2_table vec2 --- @param #cc.Tile tile - --------------------------------- --- @function [parent=#ShuffleTiles] shuffle --- @param self --- @param #unsigned int int --- @param #unsigned int int - -------------------------------- -- @function [parent=#ShuffleTiles] getDelta -- @param self diff --git a/cocos/scripting/lua-bindings/auto/api/SkeletonAnimation.lua b/cocos/scripting/lua-bindings/auto/api/SkeletonAnimation.lua index dfc80e1093..2d1a84ff26 100644 --- a/cocos/scripting/lua-bindings/auto/api/SkeletonAnimation.lua +++ b/cocos/scripting/lua-bindings/auto/api/SkeletonAnimation.lua @@ -18,12 +18,4 @@ -- @function [parent=#SkeletonAnimation] clearTrack -- @param self --------------------------------- --- @function [parent=#SkeletonAnimation] onAnimationStateEvent --- @param self --- @param #int int --- @param #spEventType speventtype --- @param #spEvent spevent --- @param #int int - return nil diff --git a/cocos/scripting/lua-bindings/auto/api/TMXLayer.lua b/cocos/scripting/lua-bindings/auto/api/TMXLayer.lua index da32c1c067..940ab59cca 100644 --- a/cocos/scripting/lua-bindings/auto/api/TMXLayer.lua +++ b/cocos/scripting/lua-bindings/auto/api/TMXLayer.lua @@ -3,13 +3,6 @@ -- @module TMXLayer -- @extend SpriteBatchNode --------------------------------- --- @function [parent=#TMXLayer] getTileGIDAt --- @param self --- @param #vec2_table vec2 --- @param #cc.TMXTileFlags_ tmxtileflags_ --- @return unsigned int#unsigned int ret (return value: unsigned int) - -------------------------------- -- @function [parent=#TMXLayer] getPositionAt -- @param self @@ -25,11 +18,6 @@ -- @function [parent=#TMXLayer] releaseMap -- @param self --------------------------------- --- @function [parent=#TMXLayer] setTiles --- @param self --- @param #unsigned int int - -------------------------------- -- @function [parent=#TMXLayer] getLayerSize -- @param self diff --git a/cocos/scripting/lua-bindings/auto/api/Texture2D.lua b/cocos/scripting/lua-bindings/auto/api/Texture2D.lua index 92c8ebe86c..9cb4f7f88e 100644 --- a/cocos/scripting/lua-bindings/auto/api/Texture2D.lua +++ b/cocos/scripting/lua-bindings/auto/api/Texture2D.lua @@ -33,31 +33,11 @@ -- @function [parent=#Texture2D] releaseGLTexture -- @param self --------------------------------- --- @function [parent=#Texture2D] updateWithData --- @param self --- @param #void void --- @param #int int --- @param #int int --- @param #int int --- @param #int int --- @return bool#bool ret (return value: bool) - -------------------------------- -- @function [parent=#Texture2D] hasPremultipliedAlpha -- @param self -- @return bool#bool ret (return value: bool) --------------------------------- --- @function [parent=#Texture2D] initWithMipmaps --- @param self --- @param #cc._MipmapInfo map --- @param #int int --- @param #cc.Texture2D::PixelFormat pixelformat --- @param #int int --- @param #int int --- @return bool#bool ret (return value: bool) - -------------------------------- -- @function [parent=#Texture2D] getPixelsHigh -- @param self diff --git a/cocos/scripting/lua-bindings/auto/api/TileMapAtlas.lua b/cocos/scripting/lua-bindings/auto/api/TileMapAtlas.lua index 0374b99f79..fdb64c3bfa 100644 --- a/cocos/scripting/lua-bindings/auto/api/TileMapAtlas.lua +++ b/cocos/scripting/lua-bindings/auto/api/TileMapAtlas.lua @@ -28,11 +28,6 @@ -- @param #color3b_table color3b -- @param #vec2_table vec2 --------------------------------- --- @function [parent=#TileMapAtlas] setTGAInfo --- @param self --- @param #cc.sImageTGA simagetga - -------------------------------- -- @function [parent=#TileMapAtlas] create -- @param self diff --git a/cocos/scripting/lua-bindings/auto/api/TurnOffTiles.lua b/cocos/scripting/lua-bindings/auto/api/TurnOffTiles.lua index a1d1625c54..a81b36c9f9 100644 --- a/cocos/scripting/lua-bindings/auto/api/TurnOffTiles.lua +++ b/cocos/scripting/lua-bindings/auto/api/TurnOffTiles.lua @@ -13,12 +13,6 @@ -- @param self -- @param #vec2_table vec2 --------------------------------- --- @function [parent=#TurnOffTiles] shuffle --- @param self --- @param #unsigned int int --- @param #unsigned int int - -------------------------------- -- overload function: create(float, size_table, unsigned int) -- diff --git a/cocos/scripting/lua-bindings/auto/api/Widget.lua b/cocos/scripting/lua-bindings/auto/api/Widget.lua index a46441c338..90efd001e2 100644 --- a/cocos/scripting/lua-bindings/auto/api/Widget.lua +++ b/cocos/scripting/lua-bindings/auto/api/Widget.lua @@ -14,9 +14,9 @@ -- @return size_table#size_table ret (return value: size_table) -------------------------------- --- @function [parent=#Widget] getLeftBoundary +-- @function [parent=#Widget] setFlippedY -- @param self --- @return float#float ret (return value: float) +-- @param #bool bool -------------------------------- -- @function [parent=#Widget] setFlippedX @@ -53,11 +53,6 @@ -- @param self -- @param #ccui.Widget::PositionType positiontype --------------------------------- --- @function [parent=#Widget] getName --- @param self --- @return string#string ret (return value: string) - -------------------------------- -- @function [parent=#Widget] isIgnoreContentAdaptWithSize -- @param self @@ -96,10 +91,9 @@ -- @return float#float ret (return value: float) -------------------------------- --- @function [parent=#Widget] getChildByName +-- @function [parent=#Widget] ignoreContentAdaptWithSize -- @param self --- @param #string str --- @return Widget#Widget ret (return value: ccui.Widget) +-- @param #bool bool -------------------------------- -- @function [parent=#Widget] isEnabled @@ -147,9 +141,9 @@ -- @param #bool bool -------------------------------- --- @function [parent=#Widget] setFlippedY +-- @function [parent=#Widget] getLeftBoundary -- @param self --- @param #bool bool +-- @return float#float ret (return value: float) -------------------------------- -- @function [parent=#Widget] setEnabled @@ -166,11 +160,6 @@ -- @param self -- @param #ccui.Widget::BrightStyle brightstyle --------------------------------- --- @function [parent=#Widget] setName --- @param self --- @param #string str - -------------------------------- -- @function [parent=#Widget] setLayoutParameter -- @param self @@ -229,11 +218,6 @@ -- @param self -- @return Widget::SizeType#Widget::SizeType ret (return value: ccui.Widget::SizeType) --------------------------------- --- @function [parent=#Widget] ignoreContentAdaptWithSize --- @param self --- @param #bool bool - -------------------------------- -- @function [parent=#Widget] addTouchEventListener -- @param self diff --git a/cocos/scripting/lua-bindings/auto/api/lua_cocos2dx_auto_api.lua b/cocos/scripting/lua-bindings/auto/api/lua_cocos2dx_auto_api.lua index 002779db85..d33736bfff 100644 --- a/cocos/scripting/lua-bindings/auto/api/lua_cocos2dx_auto_api.lua +++ b/cocos/scripting/lua-bindings/auto/api/lua_cocos2dx_auto_api.lua @@ -736,11 +736,6 @@ -- @field [parent=#cc] DrawNode#DrawNode DrawNode preloaded module --------------------------------------------------------- --- the cc LabelTTF --- @field [parent=#cc] LabelTTF#LabelTTF LabelTTF preloaded module - - -------------------------------------------------------- -- the cc GLProgram -- @field [parent=#cc] GLProgram#GLProgram GLProgram preloaded module @@ -756,11 +751,6 @@ -- @field [parent=#cc] Label#Label Label preloaded module --------------------------------------------------------- --- the cc LabelBMFont --- @field [parent=#cc] LabelBMFont#LabelBMFont LabelBMFont preloaded module - - -------------------------------------------------------- -- the cc Layer -- @field [parent=#cc] Layer#Layer Layer preloaded module diff --git a/cocos/scripting/lua-bindings/auto/lua_cocos2dx_auto.cpp b/cocos/scripting/lua-bindings/auto/lua_cocos2dx_auto.cpp index 708cc163db..7972d6da81 100644 --- a/cocos/scripting/lua-bindings/auto/lua_cocos2dx_auto.cpp +++ b/cocos/scripting/lua-bindings/auto/lua_cocos2dx_auto.cpp @@ -2434,65 +2434,6 @@ int lua_cocos2dx_Texture2D_releaseGLTexture(lua_State* tolua_S) return 0; } -int lua_cocos2dx_Texture2D_updateWithData(lua_State* tolua_S) -{ - int argc = 0; - cocos2d::Texture2D* cobj = nullptr; - bool ok = true; - -#if COCOS2D_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if COCOS2D_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"cc.Texture2D",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocos2d::Texture2D*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Texture2D_updateWithData'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 5) - { - const void* arg0; - int arg1; - int arg2; - int arg3; - int arg4; - - #pragma warning NO CONVERSION TO NATIVE FOR void*; - - ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1); - - ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2); - - ok &= luaval_to_int32(tolua_S, 5,(int *)&arg3); - - ok &= luaval_to_int32(tolua_S, 6,(int *)&arg4); - if(!ok) - return 0; - bool ret = cobj->updateWithData(arg0, arg1, arg2, arg3, arg4); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "updateWithData",argc, 5); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Texture2D_updateWithData'.",&tolua_err); -#endif - - return 0; -} int lua_cocos2dx_Texture2D_hasPremultipliedAlpha(lua_State* tolua_S) { int argc = 0; @@ -2537,65 +2478,6 @@ int lua_cocos2dx_Texture2D_hasPremultipliedAlpha(lua_State* tolua_S) return 0; } -int lua_cocos2dx_Texture2D_initWithMipmaps(lua_State* tolua_S) -{ - int argc = 0; - cocos2d::Texture2D* cobj = nullptr; - bool ok = true; - -#if COCOS2D_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if COCOS2D_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"cc.Texture2D",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocos2d::Texture2D*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Texture2D_initWithMipmaps'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 5) - { - cocos2d::_MipmapInfo* arg0; - int arg1; - cocos2d::Texture2D::PixelFormat arg2; - int arg3; - int arg4; - - #pragma warning NO CONVERSION TO NATIVE FOR _MipmapInfo*; - - ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1); - - ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2); - - ok &= luaval_to_int32(tolua_S, 5,(int *)&arg3); - - ok &= luaval_to_int32(tolua_S, 6,(int *)&arg4); - if(!ok) - return 0; - bool ret = cobj->initWithMipmaps(arg0, arg1, arg2, arg3, arg4); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "initWithMipmaps",argc, 5); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Texture2D_initWithMipmaps'.",&tolua_err); -#endif - - return 0; -} int lua_cocos2dx_Texture2D_getPixelsHigh(lua_State* tolua_S) { int argc = 0; @@ -3700,9 +3582,7 @@ int lua_register_cocos2dx_Texture2D(lua_State* tolua_S) tolua_function(tolua_S,"initWithImage",lua_cocos2dx_Texture2D_initWithImage); tolua_function(tolua_S,"getMaxS",lua_cocos2dx_Texture2D_getMaxS); tolua_function(tolua_S,"releaseGLTexture",lua_cocos2dx_Texture2D_releaseGLTexture); - tolua_function(tolua_S,"updateWithData",lua_cocos2dx_Texture2D_updateWithData); tolua_function(tolua_S,"hasPremultipliedAlpha",lua_cocos2dx_Texture2D_hasPremultipliedAlpha); - tolua_function(tolua_S,"initWithMipmaps",lua_cocos2dx_Texture2D_initWithMipmaps); tolua_function(tolua_S,"getPixelsHigh",lua_cocos2dx_Texture2D_getPixelsHigh); tolua_function(tolua_S,"getBitsPerPixelForFormat",lua_cocos2dx_Texture2D_getBitsPerPixelForFormat); tolua_function(tolua_S,"getName",lua_cocos2dx_Texture2D_getName); @@ -4264,6 +4144,53 @@ int lua_cocos2dx_Node_isIgnoreAnchorPointForPosition(lua_State* tolua_S) return 0; } +int lua_cocos2dx_Node_getChildByName(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::Node* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_getChildByName'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + std::string arg0; + + ok &= luaval_to_std_string(tolua_S, 2,&arg0); + if(!ok) + return 0; + cocos2d::Node* ret = cobj->getChildByName(arg0); + object_to_luaval(tolua_S, "cc.Node",(cocos2d::Node*)ret); + return 1; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getChildByName",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_getChildByName'.",&tolua_err); +#endif + + return 0; +} int lua_cocos2dx_Node_updateDisplayedOpacity(lua_State* tolua_S) { int argc = 0; @@ -5411,6 +5338,50 @@ int lua_cocos2dx_Node_setParent(lua_State* tolua_S) return 0; } +int lua_cocos2dx_Node_getName(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::Node* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_getName'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + return 0; + std::string ret = cobj->getName(); + tolua_pushcppstring(tolua_S,ret); + return 1; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getName",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_getName'.",&tolua_err); +#endif + + return 0; +} int lua_cocos2dx_Node_getRotation3D(lua_State* tolua_S) { int argc = 0; @@ -7015,6 +6986,52 @@ int lua_cocos2dx_Node_getActionByTag(lua_State* tolua_S) return 0; } +int lua_cocos2dx_Node_setName(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::Node* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_setName'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + std::string arg0; + + ok &= luaval_to_std_string(tolua_S, 2,&arg0); + if(!ok) + return 0; + cobj->setName(arg0); + return 0; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "setName",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_setName'.",&tolua_err); +#endif + + return 0; +} int lua_cocos2dx_Node_setAdditionalTransform(lua_State* tolua_S) { int argc = 0; @@ -8816,6 +8833,59 @@ int lua_cocos2dx_Node_setUserObject(lua_State* tolua_S) return 0; } +int lua_cocos2dx_Node_enumerateChildren(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::Node* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_enumerateChildren'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 2) + { + std::string arg0; + std::function arg1; + + ok &= luaval_to_std_string(tolua_S, 2,&arg0); + + do { + // Lambda binding for lua is not supported. + assert(false); + } while(0) + ; + if(!ok) + return 0; + cobj->enumerateChildren(arg0, arg1); + return 0; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "enumerateChildren",argc, 2); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_enumerateChildren'.",&tolua_err); +#endif + + return 0; +} int lua_cocos2dx_Node_removeFromParentAndCleanup(lua_State* tolua_S) { int argc = 0; @@ -9457,6 +9527,7 @@ int lua_register_cocos2dx_Node(lua_State* tolua_S) tolua_function(tolua_S,"pause",lua_cocos2dx_Node_pause); tolua_function(tolua_S,"convertToWorldSpaceAR",lua_cocos2dx_Node_convertToWorldSpaceAR); tolua_function(tolua_S,"isIgnoreAnchorPointForPosition",lua_cocos2dx_Node_isIgnoreAnchorPointForPosition); + tolua_function(tolua_S,"getChildByName",lua_cocos2dx_Node_getChildByName); tolua_function(tolua_S,"updateDisplayedOpacity",lua_cocos2dx_Node_updateDisplayedOpacity); tolua_function(tolua_S,"setRotation",lua_cocos2dx_Node_setRotation); tolua_function(tolua_S,"setScaleZ",lua_cocos2dx_Node_setScaleZ); @@ -9482,6 +9553,7 @@ int lua_register_cocos2dx_Node(lua_State* tolua_S) tolua_function(tolua_S,"getNodeToParentAffineTransform",lua_cocos2dx_Node_getNodeToParentAffineTransform); tolua_function(tolua_S,"isCascadeOpacityEnabled",lua_cocos2dx_Node_isCascadeOpacityEnabled); tolua_function(tolua_S,"setParent",lua_cocos2dx_Node_setParent); + tolua_function(tolua_S,"getName",lua_cocos2dx_Node_getName); tolua_function(tolua_S,"getRotation3D",lua_cocos2dx_Node_getRotation3D); tolua_function(tolua_S,"getNodeToParentTransform",lua_cocos2dx_Node_getNodeToParentTransform); tolua_function(tolua_S,"convertTouchToNodeSpaceAR",lua_cocos2dx_Node_convertTouchToNodeSpaceAR); @@ -9517,6 +9589,7 @@ int lua_register_cocos2dx_Node(lua_State* tolua_S) tolua_function(tolua_S,"getSkewY",lua_cocos2dx_Node_getSkewY); tolua_function(tolua_S,"getDisplayedColor",lua_cocos2dx_Node_getDisplayedColor); tolua_function(tolua_S,"getActionByTag",lua_cocos2dx_Node_getActionByTag); + tolua_function(tolua_S,"setName",lua_cocos2dx_Node_setName); tolua_function(tolua_S,"setAdditionalTransform",lua_cocos2dx_Node_setAdditionalTransform); tolua_function(tolua_S,"getDisplayedOpacity",lua_cocos2dx_Node_getDisplayedOpacity); tolua_function(tolua_S,"getLocalZOrder",lua_cocos2dx_Node_getLocalZOrder); @@ -9556,6 +9629,7 @@ int lua_register_cocos2dx_Node(lua_State* tolua_S) tolua_function(tolua_S,"getGlobalZOrder",lua_cocos2dx_Node_getGlobalZOrder); tolua_function(tolua_S,"draw",lua_cocos2dx_Node_draw); tolua_function(tolua_S,"setUserObject",lua_cocos2dx_Node_setUserObject); + tolua_function(tolua_S,"enumerateChildren",lua_cocos2dx_Node_enumerateChildren); tolua_function(tolua_S,"removeFromParent",lua_cocos2dx_Node_removeFromParentAndCleanup); tolua_function(tolua_S,"setPosition3D",lua_cocos2dx_Node_setPosition3D); tolua_function(tolua_S,"update",lua_cocos2dx_Node_update); @@ -22434,58 +22508,6 @@ int lua_register_cocos2dx_ActionCamera(lua_State* tolua_S) return 1; } -int lua_cocos2dx_OrbitCamera_sphericalRadius(lua_State* tolua_S) -{ - int argc = 0; - cocos2d::OrbitCamera* cobj = nullptr; - bool ok = true; - -#if COCOS2D_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if COCOS2D_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"cc.OrbitCamera",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocos2d::OrbitCamera*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_OrbitCamera_sphericalRadius'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 3) - { - float* arg0; - float* arg1; - float* arg2; - - #pragma warning NO CONVERSION TO NATIVE FOR float*; - - #pragma warning NO CONVERSION TO NATIVE FOR float*; - - #pragma warning NO CONVERSION TO NATIVE FOR float*; - if(!ok) - return 0; - cobj->sphericalRadius(arg0, arg1, arg2); - return 0; - } - CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "sphericalRadius",argc, 3); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_OrbitCamera_sphericalRadius'.",&tolua_err); -#endif - - return 0; -} int lua_cocos2dx_OrbitCamera_create(lua_State* tolua_S) { int argc = 0; @@ -22543,7 +22565,6 @@ int lua_register_cocos2dx_OrbitCamera(lua_State* tolua_S) tolua_cclass(tolua_S,"OrbitCamera","cc.OrbitCamera","cc.ActionCamera",nullptr); tolua_beginmodule(tolua_S,"OrbitCamera"); - tolua_function(tolua_S,"sphericalRadius",lua_cocos2dx_OrbitCamera_sphericalRadius); tolua_function(tolua_S,"create", lua_cocos2dx_OrbitCamera_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::OrbitCamera).name(); @@ -28394,104 +28415,6 @@ int lua_register_cocos2dx_ShatteredTiles3D(lua_State* tolua_S) return 1; } -int lua_cocos2dx_ShuffleTiles_placeTile(lua_State* tolua_S) -{ - int argc = 0; - cocos2d::ShuffleTiles* cobj = nullptr; - bool ok = true; - -#if COCOS2D_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if COCOS2D_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"cc.ShuffleTiles",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocos2d::ShuffleTiles*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ShuffleTiles_placeTile'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 2) - { - cocos2d::Vec2 arg0; - cocos2d::Tile* arg1; - - ok &= luaval_to_vec2(tolua_S, 2, &arg0); - - #pragma warning NO CONVERSION TO NATIVE FOR Tile*; - if(!ok) - return 0; - cobj->placeTile(arg0, arg1); - return 0; - } - CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "placeTile",argc, 2); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ShuffleTiles_placeTile'.",&tolua_err); -#endif - - return 0; -} -int lua_cocos2dx_ShuffleTiles_shuffle(lua_State* tolua_S) -{ - int argc = 0; - cocos2d::ShuffleTiles* cobj = nullptr; - bool ok = true; - -#if COCOS2D_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if COCOS2D_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"cc.ShuffleTiles",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocos2d::ShuffleTiles*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ShuffleTiles_shuffle'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 2) - { - unsigned int* arg0; - unsigned int arg1; - - #pragma warning NO CONVERSION TO NATIVE FOR unsigned int*; - - ok &= luaval_to_uint32(tolua_S, 3,&arg1); - if(!ok) - return 0; - cobj->shuffle(arg0, arg1); - return 0; - } - CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "shuffle",argc, 2); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ShuffleTiles_shuffle'.",&tolua_err); -#endif - - return 0; -} int lua_cocos2dx_ShuffleTiles_getDelta(lua_State* tolua_S) { int argc = 0; @@ -28588,8 +28511,6 @@ int lua_register_cocos2dx_ShuffleTiles(lua_State* tolua_S) tolua_cclass(tolua_S,"ShuffleTiles","cc.ShuffleTiles","cc.TiledGrid3DAction",nullptr); tolua_beginmodule(tolua_S,"ShuffleTiles"); - tolua_function(tolua_S,"placeTile",lua_cocos2dx_ShuffleTiles_placeTile); - tolua_function(tolua_S,"shuffle",lua_cocos2dx_ShuffleTiles_shuffle); tolua_function(tolua_S,"getDelta",lua_cocos2dx_ShuffleTiles_getDelta); tolua_function(tolua_S,"create", lua_cocos2dx_ShuffleTiles_create); tolua_endmodule(tolua_S); @@ -29156,55 +29077,6 @@ int lua_cocos2dx_TurnOffTiles_turnOffTile(lua_State* tolua_S) return 0; } -int lua_cocos2dx_TurnOffTiles_shuffle(lua_State* tolua_S) -{ - int argc = 0; - cocos2d::TurnOffTiles* cobj = nullptr; - bool ok = true; - -#if COCOS2D_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if COCOS2D_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"cc.TurnOffTiles",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocos2d::TurnOffTiles*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TurnOffTiles_shuffle'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 2) - { - unsigned int* arg0; - unsigned int arg1; - - #pragma warning NO CONVERSION TO NATIVE FOR unsigned int*; - - ok &= luaval_to_uint32(tolua_S, 3,&arg1); - if(!ok) - return 0; - cobj->shuffle(arg0, arg1); - return 0; - } - CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "shuffle",argc, 2); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TurnOffTiles_shuffle'.",&tolua_err); -#endif - - return 0; -} int lua_cocos2dx_TurnOffTiles_create(lua_State* tolua_S) { int argc = 0; @@ -29276,7 +29148,6 @@ int lua_register_cocos2dx_TurnOffTiles(lua_State* tolua_S) tolua_beginmodule(tolua_S,"TurnOffTiles"); tolua_function(tolua_S,"turnOnTile",lua_cocos2dx_TurnOffTiles_turnOnTile); tolua_function(tolua_S,"turnOffTile",lua_cocos2dx_TurnOffTiles_turnOffTile); - tolua_function(tolua_S,"shuffle",lua_cocos2dx_TurnOffTiles_shuffle); tolua_function(tolua_S,"create", lua_cocos2dx_TurnOffTiles_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TurnOffTiles).name(); @@ -30765,1533 +30636,6 @@ int lua_register_cocos2dx_DrawNode(lua_State* tolua_S) return 1; } -int lua_cocos2dx_LabelTTF_enableShadow(lua_State* tolua_S) -{ - int argc = 0; - cocos2d::LabelTTF* cobj = nullptr; - bool ok = true; - -#if COCOS2D_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if COCOS2D_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"cc.LabelTTF",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocos2d::LabelTTF*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_LabelTTF_enableShadow'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 3) - { - cocos2d::Size arg0; - double arg1; - double arg2; - - ok &= luaval_to_size(tolua_S, 2, &arg0); - - ok &= luaval_to_number(tolua_S, 3,&arg1); - - ok &= luaval_to_number(tolua_S, 4,&arg2); - if(!ok) - return 0; - cobj->enableShadow(arg0, arg1, arg2); - return 0; - } - if (argc == 4) - { - cocos2d::Size arg0; - double arg1; - double arg2; - bool arg3; - - ok &= luaval_to_size(tolua_S, 2, &arg0); - - ok &= luaval_to_number(tolua_S, 3,&arg1); - - ok &= luaval_to_number(tolua_S, 4,&arg2); - - ok &= luaval_to_boolean(tolua_S, 5,&arg3); - if(!ok) - return 0; - cobj->enableShadow(arg0, arg1, arg2, arg3); - return 0; - } - CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "enableShadow",argc, 3); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_LabelTTF_enableShadow'.",&tolua_err); -#endif - - return 0; -} -int lua_cocos2dx_LabelTTF_setDimensions(lua_State* tolua_S) -{ - int argc = 0; - cocos2d::LabelTTF* cobj = nullptr; - bool ok = true; - -#if COCOS2D_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if COCOS2D_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"cc.LabelTTF",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocos2d::LabelTTF*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_LabelTTF_setDimensions'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - cocos2d::Size arg0; - - ok &= luaval_to_size(tolua_S, 2, &arg0); - if(!ok) - return 0; - cobj->setDimensions(arg0); - return 0; - } - CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "setDimensions",argc, 1); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_LabelTTF_setDimensions'.",&tolua_err); -#endif - - return 0; -} -int lua_cocos2dx_LabelTTF_getFontSize(lua_State* tolua_S) -{ - int argc = 0; - cocos2d::LabelTTF* cobj = nullptr; - bool ok = true; - -#if COCOS2D_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if COCOS2D_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"cc.LabelTTF",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocos2d::LabelTTF*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_LabelTTF_getFontSize'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - return 0; - double ret = cobj->getFontSize(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getFontSize",argc, 0); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_LabelTTF_getFontSize'.",&tolua_err); -#endif - - return 0; -} -int lua_cocos2dx_LabelTTF_getString(lua_State* tolua_S) -{ - int argc = 0; - cocos2d::LabelTTF* cobj = nullptr; - bool ok = true; - -#if COCOS2D_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if COCOS2D_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"cc.LabelTTF",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocos2d::LabelTTF*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_LabelTTF_getString'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - return 0; - const std::string& ret = cobj->getString(); - tolua_pushcppstring(tolua_S,ret); - return 1; - } - CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getString",argc, 0); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_LabelTTF_getString'.",&tolua_err); -#endif - - return 0; -} -int lua_cocos2dx_LabelTTF_setFlippedY(lua_State* tolua_S) -{ - int argc = 0; - cocos2d::LabelTTF* cobj = nullptr; - bool ok = true; - -#if COCOS2D_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if COCOS2D_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"cc.LabelTTF",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocos2d::LabelTTF*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_LabelTTF_setFlippedY'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - bool arg0; - - ok &= luaval_to_boolean(tolua_S, 2,&arg0); - if(!ok) - return 0; - cobj->setFlippedY(arg0); - return 0; - } - CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "setFlippedY",argc, 1); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_LabelTTF_setFlippedY'.",&tolua_err); -#endif - - return 0; -} -int lua_cocos2dx_LabelTTF_setFlippedX(lua_State* tolua_S) -{ - int argc = 0; - cocos2d::LabelTTF* cobj = nullptr; - bool ok = true; - -#if COCOS2D_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if COCOS2D_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"cc.LabelTTF",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocos2d::LabelTTF*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_LabelTTF_setFlippedX'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - bool arg0; - - ok &= luaval_to_boolean(tolua_S, 2,&arg0); - if(!ok) - return 0; - cobj->setFlippedX(arg0); - return 0; - } - CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "setFlippedX",argc, 1); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_LabelTTF_setFlippedX'.",&tolua_err); -#endif - - return 0; -} -int lua_cocos2dx_LabelTTF_setTextDefinition(lua_State* tolua_S) -{ - int argc = 0; - cocos2d::LabelTTF* cobj = nullptr; - bool ok = true; - -#if COCOS2D_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if COCOS2D_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"cc.LabelTTF",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocos2d::LabelTTF*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_LabelTTF_setTextDefinition'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - cocos2d::FontDefinition arg0; - - ok &= luaval_to_fontdefinition(tolua_S, 2, &arg0); - if(!ok) - return 0; - cobj->setTextDefinition(arg0); - return 0; - } - CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "setTextDefinition",argc, 1); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_LabelTTF_setTextDefinition'.",&tolua_err); -#endif - - return 0; -} -int lua_cocos2dx_LabelTTF_setFontName(lua_State* tolua_S) -{ - int argc = 0; - cocos2d::LabelTTF* cobj = nullptr; - bool ok = true; - -#if COCOS2D_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if COCOS2D_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"cc.LabelTTF",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocos2d::LabelTTF*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_LabelTTF_setFontName'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - std::string arg0; - - ok &= luaval_to_std_string(tolua_S, 2,&arg0); - if(!ok) - return 0; - cobj->setFontName(arg0); - return 0; - } - CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "setFontName",argc, 1); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_LabelTTF_setFontName'.",&tolua_err); -#endif - - return 0; -} -int lua_cocos2dx_LabelTTF_getHorizontalAlignment(lua_State* tolua_S) -{ - int argc = 0; - cocos2d::LabelTTF* cobj = nullptr; - bool ok = true; - -#if COCOS2D_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if COCOS2D_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"cc.LabelTTF",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocos2d::LabelTTF*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_LabelTTF_getHorizontalAlignment'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - return 0; - int ret = (int)cobj->getHorizontalAlignment(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getHorizontalAlignment",argc, 0); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_LabelTTF_getHorizontalAlignment'.",&tolua_err); -#endif - - return 0; -} -int lua_cocos2dx_LabelTTF_initWithStringAndTextDefinition(lua_State* tolua_S) -{ - int argc = 0; - cocos2d::LabelTTF* cobj = nullptr; - bool ok = true; - -#if COCOS2D_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if COCOS2D_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"cc.LabelTTF",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocos2d::LabelTTF*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_LabelTTF_initWithStringAndTextDefinition'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 2) - { - std::string arg0; - cocos2d::FontDefinition arg1; - - ok &= luaval_to_std_string(tolua_S, 2,&arg0); - - ok &= luaval_to_fontdefinition(tolua_S, 3, &arg1); - if(!ok) - return 0; - bool ret = cobj->initWithStringAndTextDefinition(arg0, arg1); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "initWithStringAndTextDefinition",argc, 2); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_LabelTTF_initWithStringAndTextDefinition'.",&tolua_err); -#endif - - return 0; -} -int lua_cocos2dx_LabelTTF_setString(lua_State* tolua_S) -{ - int argc = 0; - cocos2d::LabelTTF* cobj = nullptr; - bool ok = true; - -#if COCOS2D_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if COCOS2D_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"cc.LabelTTF",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocos2d::LabelTTF*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_LabelTTF_setString'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - std::string arg0; - - ok &= luaval_to_std_string(tolua_S, 2,&arg0); - if(!ok) - return 0; - cobj->setString(arg0); - return 0; - } - CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "setString",argc, 1); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_LabelTTF_setString'.",&tolua_err); -#endif - - return 0; -} -int lua_cocos2dx_LabelTTF_initWithString(lua_State* tolua_S) -{ - int argc = 0; - cocos2d::LabelTTF* cobj = nullptr; - bool ok = true; - -#if COCOS2D_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if COCOS2D_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"cc.LabelTTF",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocos2d::LabelTTF*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_LabelTTF_initWithString'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 3) - { - std::string arg0; - std::string arg1; - double arg2; - - ok &= luaval_to_std_string(tolua_S, 2,&arg0); - - ok &= luaval_to_std_string(tolua_S, 3,&arg1); - - ok &= luaval_to_number(tolua_S, 4,&arg2); - if(!ok) - return 0; - bool ret = cobj->initWithString(arg0, arg1, arg2); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - if (argc == 4) - { - std::string arg0; - std::string arg1; - double arg2; - cocos2d::Size arg3; - - ok &= luaval_to_std_string(tolua_S, 2,&arg0); - - ok &= luaval_to_std_string(tolua_S, 3,&arg1); - - ok &= luaval_to_number(tolua_S, 4,&arg2); - - ok &= luaval_to_size(tolua_S, 5, &arg3); - if(!ok) - return 0; - bool ret = cobj->initWithString(arg0, arg1, arg2, arg3); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - if (argc == 5) - { - std::string arg0; - std::string arg1; - double arg2; - cocos2d::Size arg3; - cocos2d::TextHAlignment arg4; - - ok &= luaval_to_std_string(tolua_S, 2,&arg0); - - ok &= luaval_to_std_string(tolua_S, 3,&arg1); - - ok &= luaval_to_number(tolua_S, 4,&arg2); - - ok &= luaval_to_size(tolua_S, 5, &arg3); - - ok &= luaval_to_int32(tolua_S, 6,(int *)&arg4); - if(!ok) - return 0; - bool ret = cobj->initWithString(arg0, arg1, arg2, arg3, arg4); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - if (argc == 6) - { - std::string arg0; - std::string arg1; - double arg2; - cocos2d::Size arg3; - cocos2d::TextHAlignment arg4; - cocos2d::TextVAlignment arg5; - - ok &= luaval_to_std_string(tolua_S, 2,&arg0); - - ok &= luaval_to_std_string(tolua_S, 3,&arg1); - - ok &= luaval_to_number(tolua_S, 4,&arg2); - - ok &= luaval_to_size(tolua_S, 5, &arg3); - - ok &= luaval_to_int32(tolua_S, 6,(int *)&arg4); - - ok &= luaval_to_int32(tolua_S, 7,(int *)&arg5); - if(!ok) - return 0; - bool ret = cobj->initWithString(arg0, arg1, arg2, arg3, arg4, arg5); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "initWithString",argc, 3); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_LabelTTF_initWithString'.",&tolua_err); -#endif - - return 0; -} -int lua_cocos2dx_LabelTTF_setFontFillColor(lua_State* tolua_S) -{ - int argc = 0; - cocos2d::LabelTTF* cobj = nullptr; - bool ok = true; - -#if COCOS2D_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if COCOS2D_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"cc.LabelTTF",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocos2d::LabelTTF*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_LabelTTF_setFontFillColor'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - cocos2d::Color3B arg0; - - ok &= luaval_to_color3b(tolua_S, 2, &arg0); - if(!ok) - return 0; - cobj->setFontFillColor(arg0); - return 0; - } - if (argc == 2) - { - cocos2d::Color3B arg0; - bool arg1; - - ok &= luaval_to_color3b(tolua_S, 2, &arg0); - - ok &= luaval_to_boolean(tolua_S, 3,&arg1); - if(!ok) - return 0; - cobj->setFontFillColor(arg0, arg1); - return 0; - } - CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "setFontFillColor",argc, 1); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_LabelTTF_setFontFillColor'.",&tolua_err); -#endif - - return 0; -} -int lua_cocos2dx_LabelTTF_getBlendFunc(lua_State* tolua_S) -{ - int argc = 0; - cocos2d::LabelTTF* cobj = nullptr; - bool ok = true; - -#if COCOS2D_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if COCOS2D_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"cc.LabelTTF",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocos2d::LabelTTF*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_LabelTTF_getBlendFunc'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - return 0; - const cocos2d::BlendFunc& ret = cobj->getBlendFunc(); - blendfunc_to_luaval(tolua_S, ret); - return 1; - } - CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getBlendFunc",argc, 0); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_LabelTTF_getBlendFunc'.",&tolua_err); -#endif - - return 0; -} -int lua_cocos2dx_LabelTTF_enableStroke(lua_State* tolua_S) -{ - int argc = 0; - cocos2d::LabelTTF* cobj = nullptr; - bool ok = true; - -#if COCOS2D_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if COCOS2D_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"cc.LabelTTF",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocos2d::LabelTTF*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_LabelTTF_enableStroke'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 2) - { - cocos2d::Color3B arg0; - double arg1; - - ok &= luaval_to_color3b(tolua_S, 2, &arg0); - - ok &= luaval_to_number(tolua_S, 3,&arg1); - if(!ok) - return 0; - cobj->enableStroke(arg0, arg1); - return 0; - } - if (argc == 3) - { - cocos2d::Color3B arg0; - double arg1; - bool arg2; - - ok &= luaval_to_color3b(tolua_S, 2, &arg0); - - ok &= luaval_to_number(tolua_S, 3,&arg1); - - ok &= luaval_to_boolean(tolua_S, 4,&arg2); - if(!ok) - return 0; - cobj->enableStroke(arg0, arg1, arg2); - return 0; - } - CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "enableStroke",argc, 2); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_LabelTTF_enableStroke'.",&tolua_err); -#endif - - return 0; -} -int lua_cocos2dx_LabelTTF_getDimensions(lua_State* tolua_S) -{ - int argc = 0; - cocos2d::LabelTTF* cobj = nullptr; - bool ok = true; - -#if COCOS2D_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if COCOS2D_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"cc.LabelTTF",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocos2d::LabelTTF*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_LabelTTF_getDimensions'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - return 0; - const cocos2d::Size& ret = cobj->getDimensions(); - size_to_luaval(tolua_S, ret); - return 1; - } - CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getDimensions",argc, 0); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_LabelTTF_getDimensions'.",&tolua_err); -#endif - - return 0; -} -int lua_cocos2dx_LabelTTF_setVerticalAlignment(lua_State* tolua_S) -{ - int argc = 0; - cocos2d::LabelTTF* cobj = nullptr; - bool ok = true; - -#if COCOS2D_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if COCOS2D_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"cc.LabelTTF",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocos2d::LabelTTF*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_LabelTTF_setVerticalAlignment'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - cocos2d::TextVAlignment arg0; - - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0); - if(!ok) - return 0; - cobj->setVerticalAlignment(arg0); - return 0; - } - CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "setVerticalAlignment",argc, 1); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_LabelTTF_setVerticalAlignment'.",&tolua_err); -#endif - - return 0; -} -int lua_cocos2dx_LabelTTF_setFontSize(lua_State* tolua_S) -{ - int argc = 0; - cocos2d::LabelTTF* cobj = nullptr; - bool ok = true; - -#if COCOS2D_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if COCOS2D_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"cc.LabelTTF",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocos2d::LabelTTF*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_LabelTTF_setFontSize'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0); - if(!ok) - return 0; - cobj->setFontSize(arg0); - return 0; - } - CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "setFontSize",argc, 1); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_LabelTTF_setFontSize'.",&tolua_err); -#endif - - return 0; -} -int lua_cocos2dx_LabelTTF_getVerticalAlignment(lua_State* tolua_S) -{ - int argc = 0; - cocos2d::LabelTTF* cobj = nullptr; - bool ok = true; - -#if COCOS2D_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if COCOS2D_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"cc.LabelTTF",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocos2d::LabelTTF*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_LabelTTF_getVerticalAlignment'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - return 0; - int ret = (int)cobj->getVerticalAlignment(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getVerticalAlignment",argc, 0); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_LabelTTF_getVerticalAlignment'.",&tolua_err); -#endif - - return 0; -} -int lua_cocos2dx_LabelTTF_getTextDefinition(lua_State* tolua_S) -{ - int argc = 0; - cocos2d::LabelTTF* cobj = nullptr; - bool ok = true; - -#if COCOS2D_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if COCOS2D_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"cc.LabelTTF",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocos2d::LabelTTF*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_LabelTTF_getTextDefinition'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - return 0; - const cocos2d::FontDefinition& ret = cobj->getTextDefinition(); - fontdefinition_to_luaval(tolua_S, ret); - return 1; - } - CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getTextDefinition",argc, 0); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_LabelTTF_getTextDefinition'.",&tolua_err); -#endif - - return 0; -} -int lua_cocos2dx_LabelTTF_setBlendFunc(lua_State* tolua_S) -{ - int argc = 0; - cocos2d::LabelTTF* cobj = nullptr; - bool ok = true; - -#if COCOS2D_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if COCOS2D_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"cc.LabelTTF",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocos2d::LabelTTF*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_LabelTTF_setBlendFunc'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - cocos2d::BlendFunc arg0; - - #pragma warning NO CONVERSION TO NATIVE FOR BlendFunc; - if(!ok) - return 0; - cobj->setBlendFunc(arg0); - return 0; - } - CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "setBlendFunc",argc, 1); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_LabelTTF_setBlendFunc'.",&tolua_err); -#endif - - return 0; -} -int lua_cocos2dx_LabelTTF_getFontName(lua_State* tolua_S) -{ - int argc = 0; - cocos2d::LabelTTF* cobj = nullptr; - bool ok = true; - -#if COCOS2D_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if COCOS2D_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"cc.LabelTTF",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocos2d::LabelTTF*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_LabelTTF_getFontName'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - return 0; - const std::string& ret = cobj->getFontName(); - tolua_pushcppstring(tolua_S,ret); - return 1; - } - CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getFontName",argc, 0); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_LabelTTF_getFontName'.",&tolua_err); -#endif - - return 0; -} -int lua_cocos2dx_LabelTTF_setHorizontalAlignment(lua_State* tolua_S) -{ - int argc = 0; - cocos2d::LabelTTF* cobj = nullptr; - bool ok = true; - -#if COCOS2D_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if COCOS2D_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"cc.LabelTTF",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocos2d::LabelTTF*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_LabelTTF_setHorizontalAlignment'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - cocos2d::TextHAlignment arg0; - - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0); - if(!ok) - return 0; - cobj->setHorizontalAlignment(arg0); - return 0; - } - CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "setHorizontalAlignment",argc, 1); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_LabelTTF_setHorizontalAlignment'.",&tolua_err); -#endif - - return 0; -} -int lua_cocos2dx_LabelTTF_disableShadow(lua_State* tolua_S) -{ - int argc = 0; - cocos2d::LabelTTF* cobj = nullptr; - bool ok = true; - -#if COCOS2D_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if COCOS2D_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"cc.LabelTTF",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocos2d::LabelTTF*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_LabelTTF_disableShadow'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - return 0; - cobj->disableShadow(); - return 0; - } - if (argc == 1) - { - bool arg0; - - ok &= luaval_to_boolean(tolua_S, 2,&arg0); - if(!ok) - return 0; - cobj->disableShadow(arg0); - return 0; - } - CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "disableShadow",argc, 0); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_LabelTTF_disableShadow'.",&tolua_err); -#endif - - return 0; -} -int lua_cocos2dx_LabelTTF_disableStroke(lua_State* tolua_S) -{ - int argc = 0; - cocos2d::LabelTTF* cobj = nullptr; - bool ok = true; - -#if COCOS2D_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if COCOS2D_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"cc.LabelTTF",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocos2d::LabelTTF*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_LabelTTF_disableStroke'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - return 0; - cobj->disableStroke(); - return 0; - } - if (argc == 1) - { - bool arg0; - - ok &= luaval_to_boolean(tolua_S, 2,&arg0); - if(!ok) - return 0; - cobj->disableStroke(arg0); - return 0; - } - CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "disableStroke",argc, 0); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_LabelTTF_disableStroke'.",&tolua_err); -#endif - - return 0; -} -int lua_cocos2dx_LabelTTF_create(lua_State* tolua_S) -{ - int argc = 0; - bool ok = true; -#if COCOS2D_DEBUG >= 1 - tolua_Error tolua_err; -#endif - -#if COCOS2D_DEBUG >= 1 - if (!tolua_isusertable(tolua_S,1,"cc.LabelTTF",0,&tolua_err)) goto tolua_lerror; -#endif - - argc = lua_gettop(tolua_S)-1; - - do - { - if (argc == 0) - { - cocos2d::LabelTTF* ret = cocos2d::LabelTTF::create(); - object_to_luaval(tolua_S, "cc.LabelTTF",(cocos2d::LabelTTF*)ret); - return 1; - } - } while (0); - ok = true; - do - { - if (argc == 3) - { - std::string arg0; - ok &= luaval_to_std_string(tolua_S, 2,&arg0); - if (!ok) { break; } - std::string arg1; - ok &= luaval_to_std_string(tolua_S, 3,&arg1); - if (!ok) { break; } - double arg2; - ok &= luaval_to_number(tolua_S, 4,&arg2); - if (!ok) { break; } - cocos2d::LabelTTF* ret = cocos2d::LabelTTF::create(arg0, arg1, arg2); - object_to_luaval(tolua_S, "cc.LabelTTF",(cocos2d::LabelTTF*)ret); - return 1; - } - } while (0); - ok = true; - do - { - if (argc == 4) - { - std::string arg0; - ok &= luaval_to_std_string(tolua_S, 2,&arg0); - if (!ok) { break; } - std::string arg1; - ok &= luaval_to_std_string(tolua_S, 3,&arg1); - if (!ok) { break; } - double arg2; - ok &= luaval_to_number(tolua_S, 4,&arg2); - if (!ok) { break; } - cocos2d::Size arg3; - ok &= luaval_to_size(tolua_S, 5, &arg3); - if (!ok) { break; } - cocos2d::LabelTTF* ret = cocos2d::LabelTTF::create(arg0, arg1, arg2, arg3); - object_to_luaval(tolua_S, "cc.LabelTTF",(cocos2d::LabelTTF*)ret); - return 1; - } - } while (0); - ok = true; - do - { - if (argc == 5) - { - std::string arg0; - ok &= luaval_to_std_string(tolua_S, 2,&arg0); - if (!ok) { break; } - std::string arg1; - ok &= luaval_to_std_string(tolua_S, 3,&arg1); - if (!ok) { break; } - double arg2; - ok &= luaval_to_number(tolua_S, 4,&arg2); - if (!ok) { break; } - cocos2d::Size arg3; - ok &= luaval_to_size(tolua_S, 5, &arg3); - if (!ok) { break; } - cocos2d::TextHAlignment arg4; - ok &= luaval_to_int32(tolua_S, 6,(int *)&arg4); - if (!ok) { break; } - cocos2d::LabelTTF* ret = cocos2d::LabelTTF::create(arg0, arg1, arg2, arg3, arg4); - object_to_luaval(tolua_S, "cc.LabelTTF",(cocos2d::LabelTTF*)ret); - return 1; - } - } while (0); - ok = true; - do - { - if (argc == 6) - { - std::string arg0; - ok &= luaval_to_std_string(tolua_S, 2,&arg0); - if (!ok) { break; } - std::string arg1; - ok &= luaval_to_std_string(tolua_S, 3,&arg1); - if (!ok) { break; } - double arg2; - ok &= luaval_to_number(tolua_S, 4,&arg2); - if (!ok) { break; } - cocos2d::Size arg3; - ok &= luaval_to_size(tolua_S, 5, &arg3); - if (!ok) { break; } - cocos2d::TextHAlignment arg4; - ok &= luaval_to_int32(tolua_S, 6,(int *)&arg4); - if (!ok) { break; } - cocos2d::TextVAlignment arg5; - ok &= luaval_to_int32(tolua_S, 7,(int *)&arg5); - if (!ok) { break; } - cocos2d::LabelTTF* ret = cocos2d::LabelTTF::create(arg0, arg1, arg2, arg3, arg4, arg5); - object_to_luaval(tolua_S, "cc.LabelTTF",(cocos2d::LabelTTF*)ret); - return 1; - } - } while (0); - ok = true; - CCLOG("%s has wrong number of arguments: %d, was expecting %d", "create",argc, 3); - return 0; -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_LabelTTF_create'.",&tolua_err); -#endif - return 0; -} -int lua_cocos2dx_LabelTTF_createWithFontDefinition(lua_State* tolua_S) -{ - int argc = 0; - bool ok = true; - -#if COCOS2D_DEBUG >= 1 - tolua_Error tolua_err; -#endif - -#if COCOS2D_DEBUG >= 1 - if (!tolua_isusertable(tolua_S,1,"cc.LabelTTF",0,&tolua_err)) goto tolua_lerror; -#endif - - argc = lua_gettop(tolua_S) - 1; - - if (argc == 2) - { - std::string arg0; - cocos2d::FontDefinition arg1; - ok &= luaval_to_std_string(tolua_S, 2,&arg0); - ok &= luaval_to_fontdefinition(tolua_S, 3, &arg1); - if(!ok) - return 0; - cocos2d::LabelTTF* ret = cocos2d::LabelTTF::createWithFontDefinition(arg0, arg1); - object_to_luaval(tolua_S, "cc.LabelTTF",(cocos2d::LabelTTF*)ret); - return 1; - } - CCLOG("%s has wrong number of arguments: %d, was expecting %d\n ", "createWithFontDefinition",argc, 2); - return 0; -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_LabelTTF_createWithFontDefinition'.",&tolua_err); -#endif - return 0; -} -int lua_cocos2dx_LabelTTF_constructor(lua_State* tolua_S) -{ - int argc = 0; - cocos2d::LabelTTF* cobj = nullptr; - bool ok = true; - -#if COCOS2D_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - return 0; - cobj = new cocos2d::LabelTTF(); - cobj->autorelease(); - int ID = (int)cobj->_ID ; - int* luaID = &cobj->_luaID ; - toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.LabelTTF"); - return 1; - } - CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "LabelTTF",argc, 0); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_LabelTTF_constructor'.",&tolua_err); -#endif - - return 0; -} - -static int lua_cocos2dx_LabelTTF_finalize(lua_State* tolua_S) -{ - printf("luabindings: finalizing LUA object (LabelTTF)"); - return 0; -} - -int lua_register_cocos2dx_LabelTTF(lua_State* tolua_S) -{ - tolua_usertype(tolua_S,"cc.LabelTTF"); - tolua_cclass(tolua_S,"LabelTTF","cc.LabelTTF","cc.Node",nullptr); - - tolua_beginmodule(tolua_S,"LabelTTF"); - tolua_function(tolua_S,"new",lua_cocos2dx_LabelTTF_constructor); - tolua_function(tolua_S,"enableShadow",lua_cocos2dx_LabelTTF_enableShadow); - tolua_function(tolua_S,"setDimensions",lua_cocos2dx_LabelTTF_setDimensions); - tolua_function(tolua_S,"getFontSize",lua_cocos2dx_LabelTTF_getFontSize); - tolua_function(tolua_S,"getString",lua_cocos2dx_LabelTTF_getString); - tolua_function(tolua_S,"setFlippedY",lua_cocos2dx_LabelTTF_setFlippedY); - tolua_function(tolua_S,"setFlippedX",lua_cocos2dx_LabelTTF_setFlippedX); - tolua_function(tolua_S,"setTextDefinition",lua_cocos2dx_LabelTTF_setTextDefinition); - tolua_function(tolua_S,"setFontName",lua_cocos2dx_LabelTTF_setFontName); - tolua_function(tolua_S,"getHorizontalAlignment",lua_cocos2dx_LabelTTF_getHorizontalAlignment); - tolua_function(tolua_S,"initWithStringAndTextDefinition",lua_cocos2dx_LabelTTF_initWithStringAndTextDefinition); - tolua_function(tolua_S,"setString",lua_cocos2dx_LabelTTF_setString); - tolua_function(tolua_S,"initWithString",lua_cocos2dx_LabelTTF_initWithString); - tolua_function(tolua_S,"setFontFillColor",lua_cocos2dx_LabelTTF_setFontFillColor); - tolua_function(tolua_S,"getBlendFunc",lua_cocos2dx_LabelTTF_getBlendFunc); - tolua_function(tolua_S,"enableStroke",lua_cocos2dx_LabelTTF_enableStroke); - tolua_function(tolua_S,"getDimensions",lua_cocos2dx_LabelTTF_getDimensions); - tolua_function(tolua_S,"setVerticalAlignment",lua_cocos2dx_LabelTTF_setVerticalAlignment); - tolua_function(tolua_S,"setFontSize",lua_cocos2dx_LabelTTF_setFontSize); - tolua_function(tolua_S,"getVerticalAlignment",lua_cocos2dx_LabelTTF_getVerticalAlignment); - tolua_function(tolua_S,"getTextDefinition",lua_cocos2dx_LabelTTF_getTextDefinition); - tolua_function(tolua_S,"setBlendFunc",lua_cocos2dx_LabelTTF_setBlendFunc); - tolua_function(tolua_S,"getFontName",lua_cocos2dx_LabelTTF_getFontName); - tolua_function(tolua_S,"setHorizontalAlignment",lua_cocos2dx_LabelTTF_setHorizontalAlignment); - tolua_function(tolua_S,"disableShadow",lua_cocos2dx_LabelTTF_disableShadow); - tolua_function(tolua_S,"disableStroke",lua_cocos2dx_LabelTTF_disableStroke); - tolua_function(tolua_S,"create", lua_cocos2dx_LabelTTF_create); - tolua_function(tolua_S,"createWithFontDefinition", lua_cocos2dx_LabelTTF_createWithFontDefinition); - tolua_endmodule(tolua_S); - std::string typeName = typeid(cocos2d::LabelTTF).name(); - g_luaType[typeName] = "cc.LabelTTF"; - g_typeCast["LabelTTF"] = "cc.LabelTTF"; - return 1; -} - int lua_cocos2dx_GLProgram_getFragmentShaderLog(lua_State* tolua_S) { int argc = 0; @@ -32386,58 +30730,6 @@ int lua_cocos2dx_GLProgram_initWithByteArrays(lua_State* tolua_S) return 0; } -int lua_cocos2dx_GLProgram_setUniformLocationWithMatrix4fv(lua_State* tolua_S) -{ - int argc = 0; - cocos2d::GLProgram* cobj = nullptr; - bool ok = true; - -#if COCOS2D_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if COCOS2D_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"cc.GLProgram",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocos2d::GLProgram*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLProgram_setUniformLocationWithMatrix4fv'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 3) - { - int arg0; - const float* arg1; - unsigned int arg2; - - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0); - - #pragma warning NO CONVERSION TO NATIVE FOR float*; - - ok &= luaval_to_uint32(tolua_S, 4,&arg2); - if(!ok) - return 0; - cobj->setUniformLocationWithMatrix4fv(arg0, arg1, arg2); - return 0; - } - CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "setUniformLocationWithMatrix4fv",argc, 3); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLProgram_setUniformLocationWithMatrix4fv'.",&tolua_err); -#endif - - return 0; -} int lua_cocos2dx_GLProgram_initWithFilenames(lua_State* tolua_S) { int argc = 0; @@ -32488,53 +30780,6 @@ int lua_cocos2dx_GLProgram_initWithFilenames(lua_State* tolua_S) return 0; } -int lua_cocos2dx_GLProgram_getUniformLocationForName(lua_State* tolua_S) -{ - int argc = 0; - cocos2d::GLProgram* cobj = nullptr; - bool ok = true; - -#if COCOS2D_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if COCOS2D_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"cc.GLProgram",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocos2d::GLProgram*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLProgram_getUniformLocationForName'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - const char* arg0; - - std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp); arg0 = arg0_tmp.c_str(); - if(!ok) - return 0; - int ret = cobj->getUniformLocationForName(arg0); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getUniformLocationForName",argc, 1); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLProgram_getUniformLocationForName'.",&tolua_err); -#endif - - return 0; -} int lua_cocos2dx_GLProgram_use(lua_State* tolua_S) { int argc = 0; @@ -32622,53 +30867,6 @@ int lua_cocos2dx_GLProgram_getVertexShaderLog(lua_State* tolua_S) return 0; } -int lua_cocos2dx_GLProgram_getUniform(lua_State* tolua_S) -{ - int argc = 0; - cocos2d::GLProgram* cobj = nullptr; - bool ok = true; - -#if COCOS2D_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if COCOS2D_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"cc.GLProgram",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocos2d::GLProgram*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLProgram_getUniform'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - std::string arg0; - - ok &= luaval_to_std_string(tolua_S, 2,&arg0); - if(!ok) - return 0; - cocos2d::Uniform* ret = cobj->getUniform(arg0); - #pragma warning NO CONVERSION FROM NATIVE FOR Uniform*; - return 1; - } - CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getUniform",argc, 1); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLProgram_getUniform'.",&tolua_err); -#endif - - return 0; -} int lua_cocos2dx_GLProgram_setUniformsForBuiltins(lua_State* tolua_S) { int argc = 0; @@ -32718,113 +30916,6 @@ int lua_cocos2dx_GLProgram_setUniformsForBuiltins(lua_State* tolua_S) return 0; } -int lua_cocos2dx_GLProgram_setUniformLocationWith3i(lua_State* tolua_S) -{ - int argc = 0; - cocos2d::GLProgram* cobj = nullptr; - bool ok = true; - -#if COCOS2D_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if COCOS2D_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"cc.GLProgram",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocos2d::GLProgram*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLProgram_setUniformLocationWith3i'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 4) - { - int arg0; - int arg1; - int arg2; - int arg3; - - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0); - - ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1); - - ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2); - - ok &= luaval_to_int32(tolua_S, 5,(int *)&arg3); - if(!ok) - return 0; - cobj->setUniformLocationWith3i(arg0, arg1, arg2, arg3); - return 0; - } - CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "setUniformLocationWith3i",argc, 4); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLProgram_setUniformLocationWith3i'.",&tolua_err); -#endif - - return 0; -} -int lua_cocos2dx_GLProgram_setUniformLocationWith3iv(lua_State* tolua_S) -{ - int argc = 0; - cocos2d::GLProgram* cobj = nullptr; - bool ok = true; - -#if COCOS2D_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if COCOS2D_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"cc.GLProgram",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocos2d::GLProgram*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLProgram_setUniformLocationWith3iv'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 3) - { - int arg0; - int* arg1; - unsigned int arg2; - - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0); - - #pragma warning NO CONVERSION TO NATIVE FOR int*; - - ok &= luaval_to_uint32(tolua_S, 4,&arg2); - if(!ok) - return 0; - cobj->setUniformLocationWith3iv(arg0, arg1, arg2); - return 0; - } - CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "setUniformLocationWith3iv",argc, 3); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLProgram_setUniformLocationWith3iv'.",&tolua_err); -#endif - - return 0; -} int lua_cocos2dx_GLProgram_updateUniforms(lua_State* tolua_S) { int argc = 0; @@ -32868,105 +30959,6 @@ int lua_cocos2dx_GLProgram_updateUniforms(lua_State* tolua_S) return 0; } -int lua_cocos2dx_GLProgram_setUniformLocationWith4iv(lua_State* tolua_S) -{ - int argc = 0; - cocos2d::GLProgram* cobj = nullptr; - bool ok = true; - -#if COCOS2D_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if COCOS2D_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"cc.GLProgram",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocos2d::GLProgram*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLProgram_setUniformLocationWith4iv'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 3) - { - int arg0; - int* arg1; - unsigned int arg2; - - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0); - - #pragma warning NO CONVERSION TO NATIVE FOR int*; - - ok &= luaval_to_uint32(tolua_S, 4,&arg2); - if(!ok) - return 0; - cobj->setUniformLocationWith4iv(arg0, arg1, arg2); - return 0; - } - CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "setUniformLocationWith4iv",argc, 3); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLProgram_setUniformLocationWith4iv'.",&tolua_err); -#endif - - return 0; -} -int lua_cocos2dx_GLProgram_getUniformLocation(lua_State* tolua_S) -{ - int argc = 0; - cocos2d::GLProgram* cobj = nullptr; - bool ok = true; - -#if COCOS2D_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if COCOS2D_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"cc.GLProgram",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocos2d::GLProgram*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLProgram_getUniformLocation'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - std::string arg0; - - ok &= luaval_to_std_string(tolua_S, 2,&arg0); - if(!ok) - return 0; - int ret = cobj->getUniformLocation(arg0); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getUniformLocation",argc, 1); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLProgram_getUniformLocation'.",&tolua_err); -#endif - - return 0; -} int lua_cocos2dx_GLProgram_setUniformLocationWith1i(lua_State* tolua_S) { int argc = 0; @@ -33016,110 +31008,6 @@ int lua_cocos2dx_GLProgram_setUniformLocationWith1i(lua_State* tolua_S) return 0; } -int lua_cocos2dx_GLProgram_setUniformLocationWith2iv(lua_State* tolua_S) -{ - int argc = 0; - cocos2d::GLProgram* cobj = nullptr; - bool ok = true; - -#if COCOS2D_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if COCOS2D_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"cc.GLProgram",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocos2d::GLProgram*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLProgram_setUniformLocationWith2iv'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 3) - { - int arg0; - int* arg1; - unsigned int arg2; - - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0); - - #pragma warning NO CONVERSION TO NATIVE FOR int*; - - ok &= luaval_to_uint32(tolua_S, 4,&arg2); - if(!ok) - return 0; - cobj->setUniformLocationWith2iv(arg0, arg1, arg2); - return 0; - } - CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "setUniformLocationWith2iv",argc, 3); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLProgram_setUniformLocationWith2iv'.",&tolua_err); -#endif - - return 0; -} -int lua_cocos2dx_GLProgram_setUniformLocationWithMatrix3fv(lua_State* tolua_S) -{ - int argc = 0; - cocos2d::GLProgram* cobj = nullptr; - bool ok = true; - -#if COCOS2D_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if COCOS2D_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"cc.GLProgram",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocos2d::GLProgram*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLProgram_setUniformLocationWithMatrix3fv'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 3) - { - int arg0; - const float* arg1; - unsigned int arg2; - - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0); - - #pragma warning NO CONVERSION TO NATIVE FOR float*; - - ok &= luaval_to_uint32(tolua_S, 4,&arg2); - if(!ok) - return 0; - cobj->setUniformLocationWithMatrix3fv(arg0, arg1, arg2); - return 0; - } - CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "setUniformLocationWithMatrix3fv",argc, 3); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLProgram_setUniformLocationWithMatrix3fv'.",&tolua_err); -#endif - - return 0; -} int lua_cocos2dx_GLProgram_reset(lua_State* tolua_S) { int argc = 0; @@ -33259,163 +31147,6 @@ int lua_cocos2dx_GLProgram_getAttribLocation(lua_State* tolua_S) return 0; } -int lua_cocos2dx_GLProgram_getVertexAttrib(lua_State* tolua_S) -{ - int argc = 0; - cocos2d::GLProgram* cobj = nullptr; - bool ok = true; - -#if COCOS2D_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if COCOS2D_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"cc.GLProgram",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocos2d::GLProgram*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLProgram_getVertexAttrib'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - std::string arg0; - - ok &= luaval_to_std_string(tolua_S, 2,&arg0); - if(!ok) - return 0; - cocos2d::VertexAttrib* ret = cobj->getVertexAttrib(arg0); - #pragma warning NO CONVERSION FROM NATIVE FOR VertexAttrib*; - return 1; - } - CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getVertexAttrib",argc, 1); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLProgram_getVertexAttrib'.",&tolua_err); -#endif - - return 0; -} -int lua_cocos2dx_GLProgram_setUniformLocationWithMatrix2fv(lua_State* tolua_S) -{ - int argc = 0; - cocos2d::GLProgram* cobj = nullptr; - bool ok = true; - -#if COCOS2D_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if COCOS2D_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"cc.GLProgram",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocos2d::GLProgram*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLProgram_setUniformLocationWithMatrix2fv'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 3) - { - int arg0; - const float* arg1; - unsigned int arg2; - - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0); - - #pragma warning NO CONVERSION TO NATIVE FOR float*; - - ok &= luaval_to_uint32(tolua_S, 4,&arg2); - if(!ok) - return 0; - cobj->setUniformLocationWithMatrix2fv(arg0, arg1, arg2); - return 0; - } - CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "setUniformLocationWithMatrix2fv",argc, 3); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLProgram_setUniformLocationWithMatrix2fv'.",&tolua_err); -#endif - - return 0; -} -int lua_cocos2dx_GLProgram_setUniformLocationWith4i(lua_State* tolua_S) -{ - int argc = 0; - cocos2d::GLProgram* cobj = nullptr; - bool ok = true; - -#if COCOS2D_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if COCOS2D_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"cc.GLProgram",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocos2d::GLProgram*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLProgram_setUniformLocationWith4i'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 5) - { - int arg0; - int arg1; - int arg2; - int arg3; - int arg4; - - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0); - - ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1); - - ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2); - - ok &= luaval_to_int32(tolua_S, 5,(int *)&arg3); - - ok &= luaval_to_int32(tolua_S, 6,(int *)&arg4); - if(!ok) - return 0; - cobj->setUniformLocationWith4i(arg0, arg1, arg2, arg3, arg4); - return 0; - } - CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "setUniformLocationWith4i",argc, 5); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLProgram_setUniformLocationWith4i'.",&tolua_err); -#endif - - return 0; -} int lua_cocos2dx_GLProgram_link(lua_State* tolua_S) { int argc = 0; @@ -33460,58 +31191,6 @@ int lua_cocos2dx_GLProgram_link(lua_State* tolua_S) return 0; } -int lua_cocos2dx_GLProgram_setUniformLocationWith2i(lua_State* tolua_S) -{ - int argc = 0; - cocos2d::GLProgram* cobj = nullptr; - bool ok = true; - -#if COCOS2D_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if COCOS2D_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"cc.GLProgram",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocos2d::GLProgram*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLProgram_setUniformLocationWith2i'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 3) - { - int arg0; - int arg1; - int arg2; - - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0); - - ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1); - - ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2); - if(!ok) - return 0; - cobj->setUniformLocationWith2i(arg0, arg1, arg2); - return 0; - } - CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "setUniformLocationWith2i",argc, 3); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLProgram_setUniformLocationWith2i'.",&tolua_err); -#endif - - return 0; -} int lua_cocos2dx_GLProgram_createWithByteArrays(lua_State* tolua_S) { int argc = 0; @@ -33631,29 +31310,16 @@ int lua_register_cocos2dx_GLProgram(lua_State* tolua_S) tolua_function(tolua_S,"new",lua_cocos2dx_GLProgram_constructor); tolua_function(tolua_S,"getFragmentShaderLog",lua_cocos2dx_GLProgram_getFragmentShaderLog); tolua_function(tolua_S,"initWithByteArrays",lua_cocos2dx_GLProgram_initWithByteArrays); - tolua_function(tolua_S,"setUniformLocationWithMatrix4fv",lua_cocos2dx_GLProgram_setUniformLocationWithMatrix4fv); tolua_function(tolua_S,"initWithFilenames",lua_cocos2dx_GLProgram_initWithFilenames); - tolua_function(tolua_S,"getUniformLocationForName",lua_cocos2dx_GLProgram_getUniformLocationForName); tolua_function(tolua_S,"use",lua_cocos2dx_GLProgram_use); tolua_function(tolua_S,"getVertexShaderLog",lua_cocos2dx_GLProgram_getVertexShaderLog); - tolua_function(tolua_S,"getUniform",lua_cocos2dx_GLProgram_getUniform); tolua_function(tolua_S,"setUniformsForBuiltins",lua_cocos2dx_GLProgram_setUniformsForBuiltins); - tolua_function(tolua_S,"setUniformLocationWith3i",lua_cocos2dx_GLProgram_setUniformLocationWith3i); - tolua_function(tolua_S,"setUniformLocationWith3iv",lua_cocos2dx_GLProgram_setUniformLocationWith3iv); tolua_function(tolua_S,"updateUniforms",lua_cocos2dx_GLProgram_updateUniforms); - tolua_function(tolua_S,"setUniformLocationWith4iv",lua_cocos2dx_GLProgram_setUniformLocationWith4iv); - tolua_function(tolua_S,"getUniformLocation",lua_cocos2dx_GLProgram_getUniformLocation); tolua_function(tolua_S,"setUniformLocationI32",lua_cocos2dx_GLProgram_setUniformLocationWith1i); - tolua_function(tolua_S,"setUniformLocationWith2iv",lua_cocos2dx_GLProgram_setUniformLocationWith2iv); - tolua_function(tolua_S,"setUniformLocationWithMatrix3fv",lua_cocos2dx_GLProgram_setUniformLocationWithMatrix3fv); tolua_function(tolua_S,"reset",lua_cocos2dx_GLProgram_reset); tolua_function(tolua_S,"bindAttribLocation",lua_cocos2dx_GLProgram_bindAttribLocation); tolua_function(tolua_S,"getAttribLocation",lua_cocos2dx_GLProgram_getAttribLocation); - tolua_function(tolua_S,"getVertexAttrib",lua_cocos2dx_GLProgram_getVertexAttrib); - tolua_function(tolua_S,"setUniformLocationWithMatrix2fv",lua_cocos2dx_GLProgram_setUniformLocationWithMatrix2fv); - tolua_function(tolua_S,"setUniformLocationWith4i",lua_cocos2dx_GLProgram_setUniformLocationWith4i); tolua_function(tolua_S,"link",lua_cocos2dx_GLProgram_link); - tolua_function(tolua_S,"setUniformLocationWith2i",lua_cocos2dx_GLProgram_setUniformLocationWith2i); tolua_function(tolua_S,"createWithByteArrays", lua_cocos2dx_GLProgram_createWithByteArrays); tolua_function(tolua_S,"createWithFilenames", lua_cocos2dx_GLProgram_createWithFilenames); tolua_endmodule(tolua_S); @@ -36812,856 +34478,6 @@ int lua_register_cocos2dx_Label(lua_State* tolua_S) return 1; } -int lua_cocos2dx_LabelBMFont_setLineBreakWithoutSpace(lua_State* tolua_S) -{ - int argc = 0; - cocos2d::LabelBMFont* cobj = nullptr; - bool ok = true; - -#if COCOS2D_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if COCOS2D_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"cc.LabelBMFont",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocos2d::LabelBMFont*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_LabelBMFont_setLineBreakWithoutSpace'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - bool arg0; - - ok &= luaval_to_boolean(tolua_S, 2,&arg0); - if(!ok) - return 0; - cobj->setLineBreakWithoutSpace(arg0); - return 0; - } - CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "setLineBreakWithoutSpace",argc, 1); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_LabelBMFont_setLineBreakWithoutSpace'.",&tolua_err); -#endif - - return 0; -} -int lua_cocos2dx_LabelBMFont_getBlendFunc(lua_State* tolua_S) -{ - int argc = 0; - cocos2d::LabelBMFont* cobj = nullptr; - bool ok = true; - -#if COCOS2D_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if COCOS2D_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"cc.LabelBMFont",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocos2d::LabelBMFont*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_LabelBMFont_getBlendFunc'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - return 0; - const cocos2d::BlendFunc& ret = cobj->getBlendFunc(); - blendfunc_to_luaval(tolua_S, ret); - return 1; - } - CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getBlendFunc",argc, 0); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_LabelBMFont_getBlendFunc'.",&tolua_err); -#endif - - return 0; -} -int lua_cocos2dx_LabelBMFont_isOpacityModifyRGB(lua_State* tolua_S) -{ - int argc = 0; - cocos2d::LabelBMFont* cobj = nullptr; - bool ok = true; - -#if COCOS2D_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if COCOS2D_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"cc.LabelBMFont",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocos2d::LabelBMFont*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_LabelBMFont_isOpacityModifyRGB'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - return 0; - bool ret = cobj->isOpacityModifyRGB(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "isOpacityModifyRGB",argc, 0); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_LabelBMFont_isOpacityModifyRGB'.",&tolua_err); -#endif - - return 0; -} -int lua_cocos2dx_LabelBMFont_getLetter(lua_State* tolua_S) -{ - int argc = 0; - cocos2d::LabelBMFont* cobj = nullptr; - bool ok = true; - -#if COCOS2D_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if COCOS2D_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"cc.LabelBMFont",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocos2d::LabelBMFont*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_LabelBMFont_getLetter'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - int arg0; - - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0); - if(!ok) - return 0; - cocos2d::Sprite* ret = cobj->getLetter(arg0); - object_to_luaval(tolua_S, "cc.Sprite",(cocos2d::Sprite*)ret); - return 1; - } - CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getLetter",argc, 1); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_LabelBMFont_getLetter'.",&tolua_err); -#endif - - return 0; -} -int lua_cocos2dx_LabelBMFont_getString(lua_State* tolua_S) -{ - int argc = 0; - cocos2d::LabelBMFont* cobj = nullptr; - bool ok = true; - -#if COCOS2D_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if COCOS2D_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"cc.LabelBMFont",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocos2d::LabelBMFont*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_LabelBMFont_getString'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - return 0; - const std::string& ret = cobj->getString(); - tolua_pushcppstring(tolua_S,ret); - return 1; - } - CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getString",argc, 0); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_LabelBMFont_getString'.",&tolua_err); -#endif - - return 0; -} -int lua_cocos2dx_LabelBMFont_setBlendFunc(lua_State* tolua_S) -{ - int argc = 0; - cocos2d::LabelBMFont* cobj = nullptr; - bool ok = true; - -#if COCOS2D_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if COCOS2D_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"cc.LabelBMFont",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocos2d::LabelBMFont*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_LabelBMFont_setBlendFunc'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - cocos2d::BlendFunc arg0; - - #pragma warning NO CONVERSION TO NATIVE FOR BlendFunc; - if(!ok) - return 0; - cobj->setBlendFunc(arg0); - return 0; - } - CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "setBlendFunc",argc, 1); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_LabelBMFont_setBlendFunc'.",&tolua_err); -#endif - - return 0; -} -int lua_cocos2dx_LabelBMFont_setString(lua_State* tolua_S) -{ - int argc = 0; - cocos2d::LabelBMFont* cobj = nullptr; - bool ok = true; - -#if COCOS2D_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if COCOS2D_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"cc.LabelBMFont",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocos2d::LabelBMFont*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_LabelBMFont_setString'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - std::string arg0; - - ok &= luaval_to_std_string(tolua_S, 2,&arg0); - if(!ok) - return 0; - cobj->setString(arg0); - return 0; - } - CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "setString",argc, 1); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_LabelBMFont_setString'.",&tolua_err); -#endif - - return 0; -} -int lua_cocos2dx_LabelBMFont_initWithString(lua_State* tolua_S) -{ - int argc = 0; - cocos2d::LabelBMFont* cobj = nullptr; - bool ok = true; - -#if COCOS2D_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if COCOS2D_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"cc.LabelBMFont",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocos2d::LabelBMFont*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_LabelBMFont_initWithString'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 2) - { - std::string arg0; - std::string arg1; - - ok &= luaval_to_std_string(tolua_S, 2,&arg0); - - ok &= luaval_to_std_string(tolua_S, 3,&arg1); - if(!ok) - return 0; - bool ret = cobj->initWithString(arg0, arg1); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - if (argc == 3) - { - std::string arg0; - std::string arg1; - double arg2; - - ok &= luaval_to_std_string(tolua_S, 2,&arg0); - - ok &= luaval_to_std_string(tolua_S, 3,&arg1); - - ok &= luaval_to_number(tolua_S, 4,&arg2); - if(!ok) - return 0; - bool ret = cobj->initWithString(arg0, arg1, arg2); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - if (argc == 4) - { - std::string arg0; - std::string arg1; - double arg2; - cocos2d::TextHAlignment arg3; - - ok &= luaval_to_std_string(tolua_S, 2,&arg0); - - ok &= luaval_to_std_string(tolua_S, 3,&arg1); - - ok &= luaval_to_number(tolua_S, 4,&arg2); - - ok &= luaval_to_int32(tolua_S, 5,(int *)&arg3); - if(!ok) - return 0; - bool ret = cobj->initWithString(arg0, arg1, arg2, arg3); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - if (argc == 5) - { - std::string arg0; - std::string arg1; - double arg2; - cocos2d::TextHAlignment arg3; - cocos2d::Vec2 arg4; - - ok &= luaval_to_std_string(tolua_S, 2,&arg0); - - ok &= luaval_to_std_string(tolua_S, 3,&arg1); - - ok &= luaval_to_number(tolua_S, 4,&arg2); - - ok &= luaval_to_int32(tolua_S, 5,(int *)&arg3); - - ok &= luaval_to_vec2(tolua_S, 6, &arg4); - if(!ok) - return 0; - bool ret = cobj->initWithString(arg0, arg1, arg2, arg3, arg4); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "initWithString",argc, 2); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_LabelBMFont_initWithString'.",&tolua_err); -#endif - - return 0; -} -int lua_cocos2dx_LabelBMFont_setOpacityModifyRGB(lua_State* tolua_S) -{ - int argc = 0; - cocos2d::LabelBMFont* cobj = nullptr; - bool ok = true; - -#if COCOS2D_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if COCOS2D_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"cc.LabelBMFont",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocos2d::LabelBMFont*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_LabelBMFont_setOpacityModifyRGB'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - bool arg0; - - ok &= luaval_to_boolean(tolua_S, 2,&arg0); - if(!ok) - return 0; - cobj->setOpacityModifyRGB(arg0); - return 0; - } - CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "setOpacityModifyRGB",argc, 1); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_LabelBMFont_setOpacityModifyRGB'.",&tolua_err); -#endif - - return 0; -} -int lua_cocos2dx_LabelBMFont_getFntFile(lua_State* tolua_S) -{ - int argc = 0; - cocos2d::LabelBMFont* cobj = nullptr; - bool ok = true; - -#if COCOS2D_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if COCOS2D_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"cc.LabelBMFont",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocos2d::LabelBMFont*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_LabelBMFont_getFntFile'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - return 0; - const std::string& ret = cobj->getFntFile(); - tolua_pushcppstring(tolua_S,ret); - return 1; - } - CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getFntFile",argc, 0); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_LabelBMFont_getFntFile'.",&tolua_err); -#endif - - return 0; -} -int lua_cocos2dx_LabelBMFont_setFntFile(lua_State* tolua_S) -{ - int argc = 0; - cocos2d::LabelBMFont* cobj = nullptr; - bool ok = true; - -#if COCOS2D_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if COCOS2D_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"cc.LabelBMFont",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocos2d::LabelBMFont*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_LabelBMFont_setFntFile'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - std::string arg0; - - ok &= luaval_to_std_string(tolua_S, 2,&arg0); - if(!ok) - return 0; - cobj->setFntFile(arg0); - return 0; - } - if (argc == 2) - { - std::string arg0; - cocos2d::Vec2 arg1; - - ok &= luaval_to_std_string(tolua_S, 2,&arg0); - - ok &= luaval_to_vec2(tolua_S, 3, &arg1); - if(!ok) - return 0; - cobj->setFntFile(arg0, arg1); - return 0; - } - CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "setFntFile",argc, 1); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_LabelBMFont_setFntFile'.",&tolua_err); -#endif - - return 0; -} -int lua_cocos2dx_LabelBMFont_setAlignment(lua_State* tolua_S) -{ - int argc = 0; - cocos2d::LabelBMFont* cobj = nullptr; - bool ok = true; - -#if COCOS2D_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if COCOS2D_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"cc.LabelBMFont",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocos2d::LabelBMFont*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_LabelBMFont_setAlignment'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - cocos2d::TextHAlignment arg0; - - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0); - if(!ok) - return 0; - cobj->setAlignment(arg0); - return 0; - } - CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "setAlignment",argc, 1); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_LabelBMFont_setAlignment'.",&tolua_err); -#endif - - return 0; -} -int lua_cocos2dx_LabelBMFont_setWidth(lua_State* tolua_S) -{ - int argc = 0; - cocos2d::LabelBMFont* cobj = nullptr; - bool ok = true; - -#if COCOS2D_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if COCOS2D_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"cc.LabelBMFont",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocos2d::LabelBMFont*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_LabelBMFont_setWidth'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0); - if(!ok) - return 0; - cobj->setWidth(arg0); - return 0; - } - CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "setWidth",argc, 1); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_LabelBMFont_setWidth'.",&tolua_err); -#endif - - return 0; -} -int lua_cocos2dx_LabelBMFont_create(lua_State* tolua_S) -{ - int argc = 0; - bool ok = true; -#if COCOS2D_DEBUG >= 1 - tolua_Error tolua_err; -#endif - -#if COCOS2D_DEBUG >= 1 - if (!tolua_isusertable(tolua_S,1,"cc.LabelBMFont",0,&tolua_err)) goto tolua_lerror; -#endif - - argc = lua_gettop(tolua_S)-1; - - do - { - if (argc == 0) - { - cocos2d::LabelBMFont* ret = cocos2d::LabelBMFont::create(); - object_to_luaval(tolua_S, "cc.LabelBMFont",(cocos2d::LabelBMFont*)ret); - return 1; - } - } while (0); - ok = true; - do - { - if (argc == 2) - { - std::string arg0; - ok &= luaval_to_std_string(tolua_S, 2,&arg0); - if (!ok) { break; } - std::string arg1; - ok &= luaval_to_std_string(tolua_S, 3,&arg1); - if (!ok) { break; } - cocos2d::LabelBMFont* ret = cocos2d::LabelBMFont::create(arg0, arg1); - object_to_luaval(tolua_S, "cc.LabelBMFont",(cocos2d::LabelBMFont*)ret); - return 1; - } - } while (0); - ok = true; - do - { - if (argc == 3) - { - std::string arg0; - ok &= luaval_to_std_string(tolua_S, 2,&arg0); - if (!ok) { break; } - std::string arg1; - ok &= luaval_to_std_string(tolua_S, 3,&arg1); - if (!ok) { break; } - double arg2; - ok &= luaval_to_number(tolua_S, 4,&arg2); - if (!ok) { break; } - cocos2d::LabelBMFont* ret = cocos2d::LabelBMFont::create(arg0, arg1, arg2); - object_to_luaval(tolua_S, "cc.LabelBMFont",(cocos2d::LabelBMFont*)ret); - return 1; - } - } while (0); - ok = true; - do - { - if (argc == 4) - { - std::string arg0; - ok &= luaval_to_std_string(tolua_S, 2,&arg0); - if (!ok) { break; } - std::string arg1; - ok &= luaval_to_std_string(tolua_S, 3,&arg1); - if (!ok) { break; } - double arg2; - ok &= luaval_to_number(tolua_S, 4,&arg2); - if (!ok) { break; } - cocos2d::TextHAlignment arg3; - ok &= luaval_to_int32(tolua_S, 5,(int *)&arg3); - if (!ok) { break; } - cocos2d::LabelBMFont* ret = cocos2d::LabelBMFont::create(arg0, arg1, arg2, arg3); - object_to_luaval(tolua_S, "cc.LabelBMFont",(cocos2d::LabelBMFont*)ret); - return 1; - } - } while (0); - ok = true; - do - { - if (argc == 5) - { - std::string arg0; - ok &= luaval_to_std_string(tolua_S, 2,&arg0); - if (!ok) { break; } - std::string arg1; - ok &= luaval_to_std_string(tolua_S, 3,&arg1); - if (!ok) { break; } - double arg2; - ok &= luaval_to_number(tolua_S, 4,&arg2); - if (!ok) { break; } - cocos2d::TextHAlignment arg3; - ok &= luaval_to_int32(tolua_S, 5,(int *)&arg3); - if (!ok) { break; } - cocos2d::Vec2 arg4; - ok &= luaval_to_vec2(tolua_S, 6, &arg4); - if (!ok) { break; } - cocos2d::LabelBMFont* ret = cocos2d::LabelBMFont::create(arg0, arg1, arg2, arg3, arg4); - object_to_luaval(tolua_S, "cc.LabelBMFont",(cocos2d::LabelBMFont*)ret); - return 1; - } - } while (0); - ok = true; - CCLOG("%s has wrong number of arguments: %d, was expecting %d", "create",argc, 2); - return 0; -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_LabelBMFont_create'.",&tolua_err); -#endif - return 0; -} -int lua_cocos2dx_LabelBMFont_constructor(lua_State* tolua_S) -{ - int argc = 0; - cocos2d::LabelBMFont* cobj = nullptr; - bool ok = true; - -#if COCOS2D_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - return 0; - cobj = new cocos2d::LabelBMFont(); - cobj->autorelease(); - int ID = (int)cobj->_ID ; - int* luaID = &cobj->_luaID ; - toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.LabelBMFont"); - return 1; - } - CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "LabelBMFont",argc, 0); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_LabelBMFont_constructor'.",&tolua_err); -#endif - - return 0; -} - -static int lua_cocos2dx_LabelBMFont_finalize(lua_State* tolua_S) -{ - printf("luabindings: finalizing LUA object (LabelBMFont)"); - return 0; -} - -int lua_register_cocos2dx_LabelBMFont(lua_State* tolua_S) -{ - tolua_usertype(tolua_S,"cc.LabelBMFont"); - tolua_cclass(tolua_S,"LabelBMFont","cc.LabelBMFont","cc.Node",nullptr); - - tolua_beginmodule(tolua_S,"LabelBMFont"); - tolua_function(tolua_S,"new",lua_cocos2dx_LabelBMFont_constructor); - tolua_function(tolua_S,"setLineBreakWithoutSpace",lua_cocos2dx_LabelBMFont_setLineBreakWithoutSpace); - tolua_function(tolua_S,"getBlendFunc",lua_cocos2dx_LabelBMFont_getBlendFunc); - tolua_function(tolua_S,"isOpacityModifyRGB",lua_cocos2dx_LabelBMFont_isOpacityModifyRGB); - tolua_function(tolua_S,"getLetter",lua_cocos2dx_LabelBMFont_getLetter); - tolua_function(tolua_S,"getString",lua_cocos2dx_LabelBMFont_getString); - tolua_function(tolua_S,"setBlendFunc",lua_cocos2dx_LabelBMFont_setBlendFunc); - tolua_function(tolua_S,"setString",lua_cocos2dx_LabelBMFont_setString); - tolua_function(tolua_S,"initWithString",lua_cocos2dx_LabelBMFont_initWithString); - tolua_function(tolua_S,"setOpacityModifyRGB",lua_cocos2dx_LabelBMFont_setOpacityModifyRGB); - tolua_function(tolua_S,"getFntFile",lua_cocos2dx_LabelBMFont_getFntFile); - tolua_function(tolua_S,"setFntFile",lua_cocos2dx_LabelBMFont_setFntFile); - tolua_function(tolua_S,"setAlignment",lua_cocos2dx_LabelBMFont_setAlignment); - tolua_function(tolua_S,"setWidth",lua_cocos2dx_LabelBMFont_setWidth); - tolua_function(tolua_S,"create", lua_cocos2dx_LabelBMFont_create); - tolua_endmodule(tolua_S); - std::string typeName = typeid(cocos2d::LabelBMFont).name(); - g_luaType[typeName] = "cc.LabelBMFont"; - g_typeCast["LabelBMFont"] = "cc.LabelBMFont"; - return 1; -} - int lua_cocos2dx_Layer_create(lua_State* tolua_S) { int argc = 0; @@ -51311,55 +48127,6 @@ int lua_cocos2dx_ParticleSystem_setEndColorVar(lua_State* tolua_S) return 0; } -int lua_cocos2dx_ParticleSystem_updateQuadWithParticle(lua_State* tolua_S) -{ - int argc = 0; - cocos2d::ParticleSystem* cobj = nullptr; - bool ok = true; - -#if COCOS2D_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if COCOS2D_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_updateQuadWithParticle'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 2) - { - cocos2d::sParticle* arg0; - cocos2d::Vec2 arg1; - - #pragma warning NO CONVERSION TO NATIVE FOR sParticle*; - - ok &= luaval_to_vec2(tolua_S, 3, &arg1); - if(!ok) - return 0; - cobj->updateQuadWithParticle(arg0, arg1); - return 0; - } - CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "updateQuadWithParticle",argc, 2); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_updateQuadWithParticle'.",&tolua_err); -#endif - - return 0; -} int lua_cocos2dx_ParticleSystem_getAtlasIndex(lua_State* tolua_S) { int argc = 0; @@ -52033,52 +48800,6 @@ int lua_cocos2dx_ParticleSystem_getRotatePerSecond(lua_State* tolua_S) return 0; } -int lua_cocos2dx_ParticleSystem_initParticle(lua_State* tolua_S) -{ - int argc = 0; - cocos2d::ParticleSystem* cobj = nullptr; - bool ok = true; - -#if COCOS2D_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if COCOS2D_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_initParticle'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - cocos2d::sParticle* arg0; - - #pragma warning NO CONVERSION TO NATIVE FOR sParticle*; - if(!ok) - return 0; - cobj->initParticle(arg0); - return 0; - } - CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "initParticle",argc, 1); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_initParticle'.",&tolua_err); -#endif - - return 0; -} int lua_cocos2dx_ParticleSystem_setEmitterMode(lua_State* tolua_S) { int argc = 0; @@ -54175,7 +50896,6 @@ int lua_register_cocos2dx_ParticleSystem(lua_State* tolua_S) tolua_function(tolua_S,"setLifeVar",lua_cocos2dx_ParticleSystem_setLifeVar); tolua_function(tolua_S,"setTotalParticles",lua_cocos2dx_ParticleSystem_setTotalParticles); tolua_function(tolua_S,"setEndColorVar",lua_cocos2dx_ParticleSystem_setEndColorVar); - tolua_function(tolua_S,"updateQuadWithParticle",lua_cocos2dx_ParticleSystem_updateQuadWithParticle); tolua_function(tolua_S,"getAtlasIndex",lua_cocos2dx_ParticleSystem_getAtlasIndex); tolua_function(tolua_S,"getStartSize",lua_cocos2dx_ParticleSystem_getStartSize); tolua_function(tolua_S,"setStartSpinVar",lua_cocos2dx_ParticleSystem_setStartSpinVar); @@ -54191,7 +50911,6 @@ int lua_register_cocos2dx_ParticleSystem(lua_State* tolua_S) tolua_function(tolua_S,"setSpeed",lua_cocos2dx_ParticleSystem_setSpeed); tolua_function(tolua_S,"getStartSpin",lua_cocos2dx_ParticleSystem_getStartSpin); tolua_function(tolua_S,"getRotatePerSecond",lua_cocos2dx_ParticleSystem_getRotatePerSecond); - tolua_function(tolua_S,"initParticle",lua_cocos2dx_ParticleSystem_initParticle); tolua_function(tolua_S,"setEmitterMode",lua_cocos2dx_ParticleSystem_setEmitterMode); tolua_function(tolua_S,"getDuration",lua_cocos2dx_ParticleSystem_getDuration); tolua_function(tolua_S,"setSourcePosition",lua_cocos2dx_ParticleSystem_setSourcePosition); @@ -59839,52 +56558,6 @@ int lua_cocos2dx_ParallaxNode_removeAllChildrenWithCleanup(lua_State* tolua_S) return 0; } -int lua_cocos2dx_ParallaxNode_setParallaxArray(lua_State* tolua_S) -{ - int argc = 0; - cocos2d::ParallaxNode* cobj = nullptr; - bool ok = true; - -#if COCOS2D_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if COCOS2D_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"cc.ParallaxNode",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocos2d::ParallaxNode*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParallaxNode_setParallaxArray'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - cocos2d::_ccArray* arg0; - - #pragma warning NO CONVERSION TO NATIVE FOR _ccArray*; - if(!ok) - return 0; - cobj->setParallaxArray(arg0); - return 0; - } - CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "setParallaxArray",argc, 1); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParallaxNode_setParallaxArray'.",&tolua_err); -#endif - - return 0; -} int lua_cocos2dx_ParallaxNode_create(lua_State* tolua_S) { int argc = 0; @@ -59930,7 +56603,6 @@ int lua_register_cocos2dx_ParallaxNode(lua_State* tolua_S) tolua_beginmodule(tolua_S,"ParallaxNode"); tolua_function(tolua_S,"addChild",lua_cocos2dx_ParallaxNode_addChild); tolua_function(tolua_S,"removeAllChildrenWithCleanup",lua_cocos2dx_ParallaxNode_removeAllChildrenWithCleanup); - tolua_function(tolua_S,"setParallaxArray",lua_cocos2dx_ParallaxNode_setParallaxArray); tolua_function(tolua_S,"create", lua_cocos2dx_ParallaxNode_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::ParallaxNode).name(); @@ -62330,67 +59002,6 @@ int lua_register_cocos2dx_TMXMapInfo(lua_State* tolua_S) return 1; } -int lua_cocos2dx_TMXLayer_getTileGIDAt(lua_State* tolua_S) -{ - int argc = 0; - cocos2d::TMXLayer* cobj = nullptr; - bool ok = true; - -#if COCOS2D_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if COCOS2D_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"cc.TMXLayer",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocos2d::TMXLayer*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXLayer_getTileGIDAt'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - cocos2d::Vec2 arg0; - - ok &= luaval_to_vec2(tolua_S, 2, &arg0); - if(!ok) - return 0; - unsigned int ret = cobj->getTileGIDAt(arg0); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - if (argc == 2) - { - cocos2d::Vec2 arg0; - cocos2d::TMXTileFlags_* arg1; - - ok &= luaval_to_vec2(tolua_S, 2, &arg0); - - #pragma warning NO CONVERSION TO NATIVE FOR TMXTileFlags_*; - if(!ok) - return 0; - unsigned int ret = cobj->getTileGIDAt(arg0, arg1); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getTileGIDAt",argc, 1); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXLayer_getTileGIDAt'.",&tolua_err); -#endif - - return 0; -} int lua_cocos2dx_TMXLayer_getPositionAt(lua_State* tolua_S) { int argc = 0; @@ -62527,52 +59138,6 @@ int lua_cocos2dx_TMXLayer_releaseMap(lua_State* tolua_S) return 0; } -int lua_cocos2dx_TMXLayer_setTiles(lua_State* tolua_S) -{ - int argc = 0; - cocos2d::TMXLayer* cobj = nullptr; - bool ok = true; - -#if COCOS2D_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if COCOS2D_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"cc.TMXLayer",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocos2d::TMXLayer*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXLayer_setTiles'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - unsigned int* arg0; - - #pragma warning NO CONVERSION TO NATIVE FOR unsigned int*; - if(!ok) - return 0; - cobj->setTiles(arg0); - return 0; - } - CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "setTiles",argc, 1); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXLayer_setTiles'.",&tolua_err); -#endif - - return 0; -} int lua_cocos2dx_TMXLayer_getLayerSize(lua_State* tolua_S) { int argc = 0; @@ -63455,11 +60020,9 @@ int lua_register_cocos2dx_TMXLayer(lua_State* tolua_S) tolua_beginmodule(tolua_S,"TMXLayer"); tolua_function(tolua_S,"new",lua_cocos2dx_TMXLayer_constructor); - tolua_function(tolua_S,"getTileGIDAt",lua_cocos2dx_TMXLayer_getTileGIDAt); tolua_function(tolua_S,"getPositionAt",lua_cocos2dx_TMXLayer_getPositionAt); tolua_function(tolua_S,"setLayerOrientation",lua_cocos2dx_TMXLayer_setLayerOrientation); tolua_function(tolua_S,"releaseMap",lua_cocos2dx_TMXLayer_releaseMap); - tolua_function(tolua_S,"setTiles",lua_cocos2dx_TMXLayer_setTiles); tolua_function(tolua_S,"getLayerSize",lua_cocos2dx_TMXLayer_getLayerSize); tolua_function(tolua_S,"setMapTileSize",lua_cocos2dx_TMXLayer_setMapTileSize); tolua_function(tolua_S,"getLayerOrientation",lua_cocos2dx_TMXLayer_getLayerOrientation); @@ -64376,52 +60939,6 @@ int lua_cocos2dx_TileMapAtlas_setTile(lua_State* tolua_S) return 0; } -int lua_cocos2dx_TileMapAtlas_setTGAInfo(lua_State* tolua_S) -{ - int argc = 0; - cocos2d::TileMapAtlas* cobj = nullptr; - bool ok = true; - -#if COCOS2D_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if COCOS2D_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"cc.TileMapAtlas",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocos2d::TileMapAtlas*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TileMapAtlas_setTGAInfo'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - cocos2d::sImageTGA* arg0; - - #pragma warning NO CONVERSION TO NATIVE FOR sImageTGA*; - if(!ok) - return 0; - cobj->setTGAInfo(arg0); - return 0; - } - CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "setTGAInfo",argc, 1); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TileMapAtlas_setTGAInfo'.",&tolua_err); -#endif - - return 0; -} int lua_cocos2dx_TileMapAtlas_create(lua_State* tolua_S) { int argc = 0; @@ -64512,7 +61029,6 @@ int lua_register_cocos2dx_TileMapAtlas(lua_State* tolua_S) tolua_function(tolua_S,"releaseMap",lua_cocos2dx_TileMapAtlas_releaseMap); tolua_function(tolua_S,"getTileAt",lua_cocos2dx_TileMapAtlas_getTileAt); tolua_function(tolua_S,"setTile",lua_cocos2dx_TileMapAtlas_setTile); - tolua_function(tolua_S,"setTGAInfo",lua_cocos2dx_TileMapAtlas_setTGAInfo); tolua_function(tolua_S,"create", lua_cocos2dx_TileMapAtlas_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TileMapAtlas).name(); @@ -67555,7 +64071,6 @@ TOLUA_API int register_all_cocos2dx(lua_State* tolua_S) lua_register_cocos2dx_Application(tolua_S); lua_register_cocos2dx_DelayTime(tolua_S); lua_register_cocos2dx_LabelAtlas(tolua_S); - lua_register_cocos2dx_LabelBMFont(tolua_S); lua_register_cocos2dx_ParticleSnow(tolua_S); lua_register_cocos2dx_EaseElasticIn(tolua_S); lua_register_cocos2dx_EaseCircleActionInOut(tolua_S); @@ -67583,7 +64098,6 @@ TOLUA_API int register_all_cocos2dx(lua_State* tolua_S) lua_register_cocos2dx_RenderTexture(tolua_S); lua_register_cocos2dx_TintBy(tolua_S); lua_register_cocos2dx_TransitionShrinkGrow(tolua_S); - lua_register_cocos2dx_LabelTTF(tolua_S); lua_register_cocos2dx_ClippingNode(tolua_S); lua_register_cocos2dx_ParticleFlower(tolua_S); lua_register_cocos2dx_EaseCircleActionIn(tolua_S); diff --git a/cocos/scripting/lua-bindings/auto/lua_cocos2dx_auto.hpp b/cocos/scripting/lua-bindings/auto/lua_cocos2dx_auto.hpp index 9c0e2da3c7..59e045d8ae 100644 --- a/cocos/scripting/lua-bindings/auto/lua_cocos2dx_auto.hpp +++ b/cocos/scripting/lua-bindings/auto/lua_cocos2dx_auto.hpp @@ -1530,72 +1530,6 @@ int register_all_cocos2dx(lua_State* tolua_S); - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/cocos/scripting/lua-bindings/auto/lua_cocos2dx_spine_auto.cpp b/cocos/scripting/lua-bindings/auto/lua_cocos2dx_spine_auto.cpp index 55c306c217..fb68e466e2 100644 --- a/cocos/scripting/lua-bindings/auto/lua_cocos2dx_spine_auto.cpp +++ b/cocos/scripting/lua-bindings/auto/lua_cocos2dx_spine_auto.cpp @@ -494,61 +494,6 @@ int lua_cocos2dx_spine_SkeletonAnimation_clearTrack(lua_State* tolua_S) return 0; } -int lua_cocos2dx_spine_SkeletonAnimation_onAnimationStateEvent(lua_State* tolua_S) -{ - int argc = 0; - spine::SkeletonAnimation* cobj = nullptr; - bool ok = true; - -#if COCOS2D_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if COCOS2D_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"sp.SkeletonAnimation",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (spine::SkeletonAnimation*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_spine_SkeletonAnimation_onAnimationStateEvent'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 4) - { - int arg0; - spEventType arg1; - spEvent* arg2; - int arg3; - - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0); - - ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1); - - #pragma warning NO CONVERSION TO NATIVE FOR spEvent*; - - ok &= luaval_to_int32(tolua_S, 5,(int *)&arg3); - if(!ok) - return 0; - cobj->onAnimationStateEvent(arg0, arg1, arg2, arg3); - return 0; - } - CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "onAnimationStateEvent",argc, 4); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_spine_SkeletonAnimation_onAnimationStateEvent'.",&tolua_err); -#endif - - return 0; -} static int lua_cocos2dx_spine_SkeletonAnimation_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (SkeletonAnimation)"); @@ -564,7 +509,6 @@ int lua_register_cocos2dx_spine_SkeletonAnimation(lua_State* tolua_S) tolua_function(tolua_S,"setMix",lua_cocos2dx_spine_SkeletonAnimation_setMix); tolua_function(tolua_S,"clearTracks",lua_cocos2dx_spine_SkeletonAnimation_clearTracks); tolua_function(tolua_S,"clearTrack",lua_cocos2dx_spine_SkeletonAnimation_clearTrack); - tolua_function(tolua_S,"onAnimationStateEvent",lua_cocos2dx_spine_SkeletonAnimation_onAnimationStateEvent); tolua_endmodule(tolua_S); std::string typeName = typeid(spine::SkeletonAnimation).name(); g_luaType[typeName] = "sp.SkeletonAnimation"; diff --git a/cocos/scripting/lua-bindings/auto/lua_cocos2dx_spine_auto.hpp b/cocos/scripting/lua-bindings/auto/lua_cocos2dx_spine_auto.hpp index 8601fbf0f5..c11e809d87 100644 --- a/cocos/scripting/lua-bindings/auto/lua_cocos2dx_spine_auto.hpp +++ b/cocos/scripting/lua-bindings/auto/lua_cocos2dx_spine_auto.hpp @@ -22,5 +22,4 @@ int register_all_cocos2dx_spine(lua_State* tolua_S); - #endif // __cocos2dx_spine_h__ diff --git a/cocos/scripting/lua-bindings/auto/lua_cocos2dx_studio_auto.cpp b/cocos/scripting/lua-bindings/auto/lua_cocos2dx_studio_auto.cpp index 20b5463506..7e7ac835f2 100644 --- a/cocos/scripting/lua-bindings/auto/lua_cocos2dx_studio_auto.cpp +++ b/cocos/scripting/lua-bindings/auto/lua_cocos2dx_studio_auto.cpp @@ -5130,50 +5130,6 @@ int lua_cocos2dx_studio_Bone_updateColor(lua_State* tolua_S) return 0; } -int lua_cocos2dx_studio_Bone_getName(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::Bone* cobj = nullptr; - bool ok = true; - -#if COCOS2D_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if COCOS2D_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.Bone",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::Bone*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_Bone_getName'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - return 0; - const std::string ret = cobj->getName(); - tolua_pushcppstring(tolua_S,ret); - return 1; - } - CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getName",argc, 0); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_Bone_getName'.",&tolua_err); -#endif - - return 0; -} int lua_cocos2dx_studio_Bone_setTransformDirty(lua_State* tolua_S) { int argc = 0; @@ -5514,52 +5470,6 @@ int lua_cocos2dx_studio_Bone_addDisplay(lua_State* tolua_S) return 0; } -int lua_cocos2dx_studio_Bone_setName(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::Bone* cobj = nullptr; - bool ok = true; - -#if COCOS2D_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if COCOS2D_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.Bone",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::Bone*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_Bone_setName'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - std::string arg0; - - ok &= luaval_to_std_string(tolua_S, 2,&arg0); - if(!ok) - return 0; - cobj->setName(arg0); - return 0; - } - CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "setName",argc, 1); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_Bone_setName'.",&tolua_err); -#endif - - return 0; -} int lua_cocos2dx_studio_Bone_removeFromParent(lua_State* tolua_S) { int argc = 0; @@ -6301,7 +6211,6 @@ int lua_register_cocos2dx_studio_Bone(lua_State* tolua_S) tolua_function(tolua_S,"getTween",lua_cocos2dx_studio_Bone_getTween); tolua_function(tolua_S,"getParentBone",lua_cocos2dx_studio_Bone_getParentBone); tolua_function(tolua_S,"updateColor",lua_cocos2dx_studio_Bone_updateColor); - tolua_function(tolua_S,"getName",lua_cocos2dx_studio_Bone_getName); tolua_function(tolua_S,"setTransformDirty",lua_cocos2dx_studio_Bone_setTransformDirty); tolua_function(tolua_S,"getDisplayRenderNodeType",lua_cocos2dx_studio_Bone_getDisplayRenderNodeType); tolua_function(tolua_S,"removeDisplay",lua_cocos2dx_studio_Bone_removeDisplay); @@ -6309,7 +6218,6 @@ int lua_register_cocos2dx_studio_Bone(lua_State* tolua_S) tolua_function(tolua_S,"init",lua_cocos2dx_studio_Bone_init); tolua_function(tolua_S,"setParentBone",lua_cocos2dx_studio_Bone_setParentBone); tolua_function(tolua_S,"addDisplay",lua_cocos2dx_studio_Bone_addDisplay); - tolua_function(tolua_S,"setName",lua_cocos2dx_studio_Bone_setName); tolua_function(tolua_S,"removeFromParent",lua_cocos2dx_studio_Bone_removeFromParent); tolua_function(tolua_S,"getColliderDetector",lua_cocos2dx_studio_Bone_getColliderDetector); tolua_function(tolua_S,"getChildArmature",lua_cocos2dx_studio_Bone_getChildArmature); @@ -8749,52 +8657,6 @@ int lua_cocos2dx_studio_Armature_getParentBone(lua_State* tolua_S) return 0; } -int lua_cocos2dx_studio_Armature_setArmatureData(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::Armature* cobj = nullptr; - bool ok = true; - -#if COCOS2D_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if COCOS2D_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.Armature",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::Armature*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_Armature_setArmatureData'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - cocostudio::ArmatureData* arg0; - - ok &= luaval_to_object(tolua_S, 2, "ccs.ArmatureData",&arg0); - if(!ok) - return 0; - cobj->setArmatureData(arg0); - return 0; - } - CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "setArmatureData",argc, 1); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_Armature_setArmatureData'.",&tolua_err); -#endif - - return 0; -} int lua_cocos2dx_studio_Armature_removeBone(lua_State* tolua_S) { int argc = 0; @@ -8888,50 +8750,6 @@ int lua_cocos2dx_studio_Armature_getBatchNode(lua_State* tolua_S) return 0; } -int lua_cocos2dx_studio_Armature_getName(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::Armature* cobj = nullptr; - bool ok = true; - -#if COCOS2D_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if COCOS2D_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.Armature",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::Armature*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_Armature_getName'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - return 0; - const std::string& ret = cobj->getName(); - tolua_pushcppstring(tolua_S,ret); - return 1; - } - CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getName",argc, 0); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_Armature_getName'.",&tolua_err); -#endif - - return 0; -} int lua_cocos2dx_studio_Armature_init(lua_State* tolua_S) { int argc = 0; @@ -9134,7 +8952,7 @@ int lua_cocos2dx_studio_Armature_setBatchNode(lua_State* tolua_S) return 0; } -int lua_cocos2dx_studio_Armature_setName(lua_State* tolua_S) +int lua_cocos2dx_studio_Armature_setArmatureData(lua_State* tolua_S) { int argc = 0; cocostudio::Armature* cobj = nullptr; @@ -9154,7 +8972,7 @@ int lua_cocos2dx_studio_Armature_setName(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_Armature_setName'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_Armature_setArmatureData'", nullptr); return 0; } #endif @@ -9162,20 +8980,20 @@ int lua_cocos2dx_studio_Armature_setName(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - std::string arg0; + cocostudio::ArmatureData* arg0; - ok &= luaval_to_std_string(tolua_S, 2,&arg0); + ok &= luaval_to_object(tolua_S, 2, "ccs.ArmatureData",&arg0); if(!ok) return 0; - cobj->setName(arg0); + cobj->setArmatureData(arg0); return 0; } - CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "setName",argc, 1); + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "setArmatureData",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_Armature_setName'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_Armature_setArmatureData'.",&tolua_err); #endif return 0; @@ -9521,15 +9339,13 @@ int lua_register_cocos2dx_studio_Armature(lua_State* tolua_S) tolua_function(tolua_S,"setVersion",lua_cocos2dx_studio_Armature_setVersion); tolua_function(tolua_S,"updateOffsetPoint",lua_cocos2dx_studio_Armature_updateOffsetPoint); tolua_function(tolua_S,"getParentBone",lua_cocos2dx_studio_Armature_getParentBone); - tolua_function(tolua_S,"setArmatureData",lua_cocos2dx_studio_Armature_setArmatureData); tolua_function(tolua_S,"removeBone",lua_cocos2dx_studio_Armature_removeBone); tolua_function(tolua_S,"getBatchNode",lua_cocos2dx_studio_Armature_getBatchNode); - tolua_function(tolua_S,"getName",lua_cocos2dx_studio_Armature_getName); tolua_function(tolua_S,"init",lua_cocos2dx_studio_Armature_init); tolua_function(tolua_S,"setParentBone",lua_cocos2dx_studio_Armature_setParentBone); tolua_function(tolua_S,"drawContour",lua_cocos2dx_studio_Armature_drawContour); tolua_function(tolua_S,"setBatchNode",lua_cocos2dx_studio_Armature_setBatchNode); - tolua_function(tolua_S,"setName",lua_cocos2dx_studio_Armature_setName); + tolua_function(tolua_S,"setArmatureData",lua_cocos2dx_studio_Armature_setArmatureData); tolua_function(tolua_S,"addBone",lua_cocos2dx_studio_Armature_addBone); tolua_function(tolua_S,"getArmatureData",lua_cocos2dx_studio_Armature_getArmatureData); tolua_function(tolua_S,"getVersion",lua_cocos2dx_studio_Armature_getVersion); diff --git a/cocos/scripting/lua-bindings/auto/lua_cocos2dx_studio_auto.hpp b/cocos/scripting/lua-bindings/auto/lua_cocos2dx_studio_auto.hpp index 7fca8134bc..a0b42d8a9b 100644 --- a/cocos/scripting/lua-bindings/auto/lua_cocos2dx_studio_auto.hpp +++ b/cocos/scripting/lua-bindings/auto/lua_cocos2dx_studio_auto.hpp @@ -299,10 +299,6 @@ int register_all_cocos2dx_studio(lua_State* tolua_S); - - - - diff --git a/cocos/scripting/lua-bindings/auto/lua_cocos2dx_ui_auto.cpp b/cocos/scripting/lua-bindings/auto/lua_cocos2dx_ui_auto.cpp index 0545aa5cf3..0a8a23aeff 100644 --- a/cocos/scripting/lua-bindings/auto/lua_cocos2dx_ui_auto.cpp +++ b/cocos/scripting/lua-bindings/auto/lua_cocos2dx_ui_auto.cpp @@ -903,7 +903,7 @@ int lua_cocos2dx_ui_Widget_getCustomSize(lua_State* tolua_S) return 0; } -int lua_cocos2dx_ui_Widget_getLeftBoundary(lua_State* tolua_S) +int lua_cocos2dx_ui_Widget_setFlippedY(lua_State* tolua_S) { int argc = 0; cocos2d::ui::Widget* cobj = nullptr; @@ -923,26 +923,28 @@ int lua_cocos2dx_ui_Widget_getLeftBoundary(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ui_Widget_getLeftBoundary'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ui_Widget_setFlippedY'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 1) { + bool arg0; + + ok &= luaval_to_boolean(tolua_S, 2,&arg0); if(!ok) return 0; - double ret = cobj->getLeftBoundary(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; + cobj->setFlippedY(arg0); + return 0; } - CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getLeftBoundary",argc, 0); + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "setFlippedY",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ui_Widget_getLeftBoundary'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ui_Widget_setFlippedY'.",&tolua_err); #endif return 0; @@ -1263,50 +1265,6 @@ int lua_cocos2dx_ui_Widget_setPositionType(lua_State* tolua_S) return 0; } -int lua_cocos2dx_ui_Widget_getName(lua_State* tolua_S) -{ - int argc = 0; - cocos2d::ui::Widget* cobj = nullptr; - bool ok = true; - -#if COCOS2D_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if COCOS2D_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccui.Widget",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocos2d::ui::Widget*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ui_Widget_getName'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - return 0; - const std::string& ret = cobj->getName(); - tolua_pushcppstring(tolua_S,ret); - return 1; - } - CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getName",argc, 0); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ui_Widget_getName'.",&tolua_err); -#endif - - return 0; -} int lua_cocos2dx_ui_Widget_isIgnoreContentAdaptWithSize(lua_State* tolua_S) { int argc = 0; @@ -1621,7 +1579,7 @@ int lua_cocos2dx_ui_Widget_getTopBoundary(lua_State* tolua_S) return 0; } -int lua_cocos2dx_ui_Widget_getChildByName(lua_State* tolua_S) +int lua_cocos2dx_ui_Widget_ignoreContentAdaptWithSize(lua_State* tolua_S) { int argc = 0; cocos2d::ui::Widget* cobj = nullptr; @@ -1641,7 +1599,7 @@ int lua_cocos2dx_ui_Widget_getChildByName(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ui_Widget_getChildByName'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ui_Widget_ignoreContentAdaptWithSize'", nullptr); return 0; } #endif @@ -1649,21 +1607,20 @@ int lua_cocos2dx_ui_Widget_getChildByName(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - std::string arg0; + bool arg0; - ok &= luaval_to_std_string(tolua_S, 2,&arg0); + ok &= luaval_to_boolean(tolua_S, 2,&arg0); if(!ok) return 0; - cocos2d::ui::Widget* ret = cobj->getChildByName(arg0); - object_to_luaval(tolua_S, "ccui.Widget",(cocos2d::ui::Widget*)ret); - return 1; + cobj->ignoreContentAdaptWithSize(arg0); + return 0; } - CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getChildByName",argc, 1); + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "ignoreContentAdaptWithSize",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ui_Widget_getChildByName'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ui_Widget_ignoreContentAdaptWithSize'.",&tolua_err); #endif return 0; @@ -2070,7 +2027,7 @@ int lua_cocos2dx_ui_Widget_setTouchEnabled(lua_State* tolua_S) return 0; } -int lua_cocos2dx_ui_Widget_setFlippedY(lua_State* tolua_S) +int lua_cocos2dx_ui_Widget_getLeftBoundary(lua_State* tolua_S) { int argc = 0; cocos2d::ui::Widget* cobj = nullptr; @@ -2090,28 +2047,26 @@ int lua_cocos2dx_ui_Widget_setFlippedY(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ui_Widget_setFlippedY'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ui_Widget_getLeftBoundary'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; - if (argc == 1) + if (argc == 0) { - bool arg0; - - ok &= luaval_to_boolean(tolua_S, 2,&arg0); if(!ok) return 0; - cobj->setFlippedY(arg0); - return 0; + double ret = cobj->getLeftBoundary(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; } - CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "setFlippedY",argc, 1); + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getLeftBoundary",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ui_Widget_setFlippedY'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ui_Widget_getLeftBoundary'.",&tolua_err); #endif return 0; @@ -2252,52 +2207,6 @@ int lua_cocos2dx_ui_Widget_setBrightStyle(lua_State* tolua_S) return 0; } -int lua_cocos2dx_ui_Widget_setName(lua_State* tolua_S) -{ - int argc = 0; - cocos2d::ui::Widget* cobj = nullptr; - bool ok = true; - -#if COCOS2D_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if COCOS2D_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccui.Widget",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocos2d::ui::Widget*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ui_Widget_setName'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - std::string arg0; - - ok &= luaval_to_std_string(tolua_S, 2,&arg0); - if(!ok) - return 0; - cobj->setName(arg0); - return 0; - } - CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "setName",argc, 1); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ui_Widget_setName'.",&tolua_err); -#endif - - return 0; -} int lua_cocos2dx_ui_Widget_setLayoutParameter(lua_State* tolua_S) { int argc = 0; @@ -2790,52 +2699,6 @@ int lua_cocos2dx_ui_Widget_getSizeType(lua_State* tolua_S) return 0; } -int lua_cocos2dx_ui_Widget_ignoreContentAdaptWithSize(lua_State* tolua_S) -{ - int argc = 0; - cocos2d::ui::Widget* cobj = nullptr; - bool ok = true; - -#if COCOS2D_DEBUG >= 1 - tolua_Error tolua_err; -#endif - - -#if COCOS2D_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccui.Widget",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocos2d::ui::Widget*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ui_Widget_ignoreContentAdaptWithSize'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - bool arg0; - - ok &= luaval_to_boolean(tolua_S, 2,&arg0); - if(!ok) - return 0; - cobj->ignoreContentAdaptWithSize(arg0); - return 0; - } - CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "ignoreContentAdaptWithSize",argc, 1); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ui_Widget_ignoreContentAdaptWithSize'.",&tolua_err); -#endif - - return 0; -} int lua_cocos2dx_ui_Widget_addTouchEventListener(lua_State* tolua_S) { int argc = 0; @@ -3450,7 +3313,7 @@ int lua_register_cocos2dx_ui_Widget(lua_State* tolua_S) tolua_function(tolua_S,"new",lua_cocos2dx_ui_Widget_constructor); tolua_function(tolua_S,"setSizePercent",lua_cocos2dx_ui_Widget_setSizePercent); tolua_function(tolua_S,"getCustomSize",lua_cocos2dx_ui_Widget_getCustomSize); - tolua_function(tolua_S,"getLeftBoundary",lua_cocos2dx_ui_Widget_getLeftBoundary); + tolua_function(tolua_S,"setFlippedY",lua_cocos2dx_ui_Widget_setFlippedY); tolua_function(tolua_S,"setFlippedX",lua_cocos2dx_ui_Widget_setFlippedX); tolua_function(tolua_S,"getVirtualRenderer",lua_cocos2dx_ui_Widget_getVirtualRenderer); tolua_function(tolua_S,"getSize",lua_cocos2dx_ui_Widget_getSize); @@ -3458,7 +3321,6 @@ int lua_register_cocos2dx_ui_Widget(lua_State* tolua_S) tolua_function(tolua_S,"getLayoutSize",lua_cocos2dx_ui_Widget_getLayoutSize); tolua_function(tolua_S,"setHighlighted",lua_cocos2dx_ui_Widget_setHighlighted); tolua_function(tolua_S,"setPositionType",lua_cocos2dx_ui_Widget_setPositionType); - tolua_function(tolua_S,"getName",lua_cocos2dx_ui_Widget_getName); tolua_function(tolua_S,"isIgnoreContentAdaptWithSize",lua_cocos2dx_ui_Widget_isIgnoreContentAdaptWithSize); tolua_function(tolua_S,"getVirtualRendererSize",lua_cocos2dx_ui_Widget_getVirtualRendererSize); tolua_function(tolua_S,"isHighlighted",lua_cocos2dx_ui_Widget_isHighlighted); @@ -3466,7 +3328,7 @@ int lua_register_cocos2dx_ui_Widget(lua_State* tolua_S) tolua_function(tolua_S,"findNextFocusedWidget",lua_cocos2dx_ui_Widget_findNextFocusedWidget); tolua_function(tolua_S,"getPositionType",lua_cocos2dx_ui_Widget_getPositionType); tolua_function(tolua_S,"getTopBoundary",lua_cocos2dx_ui_Widget_getTopBoundary); - tolua_function(tolua_S,"getChildByName",lua_cocos2dx_ui_Widget_getChildByName); + tolua_function(tolua_S,"ignoreContentAdaptWithSize",lua_cocos2dx_ui_Widget_ignoreContentAdaptWithSize); tolua_function(tolua_S,"isEnabled",lua_cocos2dx_ui_Widget_isEnabled); tolua_function(tolua_S,"isFocused",lua_cocos2dx_ui_Widget_isFocused); tolua_function(tolua_S,"getTouchBeganPosition",lua_cocos2dx_ui_Widget_getTouchBeganPosition); @@ -3476,11 +3338,10 @@ int lua_register_cocos2dx_ui_Widget(lua_State* tolua_S) tolua_function(tolua_S,"setFocused",lua_cocos2dx_ui_Widget_setFocused); tolua_function(tolua_S,"setActionTag",lua_cocos2dx_ui_Widget_setActionTag); tolua_function(tolua_S,"setTouchEnabled",lua_cocos2dx_ui_Widget_setTouchEnabled); - tolua_function(tolua_S,"setFlippedY",lua_cocos2dx_ui_Widget_setFlippedY); + tolua_function(tolua_S,"getLeftBoundary",lua_cocos2dx_ui_Widget_getLeftBoundary); tolua_function(tolua_S,"setEnabled",lua_cocos2dx_ui_Widget_setEnabled); tolua_function(tolua_S,"getRightBoundary",lua_cocos2dx_ui_Widget_getRightBoundary); tolua_function(tolua_S,"setBrightStyle",lua_cocos2dx_ui_Widget_setBrightStyle); - tolua_function(tolua_S,"setName",lua_cocos2dx_ui_Widget_setName); tolua_function(tolua_S,"setLayoutParameter",lua_cocos2dx_ui_Widget_setLayoutParameter); tolua_function(tolua_S,"clone",lua_cocos2dx_ui_Widget_clone); tolua_function(tolua_S,"setFocusEnabled",lua_cocos2dx_ui_Widget_setFocusEnabled); @@ -3492,7 +3353,6 @@ int lua_register_cocos2dx_ui_Widget(lua_State* tolua_S) tolua_function(tolua_S,"getSizePercent",lua_cocos2dx_ui_Widget_getSizePercent); tolua_function(tolua_S,"getTouchMovePosition",lua_cocos2dx_ui_Widget_getTouchMovePosition); tolua_function(tolua_S,"getSizeType",lua_cocos2dx_ui_Widget_getSizeType); - tolua_function(tolua_S,"ignoreContentAdaptWithSize",lua_cocos2dx_ui_Widget_ignoreContentAdaptWithSize); tolua_function(tolua_S,"addTouchEventListener",lua_cocos2dx_ui_Widget_addTouchEventListener); tolua_function(tolua_S,"getTouchEndPosition",lua_cocos2dx_ui_Widget_getTouchEndPosition); tolua_function(tolua_S,"getPositionPercent",lua_cocos2dx_ui_Widget_getPositionPercent); diff --git a/cocos/scripting/lua-bindings/auto/lua_cocos2dx_ui_auto.hpp b/cocos/scripting/lua-bindings/auto/lua_cocos2dx_ui_auto.hpp index 82db355930..ee7cd91061 100644 --- a/cocos/scripting/lua-bindings/auto/lua_cocos2dx_ui_auto.hpp +++ b/cocos/scripting/lua-bindings/auto/lua_cocos2dx_ui_auto.hpp @@ -385,9 +385,6 @@ int register_all_cocos2dx_ui(lua_State* tolua_S); - - -