From 9df3f57e0d47a5563eba5c530b9a8fa0ac7adc65 Mon Sep 17 00:00:00 2001 From: CocosRobot Date: Tue, 17 Mar 2015 06:28:14 +0000 Subject: [PATCH] [AUTO]: updating luabinding automatically --- .../auto/api/ArmatureAnimation.lua | 152 +- .../lua-bindings/auto/api/BillBoard.lua | 18 +- .../lua-bindings/auto/api/Control.lua | 64 +- .../lua-bindings/auto/api/ControlButton.lua | 100 +- .../auto/api/ControlColourPicker.lua | 34 +- .../auto/api/ControlHuePicker.lua | 14 +- .../api/ControlSaturationBrightnessPicker.lua | 14 +- .../lua-bindings/auto/api/ControlSlider.lua | 182 +- .../lua-bindings/auto/api/ControlStepper.lua | 176 +- .../lua-bindings/auto/api/ControlSwitch.lua | 28 +- .../lua-bindings/auto/api/EventFrame.lua | 14 +- .../lua-bindings/auto/api/FadeOutUpTiles.lua | 16 +- .../lua-bindings/auto/api/Grid3DAction.lua | 12 +- .../lua-bindings/auto/api/LabelAtlas.lua | 12 +- .../scripting/lua-bindings/auto/api/Menu.lua | 20 +- .../lua-bindings/auto/api/PageTurn3D.lua | 12 +- .../lua-bindings/auto/api/ParticleSystem.lua | 82 +- .../lua-bindings/auto/api/RichText.lua | 28 +- .../lua-bindings/auto/api/Sprite.lua | 188 +- .../lua-bindings/auto/api/TextField.lua | 14 +- .../lua-bindings/auto/api/TextureFrame.lua | 14 +- .../auto/api/TiledGrid3DAction.lua | 12 +- .../auto/api/TransitionSlideInB.lua | 12 +- .../auto/api/TransitionSlideInR.lua | 12 +- .../auto/api/TransitionSlideInT.lua | 12 +- .../auto/lua_cocos2dx_3d_auto.cpp | 57 - .../auto/lua_cocos2dx_3d_auto.hpp | 1 - .../lua-bindings/auto/lua_cocos2dx_auto.cpp | 741 ---- .../lua-bindings/auto/lua_cocos2dx_auto.hpp | 15 - .../auto/lua_cocos2dx_extension_auto.cpp | 3859 ++++++----------- .../auto/lua_cocos2dx_extension_auto.hpp | 21 - .../auto/lua_cocos2dx_studio_auto.cpp | 911 ++-- .../auto/lua_cocos2dx_studio_auto.hpp | 6 - .../auto/lua_cocos2dx_ui_auto.cpp | 153 - .../auto/lua_cocos2dx_ui_auto.hpp | 3 - 35 files changed, 2313 insertions(+), 4696 deletions(-) diff --git a/cocos/scripting/lua-bindings/auto/api/ArmatureAnimation.lua b/cocos/scripting/lua-bindings/auto/api/ArmatureAnimation.lua index 2862396921..52e359f5d4 100644 --- a/cocos/scripting/lua-bindings/auto/api/ArmatureAnimation.lua +++ b/cocos/scripting/lua-bindings/auto/api/ArmatureAnimation.lua @@ -10,37 +10,6 @@ -- @param self -- @return float#float ret (return value: float) --------------------------------- --- Pause the Process --- @function [parent=#ArmatureAnimation] pause --- @param self --- @return ArmatureAnimation#ArmatureAnimation self (return value: ccs.ArmatureAnimation) - --------------------------------- --- Scale animation play speed.
--- param animationScale Scale value --- @function [parent=#ArmatureAnimation] setSpeedScale --- @param self --- @param #float speedScale --- @return ArmatureAnimation#ArmatureAnimation self (return value: ccs.ArmatureAnimation) - --------------------------------- --- Init with a Armature
--- param armature The Armature ArmatureAnimation will bind to --- @function [parent=#ArmatureAnimation] init --- @param self --- @param #ccs.Armature armature --- @return bool#bool ret (return value: bool) - --------------------------------- --- --- @function [parent=#ArmatureAnimation] playWithIndexes --- @param self --- @param #array_table movementIndexes --- @param #int durationTo --- @param #bool loop --- @return ArmatureAnimation#ArmatureAnimation self (return value: ccs.ArmatureAnimation) - -------------------------------- -- Play animation by animation name.
-- param animationName The animation name you want to play
@@ -66,22 +35,27 @@ -- @return ArmatureAnimation#ArmatureAnimation self (return value: ccs.ArmatureAnimation) -------------------------------- --- Resume the Process --- @function [parent=#ArmatureAnimation] resume --- @param self --- @return ArmatureAnimation#ArmatureAnimation self (return value: ccs.ArmatureAnimation) - --------------------------------- --- Stop the Process --- @function [parent=#ArmatureAnimation] stop +-- +-- @function [parent=#ArmatureAnimation] playWithIndexes -- @param self +-- @param #array_table movementIndexes +-- @param #int durationTo +-- @param #bool loop -- @return ArmatureAnimation#ArmatureAnimation self (return value: ccs.ArmatureAnimation) -------------------------------- -- --- @function [parent=#ArmatureAnimation] update +-- @function [parent=#ArmatureAnimation] setAnimationData -- @param self --- @param #float dt +-- @param #ccs.AnimationData data +-- @return ArmatureAnimation#ArmatureAnimation self (return value: ccs.ArmatureAnimation) + +-------------------------------- +-- Scale animation play speed.
+-- param animationScale Scale value +-- @function [parent=#ArmatureAnimation] setSpeedScale +-- @param self +-- @param #float speedScale -- @return ArmatureAnimation#ArmatureAnimation self (return value: ccs.ArmatureAnimation) -------------------------------- @@ -90,6 +64,42 @@ -- @param self -- @return AnimationData#AnimationData ret (return value: ccs.AnimationData) +-------------------------------- +-- Go to specified frame and play current movement.
+-- You need first switch to the movement you want to play, then call this function.
+-- example : playByIndex(0);
+-- gotoAndPlay(0);
+-- playByIndex(1);
+-- gotoAndPlay(0);
+-- gotoAndPlay(15); +-- @function [parent=#ArmatureAnimation] gotoAndPlay +-- @param self +-- @param #int frameIndex +-- @return ArmatureAnimation#ArmatureAnimation self (return value: ccs.ArmatureAnimation) + +-------------------------------- +-- Init with a Armature
+-- param armature The Armature ArmatureAnimation will bind to +-- @function [parent=#ArmatureAnimation] init +-- @param self +-- @param #ccs.Armature armature +-- @return bool#bool ret (return value: bool) + +-------------------------------- +-- +-- @function [parent=#ArmatureAnimation] playWithNames +-- @param self +-- @param #array_table movementNames +-- @param #int durationTo +-- @param #bool loop +-- @return ArmatureAnimation#ArmatureAnimation self (return value: ccs.ArmatureAnimation) + +-------------------------------- +-- Get movement count +-- @function [parent=#ArmatureAnimation] getMovementCount +-- @param self +-- @return long#long ret (return value: long) + -------------------------------- -- -- @function [parent=#ArmatureAnimation] playWithIndex @@ -106,41 +116,6 @@ -- @param self -- @return string#string ret (return value: string) --------------------------------- --- --- @function [parent=#ArmatureAnimation] setAnimationData --- @param self --- @param #ccs.AnimationData data --- @return ArmatureAnimation#ArmatureAnimation self (return value: ccs.ArmatureAnimation) - --------------------------------- --- Go to specified frame and play current movement.
--- You need first switch to the movement you want to play, then call this function.
--- example : playByIndex(0);
--- gotoAndPlay(0);
--- playByIndex(1);
--- gotoAndPlay(0);
--- gotoAndPlay(15); --- @function [parent=#ArmatureAnimation] gotoAndPlay --- @param self --- @param #int frameIndex --- @return ArmatureAnimation#ArmatureAnimation self (return value: ccs.ArmatureAnimation) - --------------------------------- --- --- @function [parent=#ArmatureAnimation] playWithNames --- @param self --- @param #array_table movementNames --- @param #int durationTo --- @param #bool loop --- @return ArmatureAnimation#ArmatureAnimation self (return value: ccs.ArmatureAnimation) - --------------------------------- --- Get movement count --- @function [parent=#ArmatureAnimation] getMovementCount --- @param self --- @return long#long ret (return value: long) - -------------------------------- -- Create with a Armature
-- param armature The Armature ArmatureAnimation will bind to @@ -149,6 +124,31 @@ -- @param #ccs.Armature armature -- @return ArmatureAnimation#ArmatureAnimation ret (return value: ccs.ArmatureAnimation) +-------------------------------- +-- Pause the Process +-- @function [parent=#ArmatureAnimation] pause +-- @param self +-- @return ArmatureAnimation#ArmatureAnimation self (return value: ccs.ArmatureAnimation) + +-------------------------------- +-- Stop the Process +-- @function [parent=#ArmatureAnimation] stop +-- @param self +-- @return ArmatureAnimation#ArmatureAnimation self (return value: ccs.ArmatureAnimation) + +-------------------------------- +-- +-- @function [parent=#ArmatureAnimation] update +-- @param self +-- @param #float dt +-- @return ArmatureAnimation#ArmatureAnimation self (return value: ccs.ArmatureAnimation) + +-------------------------------- +-- Resume the Process +-- @function [parent=#ArmatureAnimation] resume +-- @param self +-- @return ArmatureAnimation#ArmatureAnimation self (return value: ccs.ArmatureAnimation) + -------------------------------- -- js ctor -- @function [parent=#ArmatureAnimation] ArmatureAnimation diff --git a/cocos/scripting/lua-bindings/auto/api/BillBoard.lua b/cocos/scripting/lua-bindings/auto/api/BillBoard.lua index 527d1cee79..5c284f759e 100644 --- a/cocos/scripting/lua-bindings/auto/api/BillBoard.lua +++ b/cocos/scripting/lua-bindings/auto/api/BillBoard.lua @@ -10,15 +10,6 @@ -- @param self -- @return int#int ret (return value: int) --------------------------------- --- update billboard's transform and turn it towards camera --- @function [parent=#BillBoard] visit --- @param self --- @param #cc.Renderer renderer --- @param #mat4_table parentTransform --- @param #unsigned int parentFlags --- @return BillBoard#BillBoard self (return value: cc.BillBoard) - -------------------------------- -- Set the billboard rotation mode. -- @function [parent=#BillBoard] setMode @@ -48,4 +39,13 @@ -- @param #int mode -- @return BillBoard#BillBoard ret (return value: cc.BillBoard) +-------------------------------- +-- update billboard's transform and turn it towards camera +-- @function [parent=#BillBoard] visit +-- @param self +-- @param #cc.Renderer renderer +-- @param #mat4_table parentTransform +-- @param #unsigned int parentFlags +-- @return BillBoard#BillBoard self (return value: cc.BillBoard) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/Control.lua b/cocos/scripting/lua-bindings/auto/api/Control.lua index ef5b336648..cce5ab426a 100644 --- a/cocos/scripting/lua-bindings/auto/api/Control.lua +++ b/cocos/scripting/lua-bindings/auto/api/Control.lua @@ -11,28 +11,12 @@ -- @param #bool bEnabled -- @return Control#Control self (return value: cc.Control) --------------------------------- --- --- @function [parent=#Control] onTouchMoved --- @param self --- @param #cc.Touch touch --- @param #cc.Event event --- @return Control#Control self (return value: cc.Control) - -------------------------------- -- -- @function [parent=#Control] getState -- @param self -- @return int#int ret (return value: int) --------------------------------- --- --- @function [parent=#Control] onTouchEnded --- @param self --- @param #cc.Touch touch --- @param #cc.Event event --- @return Control#Control self (return value: cc.Control) - -------------------------------- -- Sends action messages for the given control events.
-- param controlEvents A bitmask whose set flags specify the control events for
@@ -55,28 +39,12 @@ -- @param self -- @return bool#bool ret (return value: bool) --------------------------------- --- --- @function [parent=#Control] onTouchCancelled --- @param self --- @param #cc.Touch touch --- @param #cc.Event event --- @return Control#Control self (return value: cc.Control) - -------------------------------- -- Updates the control layout using its current internal state. -- @function [parent=#Control] needsLayout -- @param self -- @return Control#Control self (return value: cc.Control) --------------------------------- --- --- @function [parent=#Control] onTouchBegan --- @param self --- @param #cc.Touch touch --- @param #cc.Event event --- @return bool#bool ret (return value: bool) - -------------------------------- -- -- @function [parent=#Control] hasVisibleParents @@ -127,6 +95,14 @@ -- @param self -- @return Control#Control ret (return value: cc.Control) +-------------------------------- +-- +-- @function [parent=#Control] onTouchMoved +-- @param self +-- @param #cc.Touch touch +-- @param #cc.Event event +-- @return Control#Control self (return value: cc.Control) + -------------------------------- -- -- @function [parent=#Control] isOpacityModifyRGB @@ -140,4 +116,28 @@ -- @param #bool bOpacityModifyRGB -- @return Control#Control self (return value: cc.Control) +-------------------------------- +-- +-- @function [parent=#Control] onTouchCancelled +-- @param self +-- @param #cc.Touch touch +-- @param #cc.Event event +-- @return Control#Control self (return value: cc.Control) + +-------------------------------- +-- +-- @function [parent=#Control] onTouchEnded +-- @param self +-- @param #cc.Touch touch +-- @param #cc.Event event +-- @return Control#Control self (return value: cc.Control) + +-------------------------------- +-- +-- @function [parent=#Control] onTouchBegan +-- @param self +-- @param #cc.Touch touch +-- @param #cc.Event event +-- @return bool#bool ret (return value: bool) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/ControlButton.lua b/cocos/scripting/lua-bindings/auto/api/ControlButton.lua index 0c2353fd4e..559ba3f823 100644 --- a/cocos/scripting/lua-bindings/auto/api/ControlButton.lua +++ b/cocos/scripting/lua-bindings/auto/api/ControlButton.lua @@ -10,13 +10,6 @@ -- @param self -- @return bool#bool ret (return value: bool) --------------------------------- --- --- @function [parent=#ControlButton] setSelected --- @param self --- @param #bool enabled --- @return ControlButton#ControlButton self (return value: cc.ControlButton) - -------------------------------- -- Sets the title label to use for the specified state.
-- If a property is not specified for a state, the default is to use
@@ -37,20 +30,6 @@ -- @param #bool adjustBackgroundImage -- @return ControlButton#ControlButton self (return value: cc.ControlButton) --------------------------------- --- --- @function [parent=#ControlButton] setHighlighted --- @param self --- @param #bool enabled --- @return ControlButton#ControlButton self (return value: cc.ControlButton) - --------------------------------- --- --- @function [parent=#ControlButton] setZoomOnTouchDown --- @param self --- @param #bool var --- @return ControlButton#ControlButton self (return value: cc.ControlButton) - -------------------------------- -- Sets the title string to use for the specified state.
-- If a property is not specified for a state, the default is to use
@@ -122,9 +101,9 @@ -------------------------------- -- --- @function [parent=#ControlButton] setEnabled +-- @function [parent=#ControlButton] setZoomOnTouchDown -- @param self --- @param #bool enabled +-- @param #bool var -- @return ControlButton#ControlButton self (return value: cc.ControlButton) -------------------------------- @@ -143,18 +122,16 @@ -- @return int#int ret (return value: int) -------------------------------- --- --- @function [parent=#ControlButton] needsLayout +-- Sets the font of the label, changes the label to a BMFont if neccessary.
+-- param fntFile The name of the font to change to
+-- param state The state that uses the specified fntFile. The values are described
+-- in "CCControlState". +-- @function [parent=#ControlButton] setTitleBMFontForState -- @param self +-- @param #string fntFile +-- @param #int state -- @return ControlButton#ControlButton self (return value: cc.ControlButton) --------------------------------- --- @overload self --- @overload self --- @function [parent=#ControlButton] getCurrentTitle --- @param self --- @return string#string ret (return value: string) - -------------------------------- -- -- @function [parent=#ControlButton] getScaleRatio @@ -274,16 +251,12 @@ -- @return ControlButton#ControlButton self (return value: cc.ControlButton) -------------------------------- --- Sets the font of the label, changes the label to a BMFont if neccessary.
--- param fntFile The name of the font to change to
--- param state The state that uses the specified fntFile. The values are described
--- in "CCControlState". --- @function [parent=#ControlButton] setTitleBMFontForState +-- @overload self +-- @overload self +-- @function [parent=#ControlButton] getCurrentTitle -- @param self --- @param #string fntFile --- @param #int state --- @return ControlButton#ControlButton self (return value: cc.ControlButton) - +-- @return string#string ret (return value: string) + -------------------------------- -- -- @function [parent=#ControlButton] getTitleBMFontForState @@ -321,10 +294,9 @@ -------------------------------- -- --- @function [parent=#ControlButton] onTouchMoved +-- @function [parent=#ControlButton] setEnabled -- @param self --- @param #cc.Touch touch --- @param #cc.Event event +-- @param #bool enabled -- @return ControlButton#ControlButton self (return value: cc.ControlButton) -------------------------------- @@ -342,6 +314,21 @@ -- @param #color3b_table -- @return ControlButton#ControlButton self (return value: cc.ControlButton) +-------------------------------- +-- +-- @function [parent=#ControlButton] onTouchMoved +-- @param self +-- @param #cc.Touch touch +-- @param #cc.Event event +-- @return ControlButton#ControlButton self (return value: cc.ControlButton) + +-------------------------------- +-- +-- @function [parent=#ControlButton] setSelected +-- @param self +-- @param #bool enabled +-- @return ControlButton#ControlButton self (return value: cc.ControlButton) + -------------------------------- -- -- @function [parent=#ControlButton] onTouchCancelled @@ -352,11 +339,18 @@ -------------------------------- -- --- @function [parent=#ControlButton] setOpacity +-- @function [parent=#ControlButton] needsLayout -- @param self --- @param #unsigned char var -- @return ControlButton#ControlButton self (return value: cc.ControlButton) +-------------------------------- +-- +-- @function [parent=#ControlButton] onTouchBegan +-- @param self +-- @param #cc.Touch touch +-- @param #cc.Event event +-- @return bool#bool ret (return value: bool) + -------------------------------- -- -- @function [parent=#ControlButton] updateDisplayedOpacity @@ -364,6 +358,13 @@ -- @param #unsigned char parentOpacity -- @return ControlButton#ControlButton self (return value: cc.ControlButton) +-------------------------------- +-- +-- @function [parent=#ControlButton] setHighlighted +-- @param self +-- @param #bool enabled +-- @return ControlButton#ControlButton self (return value: cc.ControlButton) + -------------------------------- -- -- @function [parent=#ControlButton] updateDisplayedColor @@ -373,10 +374,9 @@ -------------------------------- -- --- @function [parent=#ControlButton] onTouchBegan +-- @function [parent=#ControlButton] setOpacity -- @param self --- @param #cc.Touch touch --- @param #cc.Event event --- @return bool#bool ret (return value: bool) +-- @param #unsigned char var +-- @return ControlButton#ControlButton self (return value: cc.ControlButton) return nil diff --git a/cocos/scripting/lua-bindings/auto/api/ControlColourPicker.lua b/cocos/scripting/lua-bindings/auto/api/ControlColourPicker.lua index 8c267a5150..b10fc29752 100644 --- a/cocos/scripting/lua-bindings/auto/api/ControlColourPicker.lua +++ b/cocos/scripting/lua-bindings/auto/api/ControlColourPicker.lua @@ -6,9 +6,10 @@ -------------------------------- -- --- @function [parent=#ControlColourPicker] setEnabled +-- @function [parent=#ControlColourPicker] hueSliderValueChanged -- @param self --- @param #bool bEnabled +-- @param #cc.Ref sender +-- @param #int controlEvent -- @return ControlColourPicker#ControlColourPicker self (return value: cc.ControlColourPicker) -------------------------------- @@ -17,21 +18,6 @@ -- @param self -- @return ControlHuePicker#ControlHuePicker ret (return value: cc.ControlHuePicker) --------------------------------- --- --- @function [parent=#ControlColourPicker] setColor --- @param self --- @param #color3b_table colorValue --- @return ControlColourPicker#ControlColourPicker self (return value: cc.ControlColourPicker) - --------------------------------- --- --- @function [parent=#ControlColourPicker] hueSliderValueChanged --- @param self --- @param #cc.Ref sender --- @param #int controlEvent --- @return ControlColourPicker#ControlColourPicker self (return value: cc.ControlColourPicker) - -------------------------------- -- -- @function [parent=#ControlColourPicker] getcolourPicker @@ -85,6 +71,20 @@ -- @param self -- @return ControlColourPicker#ControlColourPicker ret (return value: cc.ControlColourPicker) +-------------------------------- +-- +-- @function [parent=#ControlColourPicker] setEnabled +-- @param self +-- @param #bool bEnabled +-- @return ControlColourPicker#ControlColourPicker self (return value: cc.ControlColourPicker) + +-------------------------------- +-- +-- @function [parent=#ControlColourPicker] setColor +-- @param self +-- @param #color3b_table colorValue +-- @return ControlColourPicker#ControlColourPicker self (return value: cc.ControlColourPicker) + -------------------------------- -- js ctor -- @function [parent=#ControlColourPicker] ControlColourPicker diff --git a/cocos/scripting/lua-bindings/auto/api/ControlHuePicker.lua b/cocos/scripting/lua-bindings/auto/api/ControlHuePicker.lua index fffe16d942..8047ca72c4 100644 --- a/cocos/scripting/lua-bindings/auto/api/ControlHuePicker.lua +++ b/cocos/scripting/lua-bindings/auto/api/ControlHuePicker.lua @@ -4,13 +4,6 @@ -- @extend Control -- @parent_module cc --------------------------------- --- --- @function [parent=#ControlHuePicker] setEnabled --- @param self --- @param #bool enabled --- @return ControlHuePicker#ControlHuePicker self (return value: cc.ControlHuePicker) - -------------------------------- -- -- @function [parent=#ControlHuePicker] initWithTargetAndPos @@ -85,6 +78,13 @@ -- @param #vec2_table pos -- @return ControlHuePicker#ControlHuePicker ret (return value: cc.ControlHuePicker) +-------------------------------- +-- +-- @function [parent=#ControlHuePicker] setEnabled +-- @param self +-- @param #bool enabled +-- @return ControlHuePicker#ControlHuePicker self (return value: cc.ControlHuePicker) + -------------------------------- -- -- @function [parent=#ControlHuePicker] onTouchMoved diff --git a/cocos/scripting/lua-bindings/auto/api/ControlSaturationBrightnessPicker.lua b/cocos/scripting/lua-bindings/auto/api/ControlSaturationBrightnessPicker.lua index abb5d2b643..062ad2f543 100644 --- a/cocos/scripting/lua-bindings/auto/api/ControlSaturationBrightnessPicker.lua +++ b/cocos/scripting/lua-bindings/auto/api/ControlSaturationBrightnessPicker.lua @@ -30,13 +30,6 @@ -- @param self -- @return Sprite#Sprite ret (return value: cc.Sprite) --------------------------------- --- --- @function [parent=#ControlSaturationBrightnessPicker] setEnabled --- @param self --- @param #bool enabled --- @return ControlSaturationBrightnessPicker#ControlSaturationBrightnessPicker self (return value: cc.ControlSaturationBrightnessPicker) - -------------------------------- -- -- @function [parent=#ControlSaturationBrightnessPicker] getSlider @@ -69,6 +62,13 @@ -- @param #vec2_table pos -- @return ControlSaturationBrightnessPicker#ControlSaturationBrightnessPicker ret (return value: cc.ControlSaturationBrightnessPicker) +-------------------------------- +-- +-- @function [parent=#ControlSaturationBrightnessPicker] setEnabled +-- @param self +-- @param #bool enabled +-- @return ControlSaturationBrightnessPicker#ControlSaturationBrightnessPicker self (return value: cc.ControlSaturationBrightnessPicker) + -------------------------------- -- js ctor -- @function [parent=#ControlSaturationBrightnessPicker] ControlSaturationBrightnessPicker diff --git a/cocos/scripting/lua-bindings/auto/api/ControlSlider.lua b/cocos/scripting/lua-bindings/auto/api/ControlSlider.lua index d0de3d8966..bd91d8d55d 100644 --- a/cocos/scripting/lua-bindings/auto/api/ControlSlider.lua +++ b/cocos/scripting/lua-bindings/auto/api/ControlSlider.lua @@ -6,27 +6,7 @@ -------------------------------- -- --- @function [parent=#ControlSlider] getSelectedThumbSprite --- @param self --- @return Sprite#Sprite ret (return value: cc.Sprite) - --------------------------------- --- --- @function [parent=#ControlSlider] locationFromTouch --- @param self --- @param #cc.Touch touch --- @return vec2_table#vec2_table ret (return value: vec2_table) - --------------------------------- --- --- @function [parent=#ControlSlider] setSelectedThumbSprite --- @param self --- @param #cc.Sprite var --- @return ControlSlider#ControlSlider self (return value: cc.ControlSlider) - --------------------------------- --- --- @function [parent=#ControlSlider] setProgressSprite +-- @function [parent=#ControlSlider] setBackgroundSprite -- @param self -- @param #cc.Sprite var -- @return ControlSlider#ControlSlider self (return value: cc.ControlSlider) @@ -37,12 +17,49 @@ -- @param self -- @return float#float ret (return value: float) +-------------------------------- +-- @overload self, cc.Sprite, cc.Sprite, cc.Sprite, cc.Sprite +-- @overload self, cc.Sprite, cc.Sprite, cc.Sprite +-- @function [parent=#ControlSlider] initWithSprites +-- @param self +-- @param #cc.Sprite backgroundSprite +-- @param #cc.Sprite progressSprite +-- @param #cc.Sprite thumbSprite +-- @param #cc.Sprite selectedThumbSprite +-- @return bool#bool ret (return value: bool) + -------------------------------- -- -- @function [parent=#ControlSlider] getMinimumAllowedValue -- @param self -- @return float#float ret (return value: float) +-------------------------------- +-- +-- @function [parent=#ControlSlider] getMaximumValue +-- @param self +-- @return float#float ret (return value: float) + +-------------------------------- +-- +-- @function [parent=#ControlSlider] getSelectedThumbSprite +-- @param self +-- @return Sprite#Sprite ret (return value: cc.Sprite) + +-------------------------------- +-- +-- @function [parent=#ControlSlider] setProgressSprite +-- @param self +-- @param #cc.Sprite var +-- @return ControlSlider#ControlSlider self (return value: cc.ControlSlider) + +-------------------------------- +-- +-- @function [parent=#ControlSlider] setMaximumValue +-- @param self +-- @param #float val +-- @return ControlSlider#ControlSlider self (return value: cc.ControlSlider) + -------------------------------- -- -- @function [parent=#ControlSlider] getMinimumValue @@ -56,6 +73,38 @@ -- @param #cc.Sprite var -- @return ControlSlider#ControlSlider self (return value: cc.ControlSlider) +-------------------------------- +-- +-- @function [parent=#ControlSlider] getValue +-- @param self +-- @return float#float ret (return value: float) + +-------------------------------- +-- +-- @function [parent=#ControlSlider] getBackgroundSprite +-- @param self +-- @return Sprite#Sprite ret (return value: cc.Sprite) + +-------------------------------- +-- +-- @function [parent=#ControlSlider] getThumbSprite +-- @param self +-- @return Sprite#Sprite ret (return value: cc.Sprite) + +-------------------------------- +-- +-- @function [parent=#ControlSlider] setValue +-- @param self +-- @param #float val +-- @return ControlSlider#ControlSlider self (return value: cc.ControlSlider) + +-------------------------------- +-- +-- @function [parent=#ControlSlider] locationFromTouch +-- @param self +-- @param #cc.Touch touch +-- @return vec2_table#vec2_table ret (return value: vec2_table) + -------------------------------- -- -- @function [parent=#ControlSlider] setMinimumValue @@ -70,75 +119,6 @@ -- @param #float var -- @return ControlSlider#ControlSlider self (return value: cc.ControlSlider) --------------------------------- --- --- @function [parent=#ControlSlider] setEnabled --- @param self --- @param #bool enabled --- @return ControlSlider#ControlSlider self (return value: cc.ControlSlider) - --------------------------------- --- --- @function [parent=#ControlSlider] setValue --- @param self --- @param #float val --- @return ControlSlider#ControlSlider self (return value: cc.ControlSlider) - --------------------------------- --- --- @function [parent=#ControlSlider] setMaximumValue --- @param self --- @param #float val --- @return ControlSlider#ControlSlider self (return value: cc.ControlSlider) - --------------------------------- --- --- @function [parent=#ControlSlider] needsLayout --- @param self --- @return ControlSlider#ControlSlider self (return value: cc.ControlSlider) - --------------------------------- --- --- @function [parent=#ControlSlider] getBackgroundSprite --- @param self --- @return Sprite#Sprite ret (return value: cc.Sprite) - --------------------------------- --- @overload self, cc.Sprite, cc.Sprite, cc.Sprite, cc.Sprite --- @overload self, cc.Sprite, cc.Sprite, cc.Sprite --- @function [parent=#ControlSlider] initWithSprites --- @param self --- @param #cc.Sprite backgroundSprite --- @param #cc.Sprite progressSprite --- @param #cc.Sprite thumbSprite --- @param #cc.Sprite selectedThumbSprite --- @return bool#bool ret (return value: bool) - --------------------------------- --- --- @function [parent=#ControlSlider] getMaximumValue --- @param self --- @return float#float ret (return value: float) - --------------------------------- --- --- @function [parent=#ControlSlider] isTouchInside --- @param self --- @param #cc.Touch touch --- @return bool#bool ret (return value: bool) - --------------------------------- --- --- @function [parent=#ControlSlider] getValue --- @param self --- @return float#float ret (return value: float) - --------------------------------- --- --- @function [parent=#ControlSlider] getThumbSprite --- @param self --- @return Sprite#Sprite ret (return value: cc.Sprite) - -------------------------------- -- -- @function [parent=#ControlSlider] getProgressSprite @@ -147,7 +127,7 @@ -------------------------------- -- --- @function [parent=#ControlSlider] setBackgroundSprite +-- @function [parent=#ControlSlider] setSelectedThumbSprite -- @param self -- @param #cc.Sprite var -- @return ControlSlider#ControlSlider self (return value: cc.ControlSlider) @@ -172,6 +152,26 @@ -- @param #cc.Sprite selectedThumbSprite -- @return ControlSlider#ControlSlider ret (return value: cc.ControlSlider) +-------------------------------- +-- +-- @function [parent=#ControlSlider] isTouchInside +-- @param self +-- @param #cc.Touch touch +-- @return bool#bool ret (return value: bool) + +-------------------------------- +-- +-- @function [parent=#ControlSlider] setEnabled +-- @param self +-- @param #bool enabled +-- @return ControlSlider#ControlSlider self (return value: cc.ControlSlider) + +-------------------------------- +-- +-- @function [parent=#ControlSlider] needsLayout +-- @param self +-- @return ControlSlider#ControlSlider self (return value: cc.ControlSlider) + -------------------------------- -- js ctor -- @function [parent=#ControlSlider] ControlSlider diff --git a/cocos/scripting/lua-bindings/auto/api/ControlStepper.lua b/cocos/scripting/lua-bindings/auto/api/ControlStepper.lua index 46afb8e004..1d9ea06397 100644 --- a/cocos/scripting/lua-bindings/auto/api/ControlStepper.lua +++ b/cocos/scripting/lua-bindings/auto/api/ControlStepper.lua @@ -4,92 +4,12 @@ -- @extend Control -- @parent_module cc --------------------------------- --- --- @function [parent=#ControlStepper] setMinusSprite --- @param self --- @param #cc.Sprite var --- @return ControlStepper#ControlStepper self (return value: cc.ControlStepper) - --------------------------------- --- --- @function [parent=#ControlStepper] getMinusLabel --- @param self --- @return Label#Label ret (return value: cc.Label) - --------------------------------- --- --- @function [parent=#ControlStepper] setWraps --- @param self --- @param #bool wraps --- @return ControlStepper#ControlStepper self (return value: cc.ControlStepper) - --------------------------------- --- --- @function [parent=#ControlStepper] isContinuous --- @param self --- @return bool#bool ret (return value: bool) - -------------------------------- -- -- @function [parent=#ControlStepper] getMinusSprite -- @param self -- @return Sprite#Sprite ret (return value: cc.Sprite) --------------------------------- --- Update the layout of the stepper with the given touch location. --- @function [parent=#ControlStepper] updateLayoutUsingTouchLocation --- @param self --- @param #vec2_table location --- @return ControlStepper#ControlStepper self (return value: cc.ControlStepper) - --------------------------------- --- Set the numeric value of the stepper. If send is true, the Control::EventType::VALUE_CHANGED is sent. --- @function [parent=#ControlStepper] setValueWithSendingEvent --- @param self --- @param #double value --- @param #bool send --- @return ControlStepper#ControlStepper self (return value: cc.ControlStepper) - --------------------------------- --- --- @function [parent=#ControlStepper] getPlusLabel --- @param self --- @return Label#Label ret (return value: cc.Label) - --------------------------------- --- Stop the autorepeat. --- @function [parent=#ControlStepper] stopAutorepeat --- @param self --- @return ControlStepper#ControlStepper self (return value: cc.ControlStepper) - --------------------------------- --- --- @function [parent=#ControlStepper] setMinimumValue --- @param self --- @param #double minimumValue --- @return ControlStepper#ControlStepper self (return value: cc.ControlStepper) - --------------------------------- --- --- @function [parent=#ControlStepper] getPlusSprite --- @param self --- @return Sprite#Sprite ret (return value: cc.Sprite) - --------------------------------- --- --- @function [parent=#ControlStepper] setPlusSprite --- @param self --- @param #cc.Sprite var --- @return ControlStepper#ControlStepper self (return value: cc.ControlStepper) - --------------------------------- --- --- @function [parent=#ControlStepper] setMinusLabel --- @param self --- @param #cc.Label var --- @return ControlStepper#ControlStepper self (return value: cc.ControlStepper) - -------------------------------- -- -- @function [parent=#ControlStepper] setValue @@ -104,6 +24,22 @@ -- @param #double stepValue -- @return ControlStepper#ControlStepper self (return value: cc.ControlStepper) +-------------------------------- +-- +-- @function [parent=#ControlStepper] initWithMinusSpriteAndPlusSprite +-- @param self +-- @param #cc.Sprite minusSprite +-- @param #cc.Sprite plusSprite +-- @return bool#bool ret (return value: bool) + +-------------------------------- +-- Set the numeric value of the stepper. If send is true, the Control::EventType::VALUE_CHANGED is sent. +-- @function [parent=#ControlStepper] setValueWithSendingEvent +-- @param self +-- @param #double value +-- @param #bool send +-- @return ControlStepper#ControlStepper self (return value: cc.ControlStepper) + -------------------------------- -- -- @function [parent=#ControlStepper] setMaximumValue @@ -113,9 +49,28 @@ -------------------------------- -- --- @function [parent=#ControlStepper] update +-- @function [parent=#ControlStepper] getMinusLabel -- @param self --- @param #float dt +-- @return Label#Label ret (return value: cc.Label) + +-------------------------------- +-- +-- @function [parent=#ControlStepper] getPlusLabel +-- @param self +-- @return Label#Label ret (return value: cc.Label) + +-------------------------------- +-- +-- @function [parent=#ControlStepper] setWraps +-- @param self +-- @param #bool wraps +-- @return ControlStepper#ControlStepper self (return value: cc.ControlStepper) + +-------------------------------- +-- +-- @function [parent=#ControlStepper] setMinusLabel +-- @param self +-- @param #cc.Label var -- @return ControlStepper#ControlStepper self (return value: cc.ControlStepper) -------------------------------- @@ -125,13 +80,38 @@ -- @return ControlStepper#ControlStepper self (return value: cc.ControlStepper) -------------------------------- --- --- @function [parent=#ControlStepper] initWithMinusSpriteAndPlusSprite +-- Update the layout of the stepper with the given touch location. +-- @function [parent=#ControlStepper] updateLayoutUsingTouchLocation +-- @param self +-- @param #vec2_table location +-- @return ControlStepper#ControlStepper self (return value: cc.ControlStepper) + +-------------------------------- +-- +-- @function [parent=#ControlStepper] isContinuous -- @param self --- @param #cc.Sprite minusSprite --- @param #cc.Sprite plusSprite -- @return bool#bool ret (return value: bool) +-------------------------------- +-- Stop the autorepeat. +-- @function [parent=#ControlStepper] stopAutorepeat +-- @param self +-- @return ControlStepper#ControlStepper self (return value: cc.ControlStepper) + +-------------------------------- +-- +-- @function [parent=#ControlStepper] setMinimumValue +-- @param self +-- @param #double minimumValue +-- @return ControlStepper#ControlStepper self (return value: cc.ControlStepper) + +-------------------------------- +-- +-- @function [parent=#ControlStepper] setPlusLabel +-- @param self +-- @param #cc.Label var +-- @return ControlStepper#ControlStepper self (return value: cc.ControlStepper) + -------------------------------- -- -- @function [parent=#ControlStepper] getValue @@ -140,9 +120,22 @@ -------------------------------- -- --- @function [parent=#ControlStepper] setPlusLabel +-- @function [parent=#ControlStepper] getPlusSprite -- @param self --- @param #cc.Label var +-- @return Sprite#Sprite ret (return value: cc.Sprite) + +-------------------------------- +-- +-- @function [parent=#ControlStepper] setPlusSprite +-- @param self +-- @param #cc.Sprite var +-- @return ControlStepper#ControlStepper self (return value: cc.ControlStepper) + +-------------------------------- +-- +-- @function [parent=#ControlStepper] setMinusSprite +-- @param self +-- @param #cc.Sprite var -- @return ControlStepper#ControlStepper self (return value: cc.ControlStepper) -------------------------------- @@ -169,6 +162,13 @@ -- @param #cc.Event pEvent -- @return ControlStepper#ControlStepper self (return value: cc.ControlStepper) +-------------------------------- +-- +-- @function [parent=#ControlStepper] update +-- @param self +-- @param #float dt +-- @return ControlStepper#ControlStepper self (return value: cc.ControlStepper) + -------------------------------- -- -- @function [parent=#ControlStepper] onTouchBegan diff --git a/cocos/scripting/lua-bindings/auto/api/ControlSwitch.lua b/cocos/scripting/lua-bindings/auto/api/ControlSwitch.lua index 3b303724fe..3d856b0d7e 100644 --- a/cocos/scripting/lua-bindings/auto/api/ControlSwitch.lua +++ b/cocos/scripting/lua-bindings/auto/api/ControlSwitch.lua @@ -4,13 +4,6 @@ -- @extend Control -- @parent_module cc --------------------------------- --- --- @function [parent=#ControlSwitch] setEnabled --- @param self --- @param #bool enabled --- @return ControlSwitch#ControlSwitch self (return value: cc.ControlSwitch) - -------------------------------- -- @overload self, bool -- @overload self, bool, bool @@ -20,6 +13,13 @@ -- @param #bool animated -- @return ControlSwitch#ControlSwitch self (return value: cc.ControlSwitch) +-------------------------------- +-- +-- @function [parent=#ControlSwitch] locationFromTouch +-- @param self +-- @param #cc.Touch touch +-- @return vec2_table#vec2_table ret (return value: vec2_table) + -------------------------------- -- -- @function [parent=#ControlSwitch] isOn @@ -45,13 +45,6 @@ -- @param self -- @return bool#bool ret (return value: bool) --------------------------------- --- --- @function [parent=#ControlSwitch] locationFromTouch --- @param self --- @param #cc.Touch touch --- @return vec2_table#vec2_table ret (return value: vec2_table) - -------------------------------- -- @overload self, cc.Sprite, cc.Sprite, cc.Sprite, cc.Sprite -- @overload self, cc.Sprite, cc.Sprite, cc.Sprite, cc.Sprite, cc.Label, cc.Label @@ -65,6 +58,13 @@ -- @param #cc.Label offLabel -- @return ControlSwitch#ControlSwitch ret (return value: cc.ControlSwitch) +-------------------------------- +-- +-- @function [parent=#ControlSwitch] setEnabled +-- @param self +-- @param #bool enabled +-- @return ControlSwitch#ControlSwitch self (return value: cc.ControlSwitch) + -------------------------------- -- -- @function [parent=#ControlSwitch] onTouchMoved diff --git a/cocos/scripting/lua-bindings/auto/api/EventFrame.lua b/cocos/scripting/lua-bindings/auto/api/EventFrame.lua index 5a6bd41699..67bf03987e 100644 --- a/cocos/scripting/lua-bindings/auto/api/EventFrame.lua +++ b/cocos/scripting/lua-bindings/auto/api/EventFrame.lua @@ -17,13 +17,6 @@ -- @param self -- @return EventFrame#EventFrame self (return value: ccs.EventFrame) --------------------------------- --- --- @function [parent=#EventFrame] setNode --- @param self --- @param #cc.Node node --- @return EventFrame#EventFrame self (return value: ccs.EventFrame) - -------------------------------- -- -- @function [parent=#EventFrame] getEvent @@ -42,6 +35,13 @@ -- @param self -- @return Frame#Frame ret (return value: ccs.Frame) +-------------------------------- +-- +-- @function [parent=#EventFrame] setNode +-- @param self +-- @param #cc.Node node +-- @return EventFrame#EventFrame self (return value: ccs.EventFrame) + -------------------------------- -- -- @function [parent=#EventFrame] EventFrame diff --git a/cocos/scripting/lua-bindings/auto/api/FadeOutUpTiles.lua b/cocos/scripting/lua-bindings/auto/api/FadeOutUpTiles.lua index 89cbf9b4d5..27a49ffe4c 100644 --- a/cocos/scripting/lua-bindings/auto/api/FadeOutUpTiles.lua +++ b/cocos/scripting/lua-bindings/auto/api/FadeOutUpTiles.lua @@ -4,14 +4,6 @@ -- @extend FadeOutTRTiles -- @parent_module cc --------------------------------- --- --- @function [parent=#FadeOutUpTiles] transformTile --- @param self --- @param #vec2_table pos --- @param #float distance --- @return FadeOutUpTiles#FadeOutUpTiles self (return value: cc.FadeOutUpTiles) - -------------------------------- -- creates the action with the grid size and the duration
-- param duration in seconds @@ -27,6 +19,14 @@ -- @param self -- @return FadeOutUpTiles#FadeOutUpTiles ret (return value: cc.FadeOutUpTiles) +-------------------------------- +-- +-- @function [parent=#FadeOutUpTiles] transformTile +-- @param self +-- @param #vec2_table pos +-- @param #float distance +-- @return FadeOutUpTiles#FadeOutUpTiles self (return value: cc.FadeOutUpTiles) + -------------------------------- -- -- @function [parent=#FadeOutUpTiles] testFunc diff --git a/cocos/scripting/lua-bindings/auto/api/Grid3DAction.lua b/cocos/scripting/lua-bindings/auto/api/Grid3DAction.lua index d4dec67c66..5f1be5143f 100644 --- a/cocos/scripting/lua-bindings/auto/api/Grid3DAction.lua +++ b/cocos/scripting/lua-bindings/auto/api/Grid3DAction.lua @@ -4,16 +4,16 @@ -- @extend GridAction -- @parent_module cc --------------------------------- --- returns the grid --- @function [parent=#Grid3DAction] getGrid --- @param self --- @return GridBase#GridBase ret (return value: cc.GridBase) - -------------------------------- -- -- @function [parent=#Grid3DAction] clone -- @param self -- @return Grid3DAction#Grid3DAction ret (return value: cc.Grid3DAction) +-------------------------------- +-- returns the grid +-- @function [parent=#Grid3DAction] getGrid +-- @param self +-- @return GridBase#GridBase ret (return value: cc.GridBase) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/LabelAtlas.lua b/cocos/scripting/lua-bindings/auto/api/LabelAtlas.lua index 3914e33d4e..59e970f112 100644 --- a/cocos/scripting/lua-bindings/auto/api/LabelAtlas.lua +++ b/cocos/scripting/lua-bindings/auto/api/LabelAtlas.lua @@ -24,12 +24,6 @@ -- @param #int startCharMap -- @return bool#bool ret (return value: bool) --------------------------------- --- --- @function [parent=#LabelAtlas] updateAtlasValues --- @param self --- @return LabelAtlas#LabelAtlas self (return value: cc.LabelAtlas) - -------------------------------- -- -- @function [parent=#LabelAtlas] getString @@ -49,6 +43,12 @@ -- @param #int startCharMap -- @return LabelAtlas#LabelAtlas ret (return value: cc.LabelAtlas) +-------------------------------- +-- +-- @function [parent=#LabelAtlas] updateAtlasValues +-- @param self +-- @return LabelAtlas#LabelAtlas self (return value: cc.LabelAtlas) + -------------------------------- -- -- @function [parent=#LabelAtlas] getDescription diff --git a/cocos/scripting/lua-bindings/auto/api/Menu.lua b/cocos/scripting/lua-bindings/auto/api/Menu.lua index dc3c26fe3c..9756ae5d4c 100644 --- a/cocos/scripting/lua-bindings/auto/api/Menu.lua +++ b/cocos/scripting/lua-bindings/auto/api/Menu.lua @@ -57,18 +57,20 @@ -- @param #string name -- @return Menu#Menu self (return value: cc.Menu) --------------------------------- --- --- @function [parent=#Menu] isOpacityModifyRGB --- @param self --- @return bool#bool ret (return value: bool) - -------------------------------- -- -- @function [parent=#Menu] getDescription -- @param self -- @return string#string ret (return value: string) +-------------------------------- +-- +-- @function [parent=#Menu] removeChild +-- @param self +-- @param #cc.Node child +-- @param #bool cleanup +-- @return Menu#Menu self (return value: cc.Menu) + -------------------------------- -- -- @function [parent=#Menu] setOpacityModifyRGB @@ -78,10 +80,8 @@ -------------------------------- -- --- @function [parent=#Menu] removeChild +-- @function [parent=#Menu] isOpacityModifyRGB -- @param self --- @param #cc.Node child --- @param #bool cleanup --- @return Menu#Menu self (return value: cc.Menu) +-- @return bool#bool ret (return value: bool) return nil diff --git a/cocos/scripting/lua-bindings/auto/api/PageTurn3D.lua b/cocos/scripting/lua-bindings/auto/api/PageTurn3D.lua index 97f9d86057..80b4fcd27d 100644 --- a/cocos/scripting/lua-bindings/auto/api/PageTurn3D.lua +++ b/cocos/scripting/lua-bindings/auto/api/PageTurn3D.lua @@ -4,12 +4,6 @@ -- @extend Grid3DAction -- @parent_module cc --------------------------------- --- --- @function [parent=#PageTurn3D] getGrid --- @param self --- @return GridBase#GridBase ret (return value: cc.GridBase) - -------------------------------- -- create the action -- @function [parent=#PageTurn3D] create @@ -24,6 +18,12 @@ -- @param self -- @return PageTurn3D#PageTurn3D ret (return value: cc.PageTurn3D) +-------------------------------- +-- +-- @function [parent=#PageTurn3D] getGrid +-- @param self +-- @return GridBase#GridBase ret (return value: cc.GridBase) + -------------------------------- -- param time in seconds -- @function [parent=#PageTurn3D] update diff --git a/cocos/scripting/lua-bindings/auto/api/ParticleSystem.lua b/cocos/scripting/lua-bindings/auto/api/ParticleSystem.lua index 74049ad433..86976cc031 100644 --- a/cocos/scripting/lua-bindings/auto/api/ParticleSystem.lua +++ b/cocos/scripting/lua-bindings/auto/api/ParticleSystem.lua @@ -79,13 +79,6 @@ -- @param self -- @return float#float ret (return value: float) --------------------------------- --- --- @function [parent=#ParticleSystem] setRotation --- @param self --- @param #float newRotation --- @return ParticleSystem#ParticleSystem self (return value: cc.ParticleSystem) - -------------------------------- -- -- @function [parent=#ParticleSystem] setTangentialAccel @@ -93,20 +86,6 @@ -- @param #float t -- @return ParticleSystem#ParticleSystem self (return value: cc.ParticleSystem) --------------------------------- --- --- @function [parent=#ParticleSystem] setScaleY --- @param self --- @param #float newScaleY --- @return ParticleSystem#ParticleSystem self (return value: cc.ParticleSystem) - --------------------------------- --- --- @function [parent=#ParticleSystem] setScaleX --- @param self --- @param #float newScaleX --- @return ParticleSystem#ParticleSystem self (return value: cc.ParticleSystem) - -------------------------------- -- -- @function [parent=#ParticleSystem] getRadialAccel @@ -309,12 +288,6 @@ -- @param self -- @return float#float ret (return value: float) --------------------------------- --- --- @function [parent=#ParticleSystem] isOpacityModifyRGB --- @param self --- @return bool#bool ret (return value: bool) - -------------------------------- -- -- @function [parent=#ParticleSystem] isActive @@ -527,13 +500,6 @@ -- @param self -- @return bool#bool ret (return value: bool) --------------------------------- --- --- @function [parent=#ParticleSystem] setScale --- @param self --- @param #float s --- @return ParticleSystem#ParticleSystem self (return value: cc.ParticleSystem) - -------------------------------- -- emission rate of the particles -- @function [parent=#ParticleSystem] getEmissionRate @@ -559,13 +525,6 @@ -- @param #float sizeVar -- @return ParticleSystem#ParticleSystem self (return value: cc.ParticleSystem) --------------------------------- --- does the alpha value modify color --- @function [parent=#ParticleSystem] setOpacityModifyRGB --- @param self --- @param #bool opacityModifyRGB --- @return ParticleSystem#ParticleSystem self (return value: cc.ParticleSystem) - -------------------------------- -- Add a particle to the emitter -- @function [parent=#ParticleSystem] addParticle @@ -677,6 +636,40 @@ -- @param #int numberOfParticles -- @return ParticleSystem#ParticleSystem ret (return value: cc.ParticleSystem) +-------------------------------- +-- +-- @function [parent=#ParticleSystem] setScaleY +-- @param self +-- @param #float newScaleY +-- @return ParticleSystem#ParticleSystem self (return value: cc.ParticleSystem) + +-------------------------------- +-- +-- @function [parent=#ParticleSystem] setScaleX +-- @param self +-- @param #float newScaleX +-- @return ParticleSystem#ParticleSystem self (return value: cc.ParticleSystem) + +-------------------------------- +-- +-- @function [parent=#ParticleSystem] isOpacityModifyRGB +-- @param self +-- @return bool#bool ret (return value: bool) + +-------------------------------- +-- does the alpha value modify color +-- @function [parent=#ParticleSystem] setOpacityModifyRGB +-- @param self +-- @param #bool opacityModifyRGB +-- @return ParticleSystem#ParticleSystem self (return value: cc.ParticleSystem) + +-------------------------------- +-- +-- @function [parent=#ParticleSystem] setScale +-- @param self +-- @param #float s +-- @return ParticleSystem#ParticleSystem self (return value: cc.ParticleSystem) + -------------------------------- -- -- @function [parent=#ParticleSystem] update @@ -684,4 +677,11 @@ -- @param #float dt -- @return ParticleSystem#ParticleSystem self (return value: cc.ParticleSystem) +-------------------------------- +-- +-- @function [parent=#ParticleSystem] setRotation +-- @param self +-- @param #float newRotation +-- @return ParticleSystem#ParticleSystem self (return value: cc.ParticleSystem) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/RichText.lua b/cocos/scripting/lua-bindings/auto/api/RichText.lua index dc790b5b9d..dfb3d59733 100644 --- a/cocos/scripting/lua-bindings/auto/api/RichText.lua +++ b/cocos/scripting/lua-bindings/auto/api/RichText.lua @@ -12,13 +12,6 @@ -- @param #int index -- @return RichText#RichText self (return value: ccui.RichText) --------------------------------- --- --- @function [parent=#RichText] setAnchorPoint --- @param self --- @param #vec2_table pt --- @return RichText#RichText self (return value: ccui.RichText) - -------------------------------- -- -- @function [parent=#RichText] pushBackElement @@ -26,13 +19,6 @@ -- @param #ccui.RichElement element -- @return RichText#RichText self (return value: ccui.RichText) --------------------------------- --- --- @function [parent=#RichText] ignoreContentAdaptWithSize --- @param self --- @param #bool ignore --- @return RichText#RichText self (return value: ccui.RichText) - -------------------------------- -- -- @function [parent=#RichText] setVerticalSpace @@ -60,6 +46,13 @@ -- @param self -- @return RichText#RichText ret (return value: ccui.RichText) +-------------------------------- +-- +-- @function [parent=#RichText] setAnchorPoint +-- @param self +-- @param #vec2_table pt +-- @return RichText#RichText self (return value: ccui.RichText) + -------------------------------- -- -- @function [parent=#RichText] getDescription @@ -72,6 +65,13 @@ -- @param self -- @return size_table#size_table ret (return value: size_table) +-------------------------------- +-- +-- @function [parent=#RichText] ignoreContentAdaptWithSize +-- @param self +-- @param #bool ignore +-- @return RichText#RichText self (return value: ccui.RichText) + -------------------------------- -- -- @function [parent=#RichText] RichText diff --git a/cocos/scripting/lua-bindings/auto/api/Sprite.lua b/cocos/scripting/lua-bindings/auto/api/Sprite.lua index 3e1f0bcfaa..d728021a75 100644 --- a/cocos/scripting/lua-bindings/auto/api/Sprite.lua +++ b/cocos/scripting/lua-bindings/auto/api/Sprite.lua @@ -21,7 +21,7 @@ -- @return Sprite#Sprite self (return value: cc.Sprite) -------------------------------- --- returns the Texture2D object used by the sprite +-- Returns the Texture2D object used by the sprite. -- @function [parent=#Sprite] getTexture -- @param self -- @return Texture2D#Texture2D ret (return value: cc.Texture2D) @@ -43,7 +43,7 @@ -- @return Sprite#Sprite self (return value: cc.Sprite) -------------------------------- --- Returns the batch node object if this sprite is rendered by SpriteBatchNode
+-- Returns the batch node object if this sprite is rendered by SpriteBatchNode.
-- return The SpriteBatchNode object if this sprite is rendered by SpriteBatchNode,
-- nullptr if the sprite isn't used batch node. -- @function [parent=#Sprite] getBatchNode @@ -63,12 +63,6 @@ -- @param #bool cleanup -- @return Sprite#Sprite self (return value: cc.Sprite) --------------------------------- --- Updates the quad according the rotation, position, scale values. --- @function [parent=#Sprite] updateTransform --- @param self --- @return Sprite#Sprite self (return value: cc.Sprite) - -------------------------------- -- @overload self, rect_table, bool, size_table -- @overload self, rect_table @@ -80,7 +74,7 @@ -- @return Sprite#Sprite self (return value: cc.Sprite) -------------------------------- --- Returns whether or not a SpriteFrame is being displayed +-- Returns whether or not a SpriteFrame is being displayed. -- @function [parent=#Sprite] isFrameDisplayed -- @param self -- @param #cc.SpriteFrame frame @@ -116,7 +110,7 @@ -------------------------------- -- / @{/ @name Animation methods
-- Changes the display frame with animation name and index.
--- The animation name will be get from the AnimationCache +-- The animation name will be get from the AnimationCache. -- @function [parent=#Sprite] setDisplayFrameWithAnimationName -- @param self -- @param #string animationName @@ -124,7 +118,7 @@ -- @return Sprite#Sprite self (return value: cc.Sprite) -------------------------------- --- Sets the weak reference of the TextureAtlas when the sprite is rendered using via SpriteBatchNode +-- Sets the weak reference of the TextureAtlas when the sprite is rendered using via SpriteBatchNode. -- @function [parent=#Sprite] setTextureAtlas -- @param self -- @param #cc.TextureAtlas textureAtlas @@ -145,7 +139,7 @@ -------------------------------- -- Sets the index used on the TextureAtlas.
--- warning Don't modify this value unless you know what you are doing +-- warning Don't modify this value unless you know what you are doing. -- @function [parent=#Sprite] setAtlasIndex -- @param self -- @param #long atlasIndex @@ -165,7 +159,7 @@ -- @return bool#bool ret (return value: bool) -------------------------------- --- Returns the rect of the Sprite in points +-- Returns the rect of the Sprite in points. -- @function [parent=#Sprite] getTextureRect -- @param self -- @return rect_table#rect_table ret (return value: rect_table) @@ -173,7 +167,7 @@ -------------------------------- -- / @{/ @name Functions inherited from TextureProtocol
-- code
--- When this function bound into js or lua,the parameter will be changed
+-- When this function bound into js or lua,the parameter will be changed.
-- In js: var setBlendFunc(var src, var dst)
-- In lua: local setBlendFunc(local src, local dst)
-- endcode @@ -183,7 +177,7 @@ -- @return Sprite#Sprite self (return value: cc.Sprite) -------------------------------- --- Gets the weak reference of the TextureAtlas when the sprite is rendered using via SpriteBatchNode +-- Gets the weak reference of the TextureAtlas when the sprite is rendered using via SpriteBatchNode. -- @function [parent=#Sprite] getTextureAtlas -- @param self -- @return TextureAtlas#TextureAtlas ret (return value: cc.TextureAtlas) @@ -245,7 +239,7 @@ -- A SpriteFrame will be fetched from the SpriteFrameCache by spriteFrameName param.
-- If the SpriteFrame doesn't exist it will raise an exception.
-- param spriteFrameName A null terminated string which indicates the sprite frame name.
--- return An autoreleased sprite object +-- return An autoreleased sprite object. -- @function [parent=#Sprite] createWithSpriteFrameName -- @param self -- @param #string spriteFrameName @@ -253,22 +247,13 @@ -------------------------------- -- Creates a sprite with an sprite frame.
--- param spriteFrame A sprite frame which involves a texture and a rect
--- return An autoreleased sprite object +-- param spriteFrame A sprite frame which involves a texture and a rect.
+-- return An autoreleased sprite object. -- @function [parent=#Sprite] createWithSpriteFrame -- @param self -- @param #cc.SpriteFrame spriteFrame -- @return Sprite#Sprite ret (return value: cc.Sprite) --------------------------------- --- --- @function [parent=#Sprite] draw --- @param self --- @param #cc.Renderer renderer --- @param #mat4_table transform --- @param #unsigned int flags --- @return Sprite#Sprite self (return value: cc.Sprite) - -------------------------------- -- @overload self, cc.Node, int, string -- @overload self, cc.Node, int, int @@ -279,33 +264,6 @@ -- @param #int tag -- @return Sprite#Sprite self (return value: cc.Sprite) --------------------------------- --- --- @function [parent=#Sprite] setScaleY --- @param self --- @param #float scaleY --- @return Sprite#Sprite self (return value: cc.Sprite) - --------------------------------- --- / @{/ @name Functions inherited from Node --- @function [parent=#Sprite] setScaleX --- @param self --- @param #float scaleX --- @return Sprite#Sprite self (return value: cc.Sprite) - --------------------------------- --- --- @function [parent=#Sprite] isOpacityModifyRGB --- @param self --- @return bool#bool ret (return value: bool) - --------------------------------- --- --- @function [parent=#Sprite] setPositionZ --- @param self --- @param #float positionZ --- @return Sprite#Sprite self (return value: cc.Sprite) - -------------------------------- -- -- @function [parent=#Sprite] setAnchorPoint @@ -320,17 +278,11 @@ -- @param #float rotationX -- @return Sprite#Sprite self (return value: cc.Sprite) --------------------------------- --- / @} --- @function [parent=#Sprite] getDescription --- @param self --- @return string#string ret (return value: string) - -------------------------------- -- --- @function [parent=#Sprite] setRotationSkewY +-- @function [parent=#Sprite] setScaleY -- @param self --- @param #float rotationY +-- @param #float scaleY -- @return Sprite#Sprite self (return value: cc.Sprite) -------------------------------- @@ -344,25 +296,9 @@ -------------------------------- -- --- @function [parent=#Sprite] reorderChild +-- @function [parent=#Sprite] isOpacityModifyRGB -- @param self --- @param #cc.Node child --- @param #int zOrder --- @return Sprite#Sprite self (return value: cc.Sprite) - --------------------------------- --- --- @function [parent=#Sprite] removeChild --- @param self --- @param #cc.Node child --- @param #bool cleanup --- @return Sprite#Sprite self (return value: cc.Sprite) - --------------------------------- --- --- @function [parent=#Sprite] sortAllChildren --- @param self --- @return Sprite#Sprite self (return value: cc.Sprite) +-- @return bool#bool ret (return value: bool) -------------------------------- -- @@ -378,6 +314,84 @@ -- @param #float rotation -- @return Sprite#Sprite self (return value: cc.Sprite) +-------------------------------- +-- +-- @function [parent=#Sprite] draw +-- @param self +-- @param #cc.Renderer renderer +-- @param #mat4_table transform +-- @param #unsigned int flags +-- @return Sprite#Sprite self (return value: cc.Sprite) + +-------------------------------- +-- / @{/ @name Functions inherited from Node. +-- @function [parent=#Sprite] setScaleX +-- @param self +-- @param #float scaleX +-- @return Sprite#Sprite self (return value: cc.Sprite) + +-------------------------------- +-- / @} +-- @function [parent=#Sprite] getDescription +-- @param self +-- @return string#string ret (return value: string) + +-------------------------------- +-- +-- @function [parent=#Sprite] setRotationSkewY +-- @param self +-- @param #float rotationY +-- @return Sprite#Sprite self (return value: cc.Sprite) + +-------------------------------- +-- +-- @function [parent=#Sprite] sortAllChildren +-- @param self +-- @return Sprite#Sprite self (return value: cc.Sprite) + +-------------------------------- +-- +-- @function [parent=#Sprite] reorderChild +-- @param self +-- @param #cc.Node child +-- @param #int zOrder +-- @return Sprite#Sprite self (return value: cc.Sprite) + +-------------------------------- +-- +-- @function [parent=#Sprite] ignoreAnchorPointForPosition +-- @param self +-- @param #bool value +-- @return Sprite#Sprite self (return value: cc.Sprite) + +-------------------------------- +-- +-- @function [parent=#Sprite] setPositionZ +-- @param self +-- @param #float positionZ +-- @return Sprite#Sprite self (return value: cc.Sprite) + +-------------------------------- +-- +-- @function [parent=#Sprite] removeChild +-- @param self +-- @param #cc.Node child +-- @param #bool cleanup +-- @return Sprite#Sprite self (return value: cc.Sprite) + +-------------------------------- +-- Updates the quad according the rotation, position, scale values. +-- @function [parent=#Sprite] updateTransform +-- @param self +-- @return Sprite#Sprite self (return value: cc.Sprite) + +-------------------------------- +-- +-- @function [parent=#Sprite] setSkewX +-- @param self +-- @param #float sx +-- @return Sprite#Sprite self (return value: cc.Sprite) + -------------------------------- -- -- @function [parent=#Sprite] setSkewY @@ -392,18 +406,4 @@ -- @param #bool bVisible -- @return Sprite#Sprite self (return value: cc.Sprite) --------------------------------- --- --- @function [parent=#Sprite] setSkewX --- @param self --- @param #float sx --- @return Sprite#Sprite self (return value: cc.Sprite) - --------------------------------- --- --- @function [parent=#Sprite] ignoreAnchorPointForPosition --- @param self --- @param #bool value --- @return Sprite#Sprite self (return value: cc.Sprite) - return nil diff --git a/cocos/scripting/lua-bindings/auto/api/TextField.lua b/cocos/scripting/lua-bindings/auto/api/TextField.lua index 790b4e2a94..8a9786674e 100644 --- a/cocos/scripting/lua-bindings/auto/api/TextField.lua +++ b/cocos/scripting/lua-bindings/auto/api/TextField.lua @@ -233,13 +233,6 @@ -- @param #bool enable -- @return TextField#TextField self (return value: ccui.TextField) --------------------------------- --- --- @function [parent=#TextField] hitTest --- @param self --- @param #vec2_table pt --- @return bool#bool ret (return value: bool) - -------------------------------- -- -- @function [parent=#TextField] setMaxLength @@ -295,6 +288,13 @@ -- @param #float dt -- @return TextField#TextField self (return value: ccui.TextField) +-------------------------------- +-- +-- @function [parent=#TextField] hitTest +-- @param self +-- @param #vec2_table pt +-- @return bool#bool ret (return value: bool) + -------------------------------- -- -- @function [parent=#TextField] getVirtualRendererSize diff --git a/cocos/scripting/lua-bindings/auto/api/TextureFrame.lua b/cocos/scripting/lua-bindings/auto/api/TextureFrame.lua index 29c438e40f..d7296b8bb6 100644 --- a/cocos/scripting/lua-bindings/auto/api/TextureFrame.lua +++ b/cocos/scripting/lua-bindings/auto/api/TextureFrame.lua @@ -10,13 +10,6 @@ -- @param self -- @return string#string ret (return value: string) --------------------------------- --- --- @function [parent=#TextureFrame] setNode --- @param self --- @param #cc.Node node --- @return TextureFrame#TextureFrame self (return value: ccs.TextureFrame) - -------------------------------- -- -- @function [parent=#TextureFrame] setTextureName @@ -36,6 +29,13 @@ -- @param self -- @return Frame#Frame ret (return value: ccs.Frame) +-------------------------------- +-- +-- @function [parent=#TextureFrame] setNode +-- @param self +-- @param #cc.Node node +-- @return TextureFrame#TextureFrame self (return value: ccs.TextureFrame) + -------------------------------- -- -- @function [parent=#TextureFrame] TextureFrame diff --git a/cocos/scripting/lua-bindings/auto/api/TiledGrid3DAction.lua b/cocos/scripting/lua-bindings/auto/api/TiledGrid3DAction.lua index 41ef90697f..a6204fdfcd 100644 --- a/cocos/scripting/lua-bindings/auto/api/TiledGrid3DAction.lua +++ b/cocos/scripting/lua-bindings/auto/api/TiledGrid3DAction.lua @@ -4,16 +4,16 @@ -- @extend GridAction -- @parent_module cc --------------------------------- --- returns the grid --- @function [parent=#TiledGrid3DAction] getGrid --- @param self --- @return GridBase#GridBase ret (return value: cc.GridBase) - -------------------------------- -- -- @function [parent=#TiledGrid3DAction] clone -- @param self -- @return TiledGrid3DAction#TiledGrid3DAction ret (return value: cc.TiledGrid3DAction) +-------------------------------- +-- returns the grid +-- @function [parent=#TiledGrid3DAction] getGrid +-- @param self +-- @return GridBase#GridBase ret (return value: cc.GridBase) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/TransitionSlideInB.lua b/cocos/scripting/lua-bindings/auto/api/TransitionSlideInB.lua index 0cc097f834..8fe5ea6e39 100644 --- a/cocos/scripting/lua-bindings/auto/api/TransitionSlideInB.lua +++ b/cocos/scripting/lua-bindings/auto/api/TransitionSlideInB.lua @@ -4,12 +4,6 @@ -- @extend TransitionSlideInL -- @parent_module cc --------------------------------- --- returns the action that will be performed by the incoming and outgoing scene --- @function [parent=#TransitionSlideInB] action --- @param self --- @return ActionInterval#ActionInterval ret (return value: cc.ActionInterval) - -------------------------------- -- -- @function [parent=#TransitionSlideInB] create @@ -18,4 +12,10 @@ -- @param #cc.Scene scene -- @return TransitionSlideInB#TransitionSlideInB ret (return value: cc.TransitionSlideInB) +-------------------------------- +-- returns the action that will be performed by the incoming and outgoing scene +-- @function [parent=#TransitionSlideInB] action +-- @param self +-- @return ActionInterval#ActionInterval ret (return value: cc.ActionInterval) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/TransitionSlideInR.lua b/cocos/scripting/lua-bindings/auto/api/TransitionSlideInR.lua index 3de6ed9172..bd4f2e8a33 100644 --- a/cocos/scripting/lua-bindings/auto/api/TransitionSlideInR.lua +++ b/cocos/scripting/lua-bindings/auto/api/TransitionSlideInR.lua @@ -4,12 +4,6 @@ -- @extend TransitionSlideInL -- @parent_module cc --------------------------------- --- returns the action that will be performed by the incoming and outgoing scene --- @function [parent=#TransitionSlideInR] action --- @param self --- @return ActionInterval#ActionInterval ret (return value: cc.ActionInterval) - -------------------------------- -- -- @function [parent=#TransitionSlideInR] create @@ -18,4 +12,10 @@ -- @param #cc.Scene scene -- @return TransitionSlideInR#TransitionSlideInR ret (return value: cc.TransitionSlideInR) +-------------------------------- +-- returns the action that will be performed by the incoming and outgoing scene +-- @function [parent=#TransitionSlideInR] action +-- @param self +-- @return ActionInterval#ActionInterval ret (return value: cc.ActionInterval) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/TransitionSlideInT.lua b/cocos/scripting/lua-bindings/auto/api/TransitionSlideInT.lua index c04116778f..93f8fefc85 100644 --- a/cocos/scripting/lua-bindings/auto/api/TransitionSlideInT.lua +++ b/cocos/scripting/lua-bindings/auto/api/TransitionSlideInT.lua @@ -4,12 +4,6 @@ -- @extend TransitionSlideInL -- @parent_module cc --------------------------------- --- returns the action that will be performed by the incoming and outgoing scene --- @function [parent=#TransitionSlideInT] action --- @param self --- @return ActionInterval#ActionInterval ret (return value: cc.ActionInterval) - -------------------------------- -- -- @function [parent=#TransitionSlideInT] create @@ -18,4 +12,10 @@ -- @param #cc.Scene scene -- @return TransitionSlideInT#TransitionSlideInT ret (return value: cc.TransitionSlideInT) +-------------------------------- +-- returns the action that will be performed by the incoming and outgoing scene +-- @function [parent=#TransitionSlideInT] action +-- @param self +-- @return ActionInterval#ActionInterval ret (return value: cc.ActionInterval) + return nil diff --git a/cocos/scripting/lua-bindings/auto/lua_cocos2dx_3d_auto.cpp b/cocos/scripting/lua-bindings/auto/lua_cocos2dx_3d_auto.cpp index 14a6c87ab6..173d11db24 100644 --- a/cocos/scripting/lua-bindings/auto/lua_cocos2dx_3d_auto.cpp +++ b/cocos/scripting/lua-bindings/auto/lua_cocos2dx_3d_auto.cpp @@ -2733,62 +2733,6 @@ int lua_cocos2dx_3d_BillBoard_getMode(lua_State* tolua_S) return 0; } -int lua_cocos2dx_3d_BillBoard_visit(lua_State* tolua_S) -{ - int argc = 0; - cocos2d::BillBoard* 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.BillBoard",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocos2d::BillBoard*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_3d_BillBoard_visit'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 3) - { - cocos2d::Renderer* arg0; - cocos2d::Mat4 arg1; - unsigned int arg2; - - ok &= luaval_to_object(tolua_S, 2, "cc.Renderer",&arg0); - - ok &= luaval_to_mat4(tolua_S, 3, &arg1, "cc.BillBoard:visit"); - - ok &= luaval_to_uint32(tolua_S, 4,&arg2, "cc.BillBoard:visit"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_3d_BillBoard_visit'", nullptr); - return 0; - } - cobj->visit(arg0, arg1, arg2); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.BillBoard:visit",argc, 3); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_3d_BillBoard_visit'.",&tolua_err); -#endif - - return 0; -} int lua_cocos2dx_3d_BillBoard_setMode(lua_State* tolua_S) { int argc = 0; @@ -3012,7 +2956,6 @@ int lua_register_cocos2dx_3d_BillBoard(lua_State* tolua_S) tolua_beginmodule(tolua_S,"BillBoard"); tolua_function(tolua_S,"getMode",lua_cocos2dx_3d_BillBoard_getMode); - tolua_function(tolua_S,"visit",lua_cocos2dx_3d_BillBoard_visit); tolua_function(tolua_S,"setMode",lua_cocos2dx_3d_BillBoard_setMode); tolua_function(tolua_S,"create", lua_cocos2dx_3d_BillBoard_create); tolua_function(tolua_S,"createWithTexture", lua_cocos2dx_3d_BillBoard_createWithTexture); diff --git a/cocos/scripting/lua-bindings/auto/lua_cocos2dx_3d_auto.hpp b/cocos/scripting/lua-bindings/auto/lua_cocos2dx_3d_auto.hpp index 11a7c6f625..3963c71800 100644 --- a/cocos/scripting/lua-bindings/auto/lua_cocos2dx_3d_auto.hpp +++ b/cocos/scripting/lua-bindings/auto/lua_cocos2dx_3d_auto.hpp @@ -74,7 +74,6 @@ int register_all_cocos2dx_3d(lua_State* tolua_S); - #endif // __cocos2dx_3d_h__ diff --git a/cocos/scripting/lua-bindings/auto/lua_cocos2dx_auto.cpp b/cocos/scripting/lua-bindings/auto/lua_cocos2dx_auto.cpp index 78e5f8b5a7..9adc9c5ed1 100644 --- a/cocos/scripting/lua-bindings/auto/lua_cocos2dx_auto.cpp +++ b/cocos/scripting/lua-bindings/auto/lua_cocos2dx_auto.cpp @@ -29401,53 +29401,6 @@ int lua_register_cocos2dx_GridAction(lua_State* tolua_S) return 1; } -int lua_cocos2dx_Grid3DAction_getGrid(lua_State* tolua_S) -{ - int argc = 0; - cocos2d::Grid3DAction* 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.Grid3DAction",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocos2d::Grid3DAction*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Grid3DAction_getGrid'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Grid3DAction_getGrid'", nullptr); - return 0; - } - cocos2d::GridBase* ret = cobj->getGrid(); - object_to_luaval(tolua_S, "cc.GridBase",(cocos2d::GridBase*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Grid3DAction:getGrid",argc, 0); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Grid3DAction_getGrid'.",&tolua_err); -#endif - - return 0; -} static int lua_cocos2dx_Grid3DAction_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (Grid3DAction)"); @@ -29460,7 +29413,6 @@ int lua_register_cocos2dx_Grid3DAction(lua_State* tolua_S) tolua_cclass(tolua_S,"Grid3DAction","cc.Grid3DAction","cc.GridAction",nullptr); tolua_beginmodule(tolua_S,"Grid3DAction"); - tolua_function(tolua_S,"getGrid",lua_cocos2dx_Grid3DAction_getGrid); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::Grid3DAction).name(); g_luaType[typeName] = "cc.Grid3DAction"; @@ -29468,53 +29420,6 @@ int lua_register_cocos2dx_Grid3DAction(lua_State* tolua_S) return 1; } -int lua_cocos2dx_TiledGrid3DAction_getGrid(lua_State* tolua_S) -{ - int argc = 0; - cocos2d::TiledGrid3DAction* 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.TiledGrid3DAction",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocos2d::TiledGrid3DAction*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TiledGrid3DAction_getGrid'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TiledGrid3DAction_getGrid'", nullptr); - return 0; - } - cocos2d::GridBase* ret = cobj->getGrid(); - object_to_luaval(tolua_S, "cc.GridBase",(cocos2d::GridBase*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TiledGrid3DAction:getGrid",argc, 0); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TiledGrid3DAction_getGrid'.",&tolua_err); -#endif - - return 0; -} static int lua_cocos2dx_TiledGrid3DAction_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (TiledGrid3DAction)"); @@ -29527,7 +29432,6 @@ int lua_register_cocos2dx_TiledGrid3DAction(lua_State* tolua_S) tolua_cclass(tolua_S,"TiledGrid3DAction","cc.TiledGrid3DAction","cc.GridAction",nullptr); tolua_beginmodule(tolua_S,"TiledGrid3DAction"); - tolua_function(tolua_S,"getGrid",lua_cocos2dx_TiledGrid3DAction_getGrid); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TiledGrid3DAction).name(); g_luaType[typeName] = "cc.TiledGrid3DAction"; @@ -31638,53 +31542,6 @@ int lua_register_cocos2dx_Twirl(lua_State* tolua_S) return 1; } -int lua_cocos2dx_PageTurn3D_getGrid(lua_State* tolua_S) -{ - int argc = 0; - cocos2d::PageTurn3D* 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.PageTurn3D",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocos2d::PageTurn3D*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_PageTurn3D_getGrid'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_PageTurn3D_getGrid'", nullptr); - return 0; - } - cocos2d::GridBase* ret = cobj->getGrid(); - object_to_luaval(tolua_S, "cc.GridBase",(cocos2d::GridBase*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.PageTurn3D:getGrid",argc, 0); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_PageTurn3D_getGrid'.",&tolua_err); -#endif - - return 0; -} int lua_cocos2dx_PageTurn3D_create(lua_State* tolua_S) { int argc = 0; @@ -31735,7 +31592,6 @@ int lua_register_cocos2dx_PageTurn3D(lua_State* tolua_S) tolua_cclass(tolua_S,"PageTurn3D","cc.PageTurn3D","cc.Grid3DAction",nullptr); tolua_beginmodule(tolua_S,"PageTurn3D"); - tolua_function(tolua_S,"getGrid",lua_cocos2dx_PageTurn3D_getGrid); tolua_function(tolua_S,"create", lua_cocos2dx_PageTurn3D_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::PageTurn3D).name(); @@ -32423,59 +32279,6 @@ int lua_register_cocos2dx_FadeOutBLTiles(lua_State* tolua_S) return 1; } -int lua_cocos2dx_FadeOutUpTiles_transformTile(lua_State* tolua_S) -{ - int argc = 0; - cocos2d::FadeOutUpTiles* 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.FadeOutUpTiles",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocos2d::FadeOutUpTiles*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_FadeOutUpTiles_transformTile'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 2) - { - cocos2d::Vec2 arg0; - double arg1; - - ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.FadeOutUpTiles:transformTile"); - - ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.FadeOutUpTiles:transformTile"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_FadeOutUpTiles_transformTile'", nullptr); - return 0; - } - cobj->transformTile(arg0, arg1); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.FadeOutUpTiles:transformTile",argc, 2); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FadeOutUpTiles_transformTile'.",&tolua_err); -#endif - - return 0; -} int lua_cocos2dx_FadeOutUpTiles_create(lua_State* tolua_S) { int argc = 0; @@ -32526,7 +32329,6 @@ int lua_register_cocos2dx_FadeOutUpTiles(lua_State* tolua_S) tolua_cclass(tolua_S,"FadeOutUpTiles","cc.FadeOutUpTiles","cc.FadeOutTRTiles",nullptr); tolua_beginmodule(tolua_S,"FadeOutUpTiles"); - tolua_function(tolua_S,"transformTile",lua_cocos2dx_FadeOutUpTiles_transformTile); tolua_function(tolua_S,"create", lua_cocos2dx_FadeOutUpTiles_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::FadeOutUpTiles).name(); @@ -37348,53 +37150,6 @@ int lua_cocos2dx_LabelAtlas_initWithString(lua_State* tolua_S) return 0; } -int lua_cocos2dx_LabelAtlas_updateAtlasValues(lua_State* tolua_S) -{ - int argc = 0; - cocos2d::LabelAtlas* 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.LabelAtlas",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocos2d::LabelAtlas*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_LabelAtlas_updateAtlasValues'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_LabelAtlas_updateAtlasValues'", nullptr); - return 0; - } - cobj->updateAtlasValues(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.LabelAtlas:updateAtlasValues",argc, 0); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_LabelAtlas_updateAtlasValues'.",&tolua_err); -#endif - - return 0; -} int lua_cocos2dx_LabelAtlas_getString(lua_State* tolua_S) { int argc = 0; @@ -37529,7 +37284,6 @@ int lua_register_cocos2dx_LabelAtlas(lua_State* tolua_S) tolua_beginmodule(tolua_S,"LabelAtlas"); tolua_function(tolua_S,"setString",lua_cocos2dx_LabelAtlas_setString); tolua_function(tolua_S,"initWithString",lua_cocos2dx_LabelAtlas_initWithString); - tolua_function(tolua_S,"updateAtlasValues",lua_cocos2dx_LabelAtlas_updateAtlasValues); tolua_function(tolua_S,"getString",lua_cocos2dx_LabelAtlas_getString); tolua_function(tolua_S,"_create", lua_cocos2dx_LabelAtlas_create); tolua_endmodule(tolua_S); @@ -43367,53 +43121,6 @@ int lua_register_cocos2dx_TransitionSlideInL(lua_State* tolua_S) return 1; } -int lua_cocos2dx_TransitionSlideInR_action(lua_State* tolua_S) -{ - int argc = 0; - cocos2d::TransitionSlideInR* 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.TransitionSlideInR",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocos2d::TransitionSlideInR*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TransitionSlideInR_action'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionSlideInR_action'", nullptr); - return 0; - } - cocos2d::ActionInterval* ret = cobj->action(); - object_to_luaval(tolua_S, "cc.ActionInterval",(cocos2d::ActionInterval*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TransitionSlideInR:action",argc, 0); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionSlideInR_action'.",&tolua_err); -#endif - - return 0; -} int lua_cocos2dx_TransitionSlideInR_create(lua_State* tolua_S) { int argc = 0; @@ -43464,7 +43171,6 @@ int lua_register_cocos2dx_TransitionSlideInR(lua_State* tolua_S) tolua_cclass(tolua_S,"TransitionSlideInR","cc.TransitionSlideInR","cc.TransitionSlideInL",nullptr); tolua_beginmodule(tolua_S,"TransitionSlideInR"); - tolua_function(tolua_S,"action",lua_cocos2dx_TransitionSlideInR_action); tolua_function(tolua_S,"create", lua_cocos2dx_TransitionSlideInR_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TransitionSlideInR).name(); @@ -43473,53 +43179,6 @@ int lua_register_cocos2dx_TransitionSlideInR(lua_State* tolua_S) return 1; } -int lua_cocos2dx_TransitionSlideInB_action(lua_State* tolua_S) -{ - int argc = 0; - cocos2d::TransitionSlideInB* 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.TransitionSlideInB",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocos2d::TransitionSlideInB*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TransitionSlideInB_action'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionSlideInB_action'", nullptr); - return 0; - } - cocos2d::ActionInterval* ret = cobj->action(); - object_to_luaval(tolua_S, "cc.ActionInterval",(cocos2d::ActionInterval*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TransitionSlideInB:action",argc, 0); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionSlideInB_action'.",&tolua_err); -#endif - - return 0; -} int lua_cocos2dx_TransitionSlideInB_create(lua_State* tolua_S) { int argc = 0; @@ -43570,7 +43229,6 @@ int lua_register_cocos2dx_TransitionSlideInB(lua_State* tolua_S) tolua_cclass(tolua_S,"TransitionSlideInB","cc.TransitionSlideInB","cc.TransitionSlideInL",nullptr); tolua_beginmodule(tolua_S,"TransitionSlideInB"); - tolua_function(tolua_S,"action",lua_cocos2dx_TransitionSlideInB_action); tolua_function(tolua_S,"create", lua_cocos2dx_TransitionSlideInB_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TransitionSlideInB).name(); @@ -43579,53 +43237,6 @@ int lua_register_cocos2dx_TransitionSlideInB(lua_State* tolua_S) return 1; } -int lua_cocos2dx_TransitionSlideInT_action(lua_State* tolua_S) -{ - int argc = 0; - cocos2d::TransitionSlideInT* 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.TransitionSlideInT",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocos2d::TransitionSlideInT*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TransitionSlideInT_action'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionSlideInT_action'", nullptr); - return 0; - } - cocos2d::ActionInterval* ret = cobj->action(); - object_to_luaval(tolua_S, "cc.ActionInterval",(cocos2d::ActionInterval*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TransitionSlideInT:action",argc, 0); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionSlideInT_action'.",&tolua_err); -#endif - - return 0; -} int lua_cocos2dx_TransitionSlideInT_create(lua_State* tolua_S) { int argc = 0; @@ -43676,7 +43287,6 @@ int lua_register_cocos2dx_TransitionSlideInT(lua_State* tolua_S) tolua_cclass(tolua_S,"TransitionSlideInT","cc.TransitionSlideInT","cc.TransitionSlideInL",nullptr); tolua_beginmodule(tolua_S,"TransitionSlideInT"); - tolua_function(tolua_S,"action",lua_cocos2dx_TransitionSlideInT_action); tolua_function(tolua_S,"create", lua_cocos2dx_TransitionSlideInT_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TransitionSlideInT).name(); @@ -50164,53 +49774,6 @@ int lua_cocos2dx_Sprite_removeAllChildrenWithCleanup(lua_State* tolua_S) return 0; } -int lua_cocos2dx_Sprite_updateTransform(lua_State* tolua_S) -{ - int argc = 0; - cocos2d::Sprite* 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.Sprite",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocos2d::Sprite*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Sprite_updateTransform'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Sprite_updateTransform'", nullptr); - return 0; - } - cobj->updateTransform(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Sprite:updateTransform",argc, 0); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Sprite_updateTransform'.",&tolua_err); -#endif - - return 0; -} int lua_cocos2dx_Sprite_setTextureRect(lua_State* tolua_S) { int argc = 0; @@ -51323,7 +50886,6 @@ int lua_register_cocos2dx_Sprite(lua_State* tolua_S) tolua_function(tolua_S,"getBatchNode",lua_cocos2dx_Sprite_getBatchNode); tolua_function(tolua_S,"getOffsetPosition",lua_cocos2dx_Sprite_getOffsetPosition); tolua_function(tolua_S,"removeAllChildrenWithCleanup",lua_cocos2dx_Sprite_removeAllChildrenWithCleanup); - tolua_function(tolua_S,"updateTransform",lua_cocos2dx_Sprite_updateTransform); tolua_function(tolua_S,"setTextureRect",lua_cocos2dx_Sprite_setTextureRect); tolua_function(tolua_S,"isFrameDisplayed",lua_cocos2dx_Sprite_isFrameDisplayed); tolua_function(tolua_S,"getAtlasIndex",lua_cocos2dx_Sprite_getAtlasIndex); @@ -54949,56 +54511,6 @@ int lua_cocos2dx_ParticleSystem_getEndSizeVar(lua_State* tolua_S) return 0; } -int lua_cocos2dx_ParticleSystem_setRotation(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_setRotation'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.ParticleSystem:setRotation"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSystem_setRotation'", nullptr); - return 0; - } - cobj->setRotation(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:setRotation",argc, 1); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_setRotation'.",&tolua_err); -#endif - - return 0; -} int lua_cocos2dx_ParticleSystem_setTangentialAccel(lua_State* tolua_S) { int argc = 0; @@ -55049,106 +54561,6 @@ int lua_cocos2dx_ParticleSystem_setTangentialAccel(lua_State* tolua_S) return 0; } -int lua_cocos2dx_ParticleSystem_setScaleY(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_setScaleY'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.ParticleSystem:setScaleY"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSystem_setScaleY'", nullptr); - return 0; - } - cobj->setScaleY(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:setScaleY",argc, 1); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_setScaleY'.",&tolua_err); -#endif - - return 0; -} -int lua_cocos2dx_ParticleSystem_setScaleX(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_setScaleX'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.ParticleSystem:setScaleX"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSystem_setScaleX'", nullptr); - return 0; - } - cobj->setScaleX(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:setScaleX",argc, 1); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_setScaleX'.",&tolua_err); -#endif - - return 0; -} int lua_cocos2dx_ParticleSystem_getRadialAccel(lua_State* tolua_S) { int argc = 0; @@ -56654,53 +56066,6 @@ int lua_cocos2dx_ParticleSystem_getEndRadius(lua_State* tolua_S) return 0; } -int lua_cocos2dx_ParticleSystem_isOpacityModifyRGB(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_isOpacityModifyRGB'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSystem_isOpacityModifyRGB'", nullptr); - return 0; - } - bool ret = cobj->isOpacityModifyRGB(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:isOpacityModifyRGB",argc, 0); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_isOpacityModifyRGB'.",&tolua_err); -#endif - - return 0; -} int lua_cocos2dx_ParticleSystem_isActive(lua_State* tolua_S) { int argc = 0; @@ -58259,56 +57624,6 @@ int lua_cocos2dx_ParticleSystem_getRotationIsDir(lua_State* tolua_S) return 0; } -int lua_cocos2dx_ParticleSystem_setScale(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_setScale'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.ParticleSystem:setScale"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSystem_setScale'", nullptr); - return 0; - } - cobj->setScale(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:setScale",argc, 1); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_setScale'.",&tolua_err); -#endif - - return 0; -} int lua_cocos2dx_ParticleSystem_getEmissionRate(lua_State* tolua_S) { int argc = 0; @@ -58500,56 +57815,6 @@ int lua_cocos2dx_ParticleSystem_setStartSizeVar(lua_State* tolua_S) return 0; } -int lua_cocos2dx_ParticleSystem_setOpacityModifyRGB(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_setOpacityModifyRGB'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - bool arg0; - - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.ParticleSystem:setOpacityModifyRGB"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSystem_setOpacityModifyRGB'", nullptr); - return 0; - } - cobj->setOpacityModifyRGB(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:setOpacityModifyRGB",argc, 1); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_setOpacityModifyRGB'.",&tolua_err); -#endif - - return 0; -} int lua_cocos2dx_ParticleSystem_addParticle(lua_State* tolua_S) { int argc = 0; @@ -59319,10 +58584,7 @@ int lua_register_cocos2dx_ParticleSystem(lua_State* tolua_S) tolua_function(tolua_S,"getStartSpinVar",lua_cocos2dx_ParticleSystem_getStartSpinVar); tolua_function(tolua_S,"getRadialAccelVar",lua_cocos2dx_ParticleSystem_getRadialAccelVar); tolua_function(tolua_S,"getEndSizeVar",lua_cocos2dx_ParticleSystem_getEndSizeVar); - tolua_function(tolua_S,"setRotation",lua_cocos2dx_ParticleSystem_setRotation); tolua_function(tolua_S,"setTangentialAccel",lua_cocos2dx_ParticleSystem_setTangentialAccel); - tolua_function(tolua_S,"setScaleY",lua_cocos2dx_ParticleSystem_setScaleY); - tolua_function(tolua_S,"setScaleX",lua_cocos2dx_ParticleSystem_setScaleX); tolua_function(tolua_S,"getRadialAccel",lua_cocos2dx_ParticleSystem_getRadialAccel); tolua_function(tolua_S,"setStartRadius",lua_cocos2dx_ParticleSystem_setStartRadius); tolua_function(tolua_S,"setRotatePerSecond",lua_cocos2dx_ParticleSystem_setRotatePerSecond); @@ -59354,7 +58616,6 @@ int lua_register_cocos2dx_ParticleSystem(lua_State* tolua_S) tolua_function(tolua_S,"setTangentialAccelVar",lua_cocos2dx_ParticleSystem_setTangentialAccelVar); tolua_function(tolua_S,"setEndRadiusVar",lua_cocos2dx_ParticleSystem_setEndRadiusVar); tolua_function(tolua_S,"getEndRadius",lua_cocos2dx_ParticleSystem_getEndRadius); - tolua_function(tolua_S,"isOpacityModifyRGB",lua_cocos2dx_ParticleSystem_isOpacityModifyRGB); tolua_function(tolua_S,"isActive",lua_cocos2dx_ParticleSystem_isActive); tolua_function(tolua_S,"setRadialAccelVar",lua_cocos2dx_ParticleSystem_setRadialAccelVar); tolua_function(tolua_S,"setStartSize",lua_cocos2dx_ParticleSystem_setStartSize); @@ -59387,12 +58648,10 @@ int lua_register_cocos2dx_ParticleSystem(lua_State* tolua_S) tolua_function(tolua_S,"setEmissionRate",lua_cocos2dx_ParticleSystem_setEmissionRate); tolua_function(tolua_S,"getEndColorVar",lua_cocos2dx_ParticleSystem_getEndColorVar); tolua_function(tolua_S,"getRotationIsDir",lua_cocos2dx_ParticleSystem_getRotationIsDir); - tolua_function(tolua_S,"setScale",lua_cocos2dx_ParticleSystem_setScale); tolua_function(tolua_S,"getEmissionRate",lua_cocos2dx_ParticleSystem_getEmissionRate); tolua_function(tolua_S,"getEndColor",lua_cocos2dx_ParticleSystem_getEndColor); tolua_function(tolua_S,"getLifeVar",lua_cocos2dx_ParticleSystem_getLifeVar); tolua_function(tolua_S,"setStartSizeVar",lua_cocos2dx_ParticleSystem_setStartSizeVar); - tolua_function(tolua_S,"setOpacityModifyRGB",lua_cocos2dx_ParticleSystem_setOpacityModifyRGB); tolua_function(tolua_S,"addParticle",lua_cocos2dx_ParticleSystem_addParticle); tolua_function(tolua_S,"getStartRadius",lua_cocos2dx_ParticleSystem_getStartRadius); tolua_function(tolua_S,"getParticleCount",lua_cocos2dx_ParticleSystem_getParticleCount); diff --git a/cocos/scripting/lua-bindings/auto/lua_cocos2dx_auto.hpp b/cocos/scripting/lua-bindings/auto/lua_cocos2dx_auto.hpp index da8cffc3bb..11c73aff0e 100644 --- a/cocos/scripting/lua-bindings/auto/lua_cocos2dx_auto.hpp +++ b/cocos/scripting/lua-bindings/auto/lua_cocos2dx_auto.hpp @@ -1619,21 +1619,6 @@ int register_all_cocos2dx(lua_State* tolua_S); - - - - - - - - - - - - - - - diff --git a/cocos/scripting/lua-bindings/auto/lua_cocos2dx_extension_auto.cpp b/cocos/scripting/lua-bindings/auto/lua_cocos2dx_extension_auto.cpp index 0cc8762f9d..dcda1968e2 100644 --- a/cocos/scripting/lua-bindings/auto/lua_cocos2dx_extension_auto.cpp +++ b/cocos/scripting/lua-bindings/auto/lua_cocos2dx_extension_auto.cpp @@ -55,59 +55,6 @@ int lua_cocos2dx_extension_Control_setEnabled(lua_State* tolua_S) return 0; } -int lua_cocos2dx_extension_Control_onTouchMoved(lua_State* tolua_S) -{ - int argc = 0; - cocos2d::extension::Control* 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.Control",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocos2d::extension::Control*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_extension_Control_onTouchMoved'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 2) - { - cocos2d::Touch* arg0; - cocos2d::Event* arg1; - - ok &= luaval_to_object(tolua_S, 2, "cc.Touch",&arg0); - - ok &= luaval_to_object(tolua_S, 3, "cc.Event",&arg1); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_Control_onTouchMoved'", nullptr); - return 0; - } - cobj->onTouchMoved(arg0, arg1); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Control:onTouchMoved",argc, 2); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_extension_Control_onTouchMoved'.",&tolua_err); -#endif - - return 0; -} int lua_cocos2dx_extension_Control_getState(lua_State* tolua_S) { int argc = 0; @@ -155,59 +102,6 @@ int lua_cocos2dx_extension_Control_getState(lua_State* tolua_S) return 0; } -int lua_cocos2dx_extension_Control_onTouchEnded(lua_State* tolua_S) -{ - int argc = 0; - cocos2d::extension::Control* 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.Control",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocos2d::extension::Control*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_extension_Control_onTouchEnded'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 2) - { - cocos2d::Touch* arg0; - cocos2d::Event* arg1; - - ok &= luaval_to_object(tolua_S, 2, "cc.Touch",&arg0); - - ok &= luaval_to_object(tolua_S, 3, "cc.Event",&arg1); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_Control_onTouchEnded'", nullptr); - return 0; - } - cobj->onTouchEnded(arg0, arg1); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Control:onTouchEnded",argc, 2); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_extension_Control_onTouchEnded'.",&tolua_err); -#endif - - return 0; -} int lua_cocos2dx_extension_Control_sendActionsForControlEvents(lua_State* tolua_S) { int argc = 0; @@ -355,59 +249,6 @@ int lua_cocos2dx_extension_Control_isEnabled(lua_State* tolua_S) return 0; } -int lua_cocos2dx_extension_Control_onTouchCancelled(lua_State* tolua_S) -{ - int argc = 0; - cocos2d::extension::Control* 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.Control",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocos2d::extension::Control*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_extension_Control_onTouchCancelled'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 2) - { - cocos2d::Touch* arg0; - cocos2d::Event* arg1; - - ok &= luaval_to_object(tolua_S, 2, "cc.Touch",&arg0); - - ok &= luaval_to_object(tolua_S, 3, "cc.Event",&arg1); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_Control_onTouchCancelled'", nullptr); - return 0; - } - cobj->onTouchCancelled(arg0, arg1); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Control:onTouchCancelled",argc, 2); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_extension_Control_onTouchCancelled'.",&tolua_err); -#endif - - return 0; -} int lua_cocos2dx_extension_Control_needsLayout(lua_State* tolua_S) { int argc = 0; @@ -455,59 +296,6 @@ int lua_cocos2dx_extension_Control_needsLayout(lua_State* tolua_S) return 0; } -int lua_cocos2dx_extension_Control_onTouchBegan(lua_State* tolua_S) -{ - int argc = 0; - cocos2d::extension::Control* 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.Control",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocos2d::extension::Control*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_extension_Control_onTouchBegan'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 2) - { - cocos2d::Touch* arg0; - cocos2d::Event* arg1; - - ok &= luaval_to_object(tolua_S, 2, "cc.Touch",&arg0); - - ok &= luaval_to_object(tolua_S, 3, "cc.Event",&arg1); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_Control_onTouchBegan'", nullptr); - return 0; - } - bool ret = cobj->onTouchBegan(arg0, arg1); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Control:onTouchBegan",argc, 2); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_extension_Control_onTouchBegan'.",&tolua_err); -#endif - - return 0; -} int lua_cocos2dx_extension_Control_hasVisibleParents(lua_State* tolua_S) { int argc = 0; @@ -846,15 +634,11 @@ int lua_register_cocos2dx_extension_Control(lua_State* tolua_S) tolua_beginmodule(tolua_S,"Control"); tolua_function(tolua_S,"setEnabled",lua_cocos2dx_extension_Control_setEnabled); - tolua_function(tolua_S,"onTouchMoved",lua_cocos2dx_extension_Control_onTouchMoved); tolua_function(tolua_S,"getState",lua_cocos2dx_extension_Control_getState); - tolua_function(tolua_S,"onTouchEnded",lua_cocos2dx_extension_Control_onTouchEnded); tolua_function(tolua_S,"sendActionsForControlEvents",lua_cocos2dx_extension_Control_sendActionsForControlEvents); tolua_function(tolua_S,"setSelected",lua_cocos2dx_extension_Control_setSelected); tolua_function(tolua_S,"isEnabled",lua_cocos2dx_extension_Control_isEnabled); - tolua_function(tolua_S,"onTouchCancelled",lua_cocos2dx_extension_Control_onTouchCancelled); tolua_function(tolua_S,"needsLayout",lua_cocos2dx_extension_Control_needsLayout); - tolua_function(tolua_S,"onTouchBegan",lua_cocos2dx_extension_Control_onTouchBegan); tolua_function(tolua_S,"hasVisibleParents",lua_cocos2dx_extension_Control_hasVisibleParents); tolua_function(tolua_S,"isSelected",lua_cocos2dx_extension_Control_isSelected); tolua_function(tolua_S,"isTouchInside",lua_cocos2dx_extension_Control_isTouchInside); @@ -916,56 +700,6 @@ int lua_cocos2dx_extension_ControlButton_isPushed(lua_State* tolua_S) return 0; } -int lua_cocos2dx_extension_ControlButton_setSelected(lua_State* tolua_S) -{ - int argc = 0; - cocos2d::extension::ControlButton* 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.ControlButton",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocos2d::extension::ControlButton*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_extension_ControlButton_setSelected'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - bool arg0; - - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.ControlButton:setSelected"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_ControlButton_setSelected'", nullptr); - return 0; - } - cobj->setSelected(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ControlButton:setSelected",argc, 1); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_extension_ControlButton_setSelected'.",&tolua_err); -#endif - - return 0; -} int lua_cocos2dx_extension_ControlButton_setTitleLabelForState(lua_State* tolua_S) { int argc = 0; @@ -1069,106 +803,6 @@ int lua_cocos2dx_extension_ControlButton_setAdjustBackgroundImage(lua_State* tol return 0; } -int lua_cocos2dx_extension_ControlButton_setHighlighted(lua_State* tolua_S) -{ - int argc = 0; - cocos2d::extension::ControlButton* 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.ControlButton",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocos2d::extension::ControlButton*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_extension_ControlButton_setHighlighted'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - bool arg0; - - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.ControlButton:setHighlighted"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_ControlButton_setHighlighted'", nullptr); - return 0; - } - cobj->setHighlighted(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ControlButton:setHighlighted",argc, 1); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_extension_ControlButton_setHighlighted'.",&tolua_err); -#endif - - return 0; -} -int lua_cocos2dx_extension_ControlButton_setZoomOnTouchDown(lua_State* tolua_S) -{ - int argc = 0; - cocos2d::extension::ControlButton* 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.ControlButton",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocos2d::extension::ControlButton*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_extension_ControlButton_setZoomOnTouchDown'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - bool arg0; - - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.ControlButton:setZoomOnTouchDown"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_ControlButton_setZoomOnTouchDown'", nullptr); - return 0; - } - cobj->setZoomOnTouchDown(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ControlButton:setZoomOnTouchDown",argc, 1); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_extension_ControlButton_setZoomOnTouchDown'.",&tolua_err); -#endif - - return 0; -} int lua_cocos2dx_extension_ControlButton_setTitleForState(lua_State* tolua_S) { int argc = 0; @@ -1622,7 +1256,7 @@ int lua_cocos2dx_extension_ControlButton_getCurrentTitleColor(lua_State* tolua_S return 0; } -int lua_cocos2dx_extension_ControlButton_setEnabled(lua_State* tolua_S) +int lua_cocos2dx_extension_ControlButton_setZoomOnTouchDown(lua_State* tolua_S) { int argc = 0; cocos2d::extension::ControlButton* cobj = nullptr; @@ -1642,7 +1276,7 @@ int lua_cocos2dx_extension_ControlButton_setEnabled(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_extension_ControlButton_setEnabled'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_extension_ControlButton_setZoomOnTouchDown'", nullptr); return 0; } #endif @@ -1652,22 +1286,22 @@ int lua_cocos2dx_extension_ControlButton_setEnabled(lua_State* tolua_S) { bool arg0; - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.ControlButton:setEnabled"); + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.ControlButton:setZoomOnTouchDown"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_ControlButton_setEnabled'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_ControlButton_setZoomOnTouchDown'", nullptr); return 0; } - cobj->setEnabled(arg0); + cobj->setZoomOnTouchDown(arg0); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ControlButton:setEnabled",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ControlButton:setZoomOnTouchDown",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_extension_ControlButton_setEnabled'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_extension_ControlButton_setZoomOnTouchDown'.",&tolua_err); #endif return 0; @@ -1769,7 +1403,7 @@ int lua_cocos2dx_extension_ControlButton_getHorizontalOrigin(lua_State* tolua_S) return 0; } -int lua_cocos2dx_extension_ControlButton_needsLayout(lua_State* tolua_S) +int lua_cocos2dx_extension_ControlButton_setTitleBMFontForState(lua_State* tolua_S) { int argc = 0; cocos2d::extension::ControlButton* cobj = nullptr; @@ -1789,76 +1423,35 @@ int lua_cocos2dx_extension_ControlButton_needsLayout(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_extension_ControlButton_needsLayout'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_extension_ControlButton_setTitleBMFontForState'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 2) { + std::string arg0; + cocos2d::extension::Control::State arg1; + + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.ControlButton:setTitleBMFontForState"); + + ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "cc.ControlButton:setTitleBMFontForState"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_ControlButton_needsLayout'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_ControlButton_setTitleBMFontForState'", nullptr); return 0; } - cobj->needsLayout(); + cobj->setTitleBMFontForState(arg0, arg1); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ControlButton:needsLayout",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ControlButton:setTitleBMFontForState",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_extension_ControlButton_needsLayout'.",&tolua_err); -#endif - - return 0; -} -int lua_cocos2dx_extension_ControlButton_getCurrentTitle(lua_State* tolua_S) -{ - int argc = 0; - cocos2d::extension::ControlButton* 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.ControlButton",0,&tolua_err)) goto tolua_lerror; -#endif - cobj = (cocos2d::extension::ControlButton*)tolua_tousertype(tolua_S,1,0); -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_extension_ControlButton_getCurrentTitle'", nullptr); - return 0; - } -#endif - argc = lua_gettop(tolua_S)-1; - do{ - if (argc == 0) { - std::string ret = cobj->getCurrentTitle(); - tolua_pushcppstring(tolua_S,ret); - return 1; - } - }while(0); - ok = true; - do{ - if (argc == 0) { - const std::string& ret = cobj->getCurrentTitle(); - tolua_pushcppstring(tolua_S,ret); - return 1; - } - }while(0); - ok = true; - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ControlButton:getCurrentTitle",argc, 0); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_extension_ControlButton_getCurrentTitle'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_extension_ControlButton_setTitleBMFontForState'.",&tolua_err); #endif return 0; @@ -2607,55 +2200,49 @@ int lua_cocos2dx_extension_ControlButton_setMargins(lua_State* tolua_S) return 0; } -int lua_cocos2dx_extension_ControlButton_setTitleBMFontForState(lua_State* tolua_S) +int lua_cocos2dx_extension_ControlButton_getCurrentTitle(lua_State* tolua_S) { int argc = 0; cocos2d::extension::ControlButton* 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.ControlButton",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::extension::ControlButton*)tolua_tousertype(tolua_S,1,0); - #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_extension_ControlButton_setTitleBMFontForState'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_extension_ControlButton_getCurrentTitle'", nullptr); return 0; } #endif - argc = lua_gettop(tolua_S)-1; - if (argc == 2) - { - std::string arg0; - cocos2d::extension::Control::State arg1; - - ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.ControlButton:setTitleBMFontForState"); - - ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "cc.ControlButton:setTitleBMFontForState"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_ControlButton_setTitleBMFontForState'", nullptr); - return 0; + do{ + if (argc == 0) { + std::string ret = cobj->getCurrentTitle(); + tolua_pushcppstring(tolua_S,ret); + return 1; } - cobj->setTitleBMFontForState(arg0, arg1); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ControlButton:setTitleBMFontForState",argc, 2); + }while(0); + ok = true; + do{ + if (argc == 0) { + const std::string& ret = cobj->getCurrentTitle(); + tolua_pushcppstring(tolua_S,ret); + return 1; + } + }while(0); + ok = true; + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ControlButton:getCurrentTitle",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_extension_ControlButton_setTitleBMFontForState'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_extension_ControlButton_getCurrentTitle'.",&tolua_err); #endif return 0; @@ -2900,11 +2487,8 @@ int lua_register_cocos2dx_extension_ControlButton(lua_State* tolua_S) tolua_beginmodule(tolua_S,"ControlButton"); tolua_function(tolua_S,"isPushed",lua_cocos2dx_extension_ControlButton_isPushed); - tolua_function(tolua_S,"setSelected",lua_cocos2dx_extension_ControlButton_setSelected); tolua_function(tolua_S,"setTitleLabelForState",lua_cocos2dx_extension_ControlButton_setTitleLabelForState); tolua_function(tolua_S,"setAdjustBackgroundImage",lua_cocos2dx_extension_ControlButton_setAdjustBackgroundImage); - tolua_function(tolua_S,"setHighlighted",lua_cocos2dx_extension_ControlButton_setHighlighted); - tolua_function(tolua_S,"setZoomOnTouchDown",lua_cocos2dx_extension_ControlButton_setZoomOnTouchDown); tolua_function(tolua_S,"setTitleForState",lua_cocos2dx_extension_ControlButton_setTitleForState); tolua_function(tolua_S,"setLabelAnchorPoint",lua_cocos2dx_extension_ControlButton_setLabelAnchorPoint); tolua_function(tolua_S,"getLabelAnchorPoint",lua_cocos2dx_extension_ControlButton_getLabelAnchorPoint); @@ -2914,11 +2498,10 @@ int lua_register_cocos2dx_extension_ControlButton(lua_State* tolua_S) tolua_function(tolua_S,"setTitleLabel",lua_cocos2dx_extension_ControlButton_setTitleLabel); tolua_function(tolua_S,"setPreferredSize",lua_cocos2dx_extension_ControlButton_setPreferredSize); tolua_function(tolua_S,"getCurrentTitleColor",lua_cocos2dx_extension_ControlButton_getCurrentTitleColor); - tolua_function(tolua_S,"setEnabled",lua_cocos2dx_extension_ControlButton_setEnabled); + tolua_function(tolua_S,"setZoomOnTouchDown",lua_cocos2dx_extension_ControlButton_setZoomOnTouchDown); tolua_function(tolua_S,"getBackgroundSpriteForState",lua_cocos2dx_extension_ControlButton_getBackgroundSpriteForState); tolua_function(tolua_S,"getHorizontalOrigin",lua_cocos2dx_extension_ControlButton_getHorizontalOrigin); - tolua_function(tolua_S,"needsLayout",lua_cocos2dx_extension_ControlButton_needsLayout); - tolua_function(tolua_S,"getCurrentTitle",lua_cocos2dx_extension_ControlButton_getCurrentTitle); + tolua_function(tolua_S,"setTitleBMFontForState",lua_cocos2dx_extension_ControlButton_setTitleBMFontForState); tolua_function(tolua_S,"getScaleRatio",lua_cocos2dx_extension_ControlButton_getScaleRatio); tolua_function(tolua_S,"getTitleTTFForState",lua_cocos2dx_extension_ControlButton_getTitleTTFForState); tolua_function(tolua_S,"getBackgroundSprite",lua_cocos2dx_extension_ControlButton_getBackgroundSprite); @@ -2934,7 +2517,7 @@ int lua_register_cocos2dx_extension_ControlButton(lua_State* tolua_S) tolua_function(tolua_S,"getVerticalMargin",lua_cocos2dx_extension_ControlButton_getVerticalMargin); tolua_function(tolua_S,"getTitleLabelForState",lua_cocos2dx_extension_ControlButton_getTitleLabelForState); tolua_function(tolua_S,"setMargins",lua_cocos2dx_extension_ControlButton_setMargins); - tolua_function(tolua_S,"setTitleBMFontForState",lua_cocos2dx_extension_ControlButton_setTitleBMFontForState); + tolua_function(tolua_S,"getCurrentTitle",lua_cocos2dx_extension_ControlButton_getCurrentTitle); tolua_function(tolua_S,"getTitleBMFontForState",lua_cocos2dx_extension_ControlButton_getTitleBMFontForState); tolua_function(tolua_S,"getZoomOnTouchDown",lua_cocos2dx_extension_ControlButton_getZoomOnTouchDown); tolua_function(tolua_S,"getTitleForState",lua_cocos2dx_extension_ControlButton_getTitleForState); @@ -2946,56 +2529,6 @@ int lua_register_cocos2dx_extension_ControlButton(lua_State* tolua_S) return 1; } -int lua_cocos2dx_extension_ControlHuePicker_setEnabled(lua_State* tolua_S) -{ - int argc = 0; - cocos2d::extension::ControlHuePicker* 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.ControlHuePicker",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocos2d::extension::ControlHuePicker*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_extension_ControlHuePicker_setEnabled'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - bool arg0; - - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.ControlHuePicker:setEnabled"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_ControlHuePicker_setEnabled'", nullptr); - return 0; - } - cobj->setEnabled(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ControlHuePicker:setEnabled",argc, 1); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_extension_ControlHuePicker_setEnabled'.",&tolua_err); -#endif - - return 0; -} int lua_cocos2dx_extension_ControlHuePicker_initWithTargetAndPos(lua_State* tolua_S) { int argc = 0; @@ -3572,7 +3105,6 @@ int lua_register_cocos2dx_extension_ControlHuePicker(lua_State* tolua_S) tolua_beginmodule(tolua_S,"ControlHuePicker"); tolua_function(tolua_S,"new",lua_cocos2dx_extension_ControlHuePicker_constructor); - tolua_function(tolua_S,"setEnabled",lua_cocos2dx_extension_ControlHuePicker_setEnabled); tolua_function(tolua_S,"initWithTargetAndPos",lua_cocos2dx_extension_ControlHuePicker_initWithTargetAndPos); tolua_function(tolua_S,"setHue",lua_cocos2dx_extension_ControlHuePicker_setHue); tolua_function(tolua_S,"getStartPos",lua_cocos2dx_extension_ControlHuePicker_getStartPos); @@ -3785,56 +3317,6 @@ int lua_cocos2dx_extension_ControlSaturationBrightnessPicker_getOverlay(lua_Stat return 0; } -int lua_cocos2dx_extension_ControlSaturationBrightnessPicker_setEnabled(lua_State* tolua_S) -{ - int argc = 0; - cocos2d::extension::ControlSaturationBrightnessPicker* 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.ControlSaturationBrightnessPicker",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocos2d::extension::ControlSaturationBrightnessPicker*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_extension_ControlSaturationBrightnessPicker_setEnabled'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - bool arg0; - - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.ControlSaturationBrightnessPicker:setEnabled"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_ControlSaturationBrightnessPicker_setEnabled'", nullptr); - return 0; - } - cobj->setEnabled(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ControlSaturationBrightnessPicker:setEnabled",argc, 1); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_extension_ControlSaturationBrightnessPicker_setEnabled'.",&tolua_err); -#endif - - return 0; -} int lua_cocos2dx_extension_ControlSaturationBrightnessPicker_getSlider(lua_State* tolua_S) { int argc = 0; @@ -4115,7 +3597,6 @@ int lua_register_cocos2dx_extension_ControlSaturationBrightnessPicker(lua_State* tolua_function(tolua_S,"initWithTargetAndPos",lua_cocos2dx_extension_ControlSaturationBrightnessPicker_initWithTargetAndPos); tolua_function(tolua_S,"getStartPos",lua_cocos2dx_extension_ControlSaturationBrightnessPicker_getStartPos); tolua_function(tolua_S,"getOverlay",lua_cocos2dx_extension_ControlSaturationBrightnessPicker_getOverlay); - tolua_function(tolua_S,"setEnabled",lua_cocos2dx_extension_ControlSaturationBrightnessPicker_setEnabled); tolua_function(tolua_S,"getSlider",lua_cocos2dx_extension_ControlSaturationBrightnessPicker_getSlider); tolua_function(tolua_S,"getBackground",lua_cocos2dx_extension_ControlSaturationBrightnessPicker_getBackground); tolua_function(tolua_S,"getSaturation",lua_cocos2dx_extension_ControlSaturationBrightnessPicker_getSaturation); @@ -4128,153 +3609,6 @@ int lua_register_cocos2dx_extension_ControlSaturationBrightnessPicker(lua_State* return 1; } -int lua_cocos2dx_extension_ControlColourPicker_setEnabled(lua_State* tolua_S) -{ - int argc = 0; - cocos2d::extension::ControlColourPicker* 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.ControlColourPicker",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocos2d::extension::ControlColourPicker*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_extension_ControlColourPicker_setEnabled'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - bool arg0; - - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.ControlColourPicker:setEnabled"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_ControlColourPicker_setEnabled'", nullptr); - return 0; - } - cobj->setEnabled(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ControlColourPicker:setEnabled",argc, 1); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_extension_ControlColourPicker_setEnabled'.",&tolua_err); -#endif - - return 0; -} -int lua_cocos2dx_extension_ControlColourPicker_getHuePicker(lua_State* tolua_S) -{ - int argc = 0; - cocos2d::extension::ControlColourPicker* 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.ControlColourPicker",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocos2d::extension::ControlColourPicker*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_extension_ControlColourPicker_getHuePicker'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_ControlColourPicker_getHuePicker'", nullptr); - return 0; - } - cocos2d::extension::ControlHuePicker* ret = cobj->getHuePicker(); - object_to_luaval(tolua_S, "cc.ControlHuePicker",(cocos2d::extension::ControlHuePicker*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ControlColourPicker:getHuePicker",argc, 0); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_extension_ControlColourPicker_getHuePicker'.",&tolua_err); -#endif - - return 0; -} -int lua_cocos2dx_extension_ControlColourPicker_setColor(lua_State* tolua_S) -{ - int argc = 0; - cocos2d::extension::ControlColourPicker* 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.ControlColourPicker",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocos2d::extension::ControlColourPicker*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_extension_ControlColourPicker_setColor'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - cocos2d::Color3B arg0; - - ok &= luaval_to_color3b(tolua_S, 2, &arg0, "cc.ControlColourPicker:setColor"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_ControlColourPicker_setColor'", nullptr); - return 0; - } - cobj->setColor(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ControlColourPicker:setColor",argc, 1); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_extension_ControlColourPicker_setColor'.",&tolua_err); -#endif - - return 0; -} int lua_cocos2dx_extension_ControlColourPicker_hueSliderValueChanged(lua_State* tolua_S) { int argc = 0; @@ -4328,6 +3662,53 @@ int lua_cocos2dx_extension_ControlColourPicker_hueSliderValueChanged(lua_State* return 0; } +int lua_cocos2dx_extension_ControlColourPicker_getHuePicker(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::extension::ControlColourPicker* 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.ControlColourPicker",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::extension::ControlColourPicker*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_extension_ControlColourPicker_getHuePicker'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_ControlColourPicker_getHuePicker'", nullptr); + return 0; + } + cocos2d::extension::ControlHuePicker* ret = cobj->getHuePicker(); + object_to_luaval(tolua_S, "cc.ControlHuePicker",(cocos2d::extension::ControlHuePicker*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ControlColourPicker:getHuePicker",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_extension_ControlColourPicker_getHuePicker'.",&tolua_err); +#endif + + return 0; +} int lua_cocos2dx_extension_ControlColourPicker_getcolourPicker(lua_State* tolua_S) { int argc = 0; @@ -4756,10 +4137,8 @@ int lua_register_cocos2dx_extension_ControlColourPicker(lua_State* tolua_S) tolua_beginmodule(tolua_S,"ControlColourPicker"); tolua_function(tolua_S,"new",lua_cocos2dx_extension_ControlColourPicker_constructor); - tolua_function(tolua_S,"setEnabled",lua_cocos2dx_extension_ControlColourPicker_setEnabled); - tolua_function(tolua_S,"getHuePicker",lua_cocos2dx_extension_ControlColourPicker_getHuePicker); - tolua_function(tolua_S,"setColor",lua_cocos2dx_extension_ControlColourPicker_setColor); tolua_function(tolua_S,"hueSliderValueChanged",lua_cocos2dx_extension_ControlColourPicker_hueSliderValueChanged); + tolua_function(tolua_S,"getHuePicker",lua_cocos2dx_extension_ControlColourPicker_getHuePicker); tolua_function(tolua_S,"getcolourPicker",lua_cocos2dx_extension_ControlColourPicker_getcolourPicker); tolua_function(tolua_S,"setBackground",lua_cocos2dx_extension_ControlColourPicker_setBackground); tolua_function(tolua_S,"init",lua_cocos2dx_extension_ControlColourPicker_init); @@ -5791,6 +5170,272 @@ int lua_register_cocos2dx_extension_ControlPotentiometer(lua_State* tolua_S) return 1; } +int lua_cocos2dx_extension_ControlSlider_setBackgroundSprite(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::extension::ControlSlider* 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.ControlSlider",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::extension::ControlSlider*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_extension_ControlSlider_setBackgroundSprite'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + cocos2d::Sprite* arg0; + + ok &= luaval_to_object(tolua_S, 2, "cc.Sprite",&arg0); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_ControlSlider_setBackgroundSprite'", nullptr); + return 0; + } + cobj->setBackgroundSprite(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ControlSlider:setBackgroundSprite",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_extension_ControlSlider_setBackgroundSprite'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_extension_ControlSlider_getMaximumAllowedValue(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::extension::ControlSlider* 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.ControlSlider",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::extension::ControlSlider*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_extension_ControlSlider_getMaximumAllowedValue'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_ControlSlider_getMaximumAllowedValue'", nullptr); + return 0; + } + double ret = cobj->getMaximumAllowedValue(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ControlSlider:getMaximumAllowedValue",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_extension_ControlSlider_getMaximumAllowedValue'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_extension_ControlSlider_initWithSprites(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::extension::ControlSlider* 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.ControlSlider",0,&tolua_err)) goto tolua_lerror; +#endif + cobj = (cocos2d::extension::ControlSlider*)tolua_tousertype(tolua_S,1,0); +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_extension_ControlSlider_initWithSprites'", nullptr); + return 0; + } +#endif + argc = lua_gettop(tolua_S)-1; + do{ + if (argc == 4) { + cocos2d::Sprite* arg0; + ok &= luaval_to_object(tolua_S, 2, "cc.Sprite",&arg0); + + if (!ok) { break; } + cocos2d::Sprite* arg1; + ok &= luaval_to_object(tolua_S, 3, "cc.Sprite",&arg1); + + if (!ok) { break; } + cocos2d::Sprite* arg2; + ok &= luaval_to_object(tolua_S, 4, "cc.Sprite",&arg2); + + if (!ok) { break; } + cocos2d::Sprite* arg3; + ok &= luaval_to_object(tolua_S, 5, "cc.Sprite",&arg3); + + if (!ok) { break; } + bool ret = cobj->initWithSprites(arg0, arg1, arg2, arg3); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + }while(0); + ok = true; + do{ + if (argc == 3) { + cocos2d::Sprite* arg0; + ok &= luaval_to_object(tolua_S, 2, "cc.Sprite",&arg0); + + if (!ok) { break; } + cocos2d::Sprite* arg1; + ok &= luaval_to_object(tolua_S, 3, "cc.Sprite",&arg1); + + if (!ok) { break; } + cocos2d::Sprite* arg2; + ok &= luaval_to_object(tolua_S, 4, "cc.Sprite",&arg2); + + if (!ok) { break; } + bool ret = cobj->initWithSprites(arg0, arg1, arg2); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + }while(0); + ok = true; + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ControlSlider:initWithSprites",argc, 3); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_extension_ControlSlider_initWithSprites'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_extension_ControlSlider_getMinimumAllowedValue(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::extension::ControlSlider* 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.ControlSlider",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::extension::ControlSlider*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_extension_ControlSlider_getMinimumAllowedValue'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_ControlSlider_getMinimumAllowedValue'", nullptr); + return 0; + } + double ret = cobj->getMinimumAllowedValue(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ControlSlider:getMinimumAllowedValue",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_extension_ControlSlider_getMinimumAllowedValue'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_extension_ControlSlider_getMaximumValue(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::extension::ControlSlider* 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.ControlSlider",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::extension::ControlSlider*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_extension_ControlSlider_getMaximumValue'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_ControlSlider_getMaximumValue'", nullptr); + return 0; + } + double ret = cobj->getMaximumValue(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ControlSlider:getMaximumValue",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_extension_ControlSlider_getMaximumValue'.",&tolua_err); +#endif + + return 0; +} int lua_cocos2dx_extension_ControlSlider_getSelectedThumbSprite(lua_State* tolua_S) { int argc = 0; @@ -5838,106 +5483,6 @@ int lua_cocos2dx_extension_ControlSlider_getSelectedThumbSprite(lua_State* tolua return 0; } -int lua_cocos2dx_extension_ControlSlider_locationFromTouch(lua_State* tolua_S) -{ - int argc = 0; - cocos2d::extension::ControlSlider* 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.ControlSlider",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocos2d::extension::ControlSlider*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_extension_ControlSlider_locationFromTouch'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - cocos2d::Touch* arg0; - - ok &= luaval_to_object(tolua_S, 2, "cc.Touch",&arg0); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_ControlSlider_locationFromTouch'", nullptr); - return 0; - } - cocos2d::Vec2 ret = cobj->locationFromTouch(arg0); - vec2_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ControlSlider:locationFromTouch",argc, 1); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_extension_ControlSlider_locationFromTouch'.",&tolua_err); -#endif - - return 0; -} -int lua_cocos2dx_extension_ControlSlider_setSelectedThumbSprite(lua_State* tolua_S) -{ - int argc = 0; - cocos2d::extension::ControlSlider* 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.ControlSlider",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocos2d::extension::ControlSlider*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_extension_ControlSlider_setSelectedThumbSprite'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - cocos2d::Sprite* arg0; - - ok &= luaval_to_object(tolua_S, 2, "cc.Sprite",&arg0); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_ControlSlider_setSelectedThumbSprite'", nullptr); - return 0; - } - cobj->setSelectedThumbSprite(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ControlSlider:setSelectedThumbSprite",argc, 1); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_extension_ControlSlider_setSelectedThumbSprite'.",&tolua_err); -#endif - - return 0; -} int lua_cocos2dx_extension_ControlSlider_setProgressSprite(lua_State* tolua_S) { int argc = 0; @@ -5988,7 +5533,7 @@ int lua_cocos2dx_extension_ControlSlider_setProgressSprite(lua_State* tolua_S) return 0; } -int lua_cocos2dx_extension_ControlSlider_getMaximumAllowedValue(lua_State* tolua_S) +int lua_cocos2dx_extension_ControlSlider_setMaximumValue(lua_State* tolua_S) { int argc = 0; cocos2d::extension::ControlSlider* cobj = nullptr; @@ -6008,76 +5553,32 @@ int lua_cocos2dx_extension_ControlSlider_getMaximumAllowedValue(lua_State* tolua #if COCOS2D_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_extension_ControlSlider_getMaximumAllowedValue'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_extension_ControlSlider_setMaximumValue'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; - if (argc == 0) + if (argc == 1) { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.ControlSlider:setMaximumValue"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_ControlSlider_getMaximumAllowedValue'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_ControlSlider_setMaximumValue'", nullptr); return 0; } - double ret = cobj->getMaximumAllowedValue(); - tolua_pushnumber(tolua_S,(lua_Number)ret); + cobj->setMaximumValue(arg0); + lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ControlSlider:getMaximumAllowedValue",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ControlSlider:setMaximumValue",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_extension_ControlSlider_getMaximumAllowedValue'.",&tolua_err); -#endif - - return 0; -} -int lua_cocos2dx_extension_ControlSlider_getMinimumAllowedValue(lua_State* tolua_S) -{ - int argc = 0; - cocos2d::extension::ControlSlider* 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.ControlSlider",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocos2d::extension::ControlSlider*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_extension_ControlSlider_getMinimumAllowedValue'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_ControlSlider_getMinimumAllowedValue'", nullptr); - return 0; - } - double ret = cobj->getMinimumAllowedValue(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ControlSlider:getMinimumAllowedValue",argc, 0); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_extension_ControlSlider_getMinimumAllowedValue'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_extension_ControlSlider_setMaximumValue'.",&tolua_err); #endif return 0; @@ -6179,6 +5680,247 @@ int lua_cocos2dx_extension_ControlSlider_setThumbSprite(lua_State* tolua_S) return 0; } +int lua_cocos2dx_extension_ControlSlider_getValue(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::extension::ControlSlider* 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.ControlSlider",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::extension::ControlSlider*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_extension_ControlSlider_getValue'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_ControlSlider_getValue'", nullptr); + return 0; + } + double ret = cobj->getValue(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ControlSlider:getValue",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_extension_ControlSlider_getValue'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_extension_ControlSlider_getBackgroundSprite(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::extension::ControlSlider* 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.ControlSlider",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::extension::ControlSlider*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_extension_ControlSlider_getBackgroundSprite'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_ControlSlider_getBackgroundSprite'", nullptr); + return 0; + } + cocos2d::Sprite* ret = cobj->getBackgroundSprite(); + object_to_luaval(tolua_S, "cc.Sprite",(cocos2d::Sprite*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ControlSlider:getBackgroundSprite",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_extension_ControlSlider_getBackgroundSprite'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_extension_ControlSlider_getThumbSprite(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::extension::ControlSlider* 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.ControlSlider",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::extension::ControlSlider*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_extension_ControlSlider_getThumbSprite'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_ControlSlider_getThumbSprite'", nullptr); + return 0; + } + cocos2d::Sprite* ret = cobj->getThumbSprite(); + object_to_luaval(tolua_S, "cc.Sprite",(cocos2d::Sprite*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ControlSlider:getThumbSprite",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_extension_ControlSlider_getThumbSprite'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_extension_ControlSlider_setValue(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::extension::ControlSlider* 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.ControlSlider",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::extension::ControlSlider*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_extension_ControlSlider_setValue'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.ControlSlider:setValue"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_ControlSlider_setValue'", nullptr); + return 0; + } + cobj->setValue(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ControlSlider:setValue",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_extension_ControlSlider_setValue'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_extension_ControlSlider_locationFromTouch(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::extension::ControlSlider* 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.ControlSlider",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::extension::ControlSlider*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_extension_ControlSlider_locationFromTouch'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + cocos2d::Touch* arg0; + + ok &= luaval_to_object(tolua_S, 2, "cc.Touch",&arg0); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_ControlSlider_locationFromTouch'", nullptr); + return 0; + } + cocos2d::Vec2 ret = cobj->locationFromTouch(arg0); + vec2_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ControlSlider:locationFromTouch",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_extension_ControlSlider_locationFromTouch'.",&tolua_err); +#endif + + return 0; +} int lua_cocos2dx_extension_ControlSlider_setMinimumValue(lua_State* tolua_S) { int argc = 0; @@ -6279,516 +6021,6 @@ int lua_cocos2dx_extension_ControlSlider_setMinimumAllowedValue(lua_State* tolua return 0; } -int lua_cocos2dx_extension_ControlSlider_setEnabled(lua_State* tolua_S) -{ - int argc = 0; - cocos2d::extension::ControlSlider* 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.ControlSlider",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocos2d::extension::ControlSlider*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_extension_ControlSlider_setEnabled'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - bool arg0; - - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.ControlSlider:setEnabled"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_ControlSlider_setEnabled'", nullptr); - return 0; - } - cobj->setEnabled(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ControlSlider:setEnabled",argc, 1); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_extension_ControlSlider_setEnabled'.",&tolua_err); -#endif - - return 0; -} -int lua_cocos2dx_extension_ControlSlider_setValue(lua_State* tolua_S) -{ - int argc = 0; - cocos2d::extension::ControlSlider* 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.ControlSlider",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocos2d::extension::ControlSlider*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_extension_ControlSlider_setValue'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.ControlSlider:setValue"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_ControlSlider_setValue'", nullptr); - return 0; - } - cobj->setValue(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ControlSlider:setValue",argc, 1); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_extension_ControlSlider_setValue'.",&tolua_err); -#endif - - return 0; -} -int lua_cocos2dx_extension_ControlSlider_setMaximumValue(lua_State* tolua_S) -{ - int argc = 0; - cocos2d::extension::ControlSlider* 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.ControlSlider",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocos2d::extension::ControlSlider*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_extension_ControlSlider_setMaximumValue'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.ControlSlider:setMaximumValue"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_ControlSlider_setMaximumValue'", nullptr); - return 0; - } - cobj->setMaximumValue(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ControlSlider:setMaximumValue",argc, 1); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_extension_ControlSlider_setMaximumValue'.",&tolua_err); -#endif - - return 0; -} -int lua_cocos2dx_extension_ControlSlider_needsLayout(lua_State* tolua_S) -{ - int argc = 0; - cocos2d::extension::ControlSlider* 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.ControlSlider",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocos2d::extension::ControlSlider*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_extension_ControlSlider_needsLayout'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_ControlSlider_needsLayout'", nullptr); - return 0; - } - cobj->needsLayout(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ControlSlider:needsLayout",argc, 0); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_extension_ControlSlider_needsLayout'.",&tolua_err); -#endif - - return 0; -} -int lua_cocos2dx_extension_ControlSlider_getBackgroundSprite(lua_State* tolua_S) -{ - int argc = 0; - cocos2d::extension::ControlSlider* 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.ControlSlider",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocos2d::extension::ControlSlider*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_extension_ControlSlider_getBackgroundSprite'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_ControlSlider_getBackgroundSprite'", nullptr); - return 0; - } - cocos2d::Sprite* ret = cobj->getBackgroundSprite(); - object_to_luaval(tolua_S, "cc.Sprite",(cocos2d::Sprite*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ControlSlider:getBackgroundSprite",argc, 0); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_extension_ControlSlider_getBackgroundSprite'.",&tolua_err); -#endif - - return 0; -} -int lua_cocos2dx_extension_ControlSlider_initWithSprites(lua_State* tolua_S) -{ - int argc = 0; - cocos2d::extension::ControlSlider* 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.ControlSlider",0,&tolua_err)) goto tolua_lerror; -#endif - cobj = (cocos2d::extension::ControlSlider*)tolua_tousertype(tolua_S,1,0); -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_extension_ControlSlider_initWithSprites'", nullptr); - return 0; - } -#endif - argc = lua_gettop(tolua_S)-1; - do{ - if (argc == 4) { - cocos2d::Sprite* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Sprite",&arg0); - - if (!ok) { break; } - cocos2d::Sprite* arg1; - ok &= luaval_to_object(tolua_S, 3, "cc.Sprite",&arg1); - - if (!ok) { break; } - cocos2d::Sprite* arg2; - ok &= luaval_to_object(tolua_S, 4, "cc.Sprite",&arg2); - - if (!ok) { break; } - cocos2d::Sprite* arg3; - ok &= luaval_to_object(tolua_S, 5, "cc.Sprite",&arg3); - - if (!ok) { break; } - bool ret = cobj->initWithSprites(arg0, arg1, arg2, arg3); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - }while(0); - ok = true; - do{ - if (argc == 3) { - cocos2d::Sprite* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Sprite",&arg0); - - if (!ok) { break; } - cocos2d::Sprite* arg1; - ok &= luaval_to_object(tolua_S, 3, "cc.Sprite",&arg1); - - if (!ok) { break; } - cocos2d::Sprite* arg2; - ok &= luaval_to_object(tolua_S, 4, "cc.Sprite",&arg2); - - if (!ok) { break; } - bool ret = cobj->initWithSprites(arg0, arg1, arg2); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - }while(0); - ok = true; - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ControlSlider:initWithSprites",argc, 3); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_extension_ControlSlider_initWithSprites'.",&tolua_err); -#endif - - return 0; -} -int lua_cocos2dx_extension_ControlSlider_getMaximumValue(lua_State* tolua_S) -{ - int argc = 0; - cocos2d::extension::ControlSlider* 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.ControlSlider",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocos2d::extension::ControlSlider*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_extension_ControlSlider_getMaximumValue'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_ControlSlider_getMaximumValue'", nullptr); - return 0; - } - double ret = cobj->getMaximumValue(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ControlSlider:getMaximumValue",argc, 0); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_extension_ControlSlider_getMaximumValue'.",&tolua_err); -#endif - - return 0; -} -int lua_cocos2dx_extension_ControlSlider_isTouchInside(lua_State* tolua_S) -{ - int argc = 0; - cocos2d::extension::ControlSlider* 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.ControlSlider",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocos2d::extension::ControlSlider*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_extension_ControlSlider_isTouchInside'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - cocos2d::Touch* arg0; - - ok &= luaval_to_object(tolua_S, 2, "cc.Touch",&arg0); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_ControlSlider_isTouchInside'", nullptr); - return 0; - } - bool ret = cobj->isTouchInside(arg0); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ControlSlider:isTouchInside",argc, 1); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_extension_ControlSlider_isTouchInside'.",&tolua_err); -#endif - - return 0; -} -int lua_cocos2dx_extension_ControlSlider_getValue(lua_State* tolua_S) -{ - int argc = 0; - cocos2d::extension::ControlSlider* 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.ControlSlider",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocos2d::extension::ControlSlider*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_extension_ControlSlider_getValue'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_ControlSlider_getValue'", nullptr); - return 0; - } - double ret = cobj->getValue(); - tolua_pushnumber(tolua_S,(lua_Number)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ControlSlider:getValue",argc, 0); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_extension_ControlSlider_getValue'.",&tolua_err); -#endif - - return 0; -} -int lua_cocos2dx_extension_ControlSlider_getThumbSprite(lua_State* tolua_S) -{ - int argc = 0; - cocos2d::extension::ControlSlider* 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.ControlSlider",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocos2d::extension::ControlSlider*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_extension_ControlSlider_getThumbSprite'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_ControlSlider_getThumbSprite'", nullptr); - return 0; - } - cocos2d::Sprite* ret = cobj->getThumbSprite(); - object_to_luaval(tolua_S, "cc.Sprite",(cocos2d::Sprite*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ControlSlider:getThumbSprite",argc, 0); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_extension_ControlSlider_getThumbSprite'.",&tolua_err); -#endif - - return 0; -} int lua_cocos2dx_extension_ControlSlider_getProgressSprite(lua_State* tolua_S) { int argc = 0; @@ -6836,7 +6068,7 @@ int lua_cocos2dx_extension_ControlSlider_getProgressSprite(lua_State* tolua_S) return 0; } -int lua_cocos2dx_extension_ControlSlider_setBackgroundSprite(lua_State* tolua_S) +int lua_cocos2dx_extension_ControlSlider_setSelectedThumbSprite(lua_State* tolua_S) { int argc = 0; cocos2d::extension::ControlSlider* cobj = nullptr; @@ -6856,7 +6088,7 @@ int lua_cocos2dx_extension_ControlSlider_setBackgroundSprite(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_extension_ControlSlider_setBackgroundSprite'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_extension_ControlSlider_setSelectedThumbSprite'", nullptr); return 0; } #endif @@ -6869,19 +6101,19 @@ int lua_cocos2dx_extension_ControlSlider_setBackgroundSprite(lua_State* tolua_S) ok &= luaval_to_object(tolua_S, 2, "cc.Sprite",&arg0); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_ControlSlider_setBackgroundSprite'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_ControlSlider_setSelectedThumbSprite'", nullptr); return 0; } - cobj->setBackgroundSprite(arg0); + cobj->setSelectedThumbSprite(arg0); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ControlSlider:setBackgroundSprite",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ControlSlider:setSelectedThumbSprite",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_extension_ControlSlider_setBackgroundSprite'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_extension_ControlSlider_setSelectedThumbSprite'.",&tolua_err); #endif return 0; @@ -7090,28 +6322,25 @@ int lua_register_cocos2dx_extension_ControlSlider(lua_State* tolua_S) tolua_beginmodule(tolua_S,"ControlSlider"); tolua_function(tolua_S,"new",lua_cocos2dx_extension_ControlSlider_constructor); - tolua_function(tolua_S,"getSelectedThumbSprite",lua_cocos2dx_extension_ControlSlider_getSelectedThumbSprite); - tolua_function(tolua_S,"locationFromTouch",lua_cocos2dx_extension_ControlSlider_locationFromTouch); - tolua_function(tolua_S,"setSelectedThumbSprite",lua_cocos2dx_extension_ControlSlider_setSelectedThumbSprite); - tolua_function(tolua_S,"setProgressSprite",lua_cocos2dx_extension_ControlSlider_setProgressSprite); + tolua_function(tolua_S,"setBackgroundSprite",lua_cocos2dx_extension_ControlSlider_setBackgroundSprite); tolua_function(tolua_S,"getMaximumAllowedValue",lua_cocos2dx_extension_ControlSlider_getMaximumAllowedValue); + tolua_function(tolua_S,"initWithSprites",lua_cocos2dx_extension_ControlSlider_initWithSprites); tolua_function(tolua_S,"getMinimumAllowedValue",lua_cocos2dx_extension_ControlSlider_getMinimumAllowedValue); + tolua_function(tolua_S,"getMaximumValue",lua_cocos2dx_extension_ControlSlider_getMaximumValue); + tolua_function(tolua_S,"getSelectedThumbSprite",lua_cocos2dx_extension_ControlSlider_getSelectedThumbSprite); + tolua_function(tolua_S,"setProgressSprite",lua_cocos2dx_extension_ControlSlider_setProgressSprite); + tolua_function(tolua_S,"setMaximumValue",lua_cocos2dx_extension_ControlSlider_setMaximumValue); tolua_function(tolua_S,"getMinimumValue",lua_cocos2dx_extension_ControlSlider_getMinimumValue); tolua_function(tolua_S,"setThumbSprite",lua_cocos2dx_extension_ControlSlider_setThumbSprite); + tolua_function(tolua_S,"getValue",lua_cocos2dx_extension_ControlSlider_getValue); + tolua_function(tolua_S,"getBackgroundSprite",lua_cocos2dx_extension_ControlSlider_getBackgroundSprite); + tolua_function(tolua_S,"getThumbSprite",lua_cocos2dx_extension_ControlSlider_getThumbSprite); + tolua_function(tolua_S,"setValue",lua_cocos2dx_extension_ControlSlider_setValue); + tolua_function(tolua_S,"locationFromTouch",lua_cocos2dx_extension_ControlSlider_locationFromTouch); tolua_function(tolua_S,"setMinimumValue",lua_cocos2dx_extension_ControlSlider_setMinimumValue); tolua_function(tolua_S,"setMinimumAllowedValue",lua_cocos2dx_extension_ControlSlider_setMinimumAllowedValue); - tolua_function(tolua_S,"setEnabled",lua_cocos2dx_extension_ControlSlider_setEnabled); - tolua_function(tolua_S,"setValue",lua_cocos2dx_extension_ControlSlider_setValue); - tolua_function(tolua_S,"setMaximumValue",lua_cocos2dx_extension_ControlSlider_setMaximumValue); - tolua_function(tolua_S,"needsLayout",lua_cocos2dx_extension_ControlSlider_needsLayout); - tolua_function(tolua_S,"getBackgroundSprite",lua_cocos2dx_extension_ControlSlider_getBackgroundSprite); - tolua_function(tolua_S,"initWithSprites",lua_cocos2dx_extension_ControlSlider_initWithSprites); - tolua_function(tolua_S,"getMaximumValue",lua_cocos2dx_extension_ControlSlider_getMaximumValue); - tolua_function(tolua_S,"isTouchInside",lua_cocos2dx_extension_ControlSlider_isTouchInside); - tolua_function(tolua_S,"getValue",lua_cocos2dx_extension_ControlSlider_getValue); - tolua_function(tolua_S,"getThumbSprite",lua_cocos2dx_extension_ControlSlider_getThumbSprite); tolua_function(tolua_S,"getProgressSprite",lua_cocos2dx_extension_ControlSlider_getProgressSprite); - tolua_function(tolua_S,"setBackgroundSprite",lua_cocos2dx_extension_ControlSlider_setBackgroundSprite); + tolua_function(tolua_S,"setSelectedThumbSprite",lua_cocos2dx_extension_ControlSlider_setSelectedThumbSprite); tolua_function(tolua_S,"setMaximumAllowedValue",lua_cocos2dx_extension_ControlSlider_setMaximumAllowedValue); tolua_function(tolua_S,"create", lua_cocos2dx_extension_ControlSlider_create); tolua_endmodule(tolua_S); @@ -7121,200 +6350,6 @@ int lua_register_cocos2dx_extension_ControlSlider(lua_State* tolua_S) return 1; } -int lua_cocos2dx_extension_ControlStepper_setMinusSprite(lua_State* tolua_S) -{ - int argc = 0; - cocos2d::extension::ControlStepper* 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.ControlStepper",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocos2d::extension::ControlStepper*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_extension_ControlStepper_setMinusSprite'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - cocos2d::Sprite* arg0; - - ok &= luaval_to_object(tolua_S, 2, "cc.Sprite",&arg0); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_ControlStepper_setMinusSprite'", nullptr); - return 0; - } - cobj->setMinusSprite(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ControlStepper:setMinusSprite",argc, 1); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_extension_ControlStepper_setMinusSprite'.",&tolua_err); -#endif - - return 0; -} -int lua_cocos2dx_extension_ControlStepper_getMinusLabel(lua_State* tolua_S) -{ - int argc = 0; - cocos2d::extension::ControlStepper* 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.ControlStepper",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocos2d::extension::ControlStepper*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_extension_ControlStepper_getMinusLabel'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_ControlStepper_getMinusLabel'", nullptr); - return 0; - } - cocos2d::Label* ret = cobj->getMinusLabel(); - object_to_luaval(tolua_S, "cc.Label",(cocos2d::Label*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ControlStepper:getMinusLabel",argc, 0); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_extension_ControlStepper_getMinusLabel'.",&tolua_err); -#endif - - return 0; -} -int lua_cocos2dx_extension_ControlStepper_setWraps(lua_State* tolua_S) -{ - int argc = 0; - cocos2d::extension::ControlStepper* 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.ControlStepper",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocos2d::extension::ControlStepper*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_extension_ControlStepper_setWraps'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - bool arg0; - - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.ControlStepper:setWraps"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_ControlStepper_setWraps'", nullptr); - return 0; - } - cobj->setWraps(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ControlStepper:setWraps",argc, 1); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_extension_ControlStepper_setWraps'.",&tolua_err); -#endif - - return 0; -} -int lua_cocos2dx_extension_ControlStepper_isContinuous(lua_State* tolua_S) -{ - int argc = 0; - cocos2d::extension::ControlStepper* 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.ControlStepper",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocos2d::extension::ControlStepper*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_extension_ControlStepper_isContinuous'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_ControlStepper_isContinuous'", nullptr); - return 0; - } - bool ret = cobj->isContinuous(); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ControlStepper:isContinuous",argc, 0); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_extension_ControlStepper_isContinuous'.",&tolua_err); -#endif - - return 0; -} int lua_cocos2dx_extension_ControlStepper_getMinusSprite(lua_State* tolua_S) { int argc = 0; @@ -7362,400 +6397,6 @@ int lua_cocos2dx_extension_ControlStepper_getMinusSprite(lua_State* tolua_S) return 0; } -int lua_cocos2dx_extension_ControlStepper_updateLayoutUsingTouchLocation(lua_State* tolua_S) -{ - int argc = 0; - cocos2d::extension::ControlStepper* 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.ControlStepper",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocos2d::extension::ControlStepper*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_extension_ControlStepper_updateLayoutUsingTouchLocation'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - cocos2d::Vec2 arg0; - - ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.ControlStepper:updateLayoutUsingTouchLocation"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_ControlStepper_updateLayoutUsingTouchLocation'", nullptr); - return 0; - } - cobj->updateLayoutUsingTouchLocation(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ControlStepper:updateLayoutUsingTouchLocation",argc, 1); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_extension_ControlStepper_updateLayoutUsingTouchLocation'.",&tolua_err); -#endif - - return 0; -} -int lua_cocos2dx_extension_ControlStepper_setValueWithSendingEvent(lua_State* tolua_S) -{ - int argc = 0; - cocos2d::extension::ControlStepper* 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.ControlStepper",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocos2d::extension::ControlStepper*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_extension_ControlStepper_setValueWithSendingEvent'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 2) - { - double arg0; - bool arg1; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.ControlStepper:setValueWithSendingEvent"); - - ok &= luaval_to_boolean(tolua_S, 3,&arg1, "cc.ControlStepper:setValueWithSendingEvent"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_ControlStepper_setValueWithSendingEvent'", nullptr); - return 0; - } - cobj->setValueWithSendingEvent(arg0, arg1); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ControlStepper:setValueWithSendingEvent",argc, 2); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_extension_ControlStepper_setValueWithSendingEvent'.",&tolua_err); -#endif - - return 0; -} -int lua_cocos2dx_extension_ControlStepper_getPlusLabel(lua_State* tolua_S) -{ - int argc = 0; - cocos2d::extension::ControlStepper* 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.ControlStepper",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocos2d::extension::ControlStepper*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_extension_ControlStepper_getPlusLabel'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_ControlStepper_getPlusLabel'", nullptr); - return 0; - } - cocos2d::Label* ret = cobj->getPlusLabel(); - object_to_luaval(tolua_S, "cc.Label",(cocos2d::Label*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ControlStepper:getPlusLabel",argc, 0); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_extension_ControlStepper_getPlusLabel'.",&tolua_err); -#endif - - return 0; -} -int lua_cocos2dx_extension_ControlStepper_stopAutorepeat(lua_State* tolua_S) -{ - int argc = 0; - cocos2d::extension::ControlStepper* 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.ControlStepper",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocos2d::extension::ControlStepper*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_extension_ControlStepper_stopAutorepeat'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_ControlStepper_stopAutorepeat'", nullptr); - return 0; - } - cobj->stopAutorepeat(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ControlStepper:stopAutorepeat",argc, 0); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_extension_ControlStepper_stopAutorepeat'.",&tolua_err); -#endif - - return 0; -} -int lua_cocos2dx_extension_ControlStepper_setMinimumValue(lua_State* tolua_S) -{ - int argc = 0; - cocos2d::extension::ControlStepper* 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.ControlStepper",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocos2d::extension::ControlStepper*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_extension_ControlStepper_setMinimumValue'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.ControlStepper:setMinimumValue"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_ControlStepper_setMinimumValue'", nullptr); - return 0; - } - cobj->setMinimumValue(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ControlStepper:setMinimumValue",argc, 1); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_extension_ControlStepper_setMinimumValue'.",&tolua_err); -#endif - - return 0; -} -int lua_cocos2dx_extension_ControlStepper_getPlusSprite(lua_State* tolua_S) -{ - int argc = 0; - cocos2d::extension::ControlStepper* 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.ControlStepper",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocos2d::extension::ControlStepper*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_extension_ControlStepper_getPlusSprite'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_ControlStepper_getPlusSprite'", nullptr); - return 0; - } - cocos2d::Sprite* ret = cobj->getPlusSprite(); - object_to_luaval(tolua_S, "cc.Sprite",(cocos2d::Sprite*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ControlStepper:getPlusSprite",argc, 0); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_extension_ControlStepper_getPlusSprite'.",&tolua_err); -#endif - - return 0; -} -int lua_cocos2dx_extension_ControlStepper_setPlusSprite(lua_State* tolua_S) -{ - int argc = 0; - cocos2d::extension::ControlStepper* 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.ControlStepper",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocos2d::extension::ControlStepper*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_extension_ControlStepper_setPlusSprite'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - cocos2d::Sprite* arg0; - - ok &= luaval_to_object(tolua_S, 2, "cc.Sprite",&arg0); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_ControlStepper_setPlusSprite'", nullptr); - return 0; - } - cobj->setPlusSprite(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ControlStepper:setPlusSprite",argc, 1); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_extension_ControlStepper_setPlusSprite'.",&tolua_err); -#endif - - return 0; -} -int lua_cocos2dx_extension_ControlStepper_setMinusLabel(lua_State* tolua_S) -{ - int argc = 0; - cocos2d::extension::ControlStepper* 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.ControlStepper",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocos2d::extension::ControlStepper*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_extension_ControlStepper_setMinusLabel'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - cocos2d::Label* arg0; - - ok &= luaval_to_object(tolua_S, 2, "cc.Label",&arg0); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_ControlStepper_setMinusLabel'", nullptr); - return 0; - } - cobj->setMinusLabel(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ControlStepper:setMinusLabel",argc, 1); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_extension_ControlStepper_setMinusLabel'.",&tolua_err); -#endif - - return 0; -} int lua_cocos2dx_extension_ControlStepper_setValue(lua_State* tolua_S) { int argc = 0; @@ -7856,153 +6497,6 @@ int lua_cocos2dx_extension_ControlStepper_setStepValue(lua_State* tolua_S) return 0; } -int lua_cocos2dx_extension_ControlStepper_setMaximumValue(lua_State* tolua_S) -{ - int argc = 0; - cocos2d::extension::ControlStepper* 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.ControlStepper",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocos2d::extension::ControlStepper*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_extension_ControlStepper_setMaximumValue'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.ControlStepper:setMaximumValue"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_ControlStepper_setMaximumValue'", nullptr); - return 0; - } - cobj->setMaximumValue(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ControlStepper:setMaximumValue",argc, 1); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_extension_ControlStepper_setMaximumValue'.",&tolua_err); -#endif - - return 0; -} -int lua_cocos2dx_extension_ControlStepper_update(lua_State* tolua_S) -{ - int argc = 0; - cocos2d::extension::ControlStepper* 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.ControlStepper",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocos2d::extension::ControlStepper*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_extension_ControlStepper_update'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.ControlStepper:update"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_ControlStepper_update'", nullptr); - return 0; - } - cobj->update(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ControlStepper:update",argc, 1); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_extension_ControlStepper_update'.",&tolua_err); -#endif - - return 0; -} -int lua_cocos2dx_extension_ControlStepper_startAutorepeat(lua_State* tolua_S) -{ - int argc = 0; - cocos2d::extension::ControlStepper* 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.ControlStepper",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocos2d::extension::ControlStepper*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_extension_ControlStepper_startAutorepeat'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_ControlStepper_startAutorepeat'", nullptr); - return 0; - } - cobj->startAutorepeat(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ControlStepper:startAutorepeat",argc, 0); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_extension_ControlStepper_startAutorepeat'.",&tolua_err); -#endif - - return 0; -} int lua_cocos2dx_extension_ControlStepper_initWithMinusSpriteAndPlusSprite(lua_State* tolua_S) { int argc = 0; @@ -8056,7 +6550,7 @@ int lua_cocos2dx_extension_ControlStepper_initWithMinusSpriteAndPlusSprite(lua_S return 0; } -int lua_cocos2dx_extension_ControlStepper_getValue(lua_State* tolua_S) +int lua_cocos2dx_extension_ControlStepper_setValueWithSendingEvent(lua_State* tolua_S) { int argc = 0; cocos2d::extension::ControlStepper* cobj = nullptr; @@ -8076,7 +6570,110 @@ int lua_cocos2dx_extension_ControlStepper_getValue(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_extension_ControlStepper_getValue'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_extension_ControlStepper_setValueWithSendingEvent'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 2) + { + double arg0; + bool arg1; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.ControlStepper:setValueWithSendingEvent"); + + ok &= luaval_to_boolean(tolua_S, 3,&arg1, "cc.ControlStepper:setValueWithSendingEvent"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_ControlStepper_setValueWithSendingEvent'", nullptr); + return 0; + } + cobj->setValueWithSendingEvent(arg0, arg1); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ControlStepper:setValueWithSendingEvent",argc, 2); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_extension_ControlStepper_setValueWithSendingEvent'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_extension_ControlStepper_setMaximumValue(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::extension::ControlStepper* 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.ControlStepper",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::extension::ControlStepper*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_extension_ControlStepper_setMaximumValue'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.ControlStepper:setMaximumValue"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_ControlStepper_setMaximumValue'", nullptr); + return 0; + } + cobj->setMaximumValue(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ControlStepper:setMaximumValue",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_extension_ControlStepper_setMaximumValue'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_extension_ControlStepper_getMinusLabel(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::extension::ControlStepper* 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.ControlStepper",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::extension::ControlStepper*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_extension_ControlStepper_getMinusLabel'", nullptr); return 0; } #endif @@ -8086,19 +6683,407 @@ int lua_cocos2dx_extension_ControlStepper_getValue(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_ControlStepper_getValue'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_ControlStepper_getMinusLabel'", nullptr); return 0; } - double ret = cobj->getValue(); - tolua_pushnumber(tolua_S,(lua_Number)ret); + cocos2d::Label* ret = cobj->getMinusLabel(); + object_to_luaval(tolua_S, "cc.Label",(cocos2d::Label*)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ControlStepper:getValue",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ControlStepper:getMinusLabel",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_extension_ControlStepper_getValue'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_extension_ControlStepper_getMinusLabel'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_extension_ControlStepper_getPlusLabel(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::extension::ControlStepper* 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.ControlStepper",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::extension::ControlStepper*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_extension_ControlStepper_getPlusLabel'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_ControlStepper_getPlusLabel'", nullptr); + return 0; + } + cocos2d::Label* ret = cobj->getPlusLabel(); + object_to_luaval(tolua_S, "cc.Label",(cocos2d::Label*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ControlStepper:getPlusLabel",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_extension_ControlStepper_getPlusLabel'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_extension_ControlStepper_setWraps(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::extension::ControlStepper* 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.ControlStepper",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::extension::ControlStepper*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_extension_ControlStepper_setWraps'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + bool arg0; + + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.ControlStepper:setWraps"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_ControlStepper_setWraps'", nullptr); + return 0; + } + cobj->setWraps(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ControlStepper:setWraps",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_extension_ControlStepper_setWraps'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_extension_ControlStepper_setMinusLabel(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::extension::ControlStepper* 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.ControlStepper",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::extension::ControlStepper*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_extension_ControlStepper_setMinusLabel'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + cocos2d::Label* arg0; + + ok &= luaval_to_object(tolua_S, 2, "cc.Label",&arg0); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_ControlStepper_setMinusLabel'", nullptr); + return 0; + } + cobj->setMinusLabel(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ControlStepper:setMinusLabel",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_extension_ControlStepper_setMinusLabel'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_extension_ControlStepper_startAutorepeat(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::extension::ControlStepper* 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.ControlStepper",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::extension::ControlStepper*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_extension_ControlStepper_startAutorepeat'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_ControlStepper_startAutorepeat'", nullptr); + return 0; + } + cobj->startAutorepeat(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ControlStepper:startAutorepeat",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_extension_ControlStepper_startAutorepeat'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_extension_ControlStepper_updateLayoutUsingTouchLocation(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::extension::ControlStepper* 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.ControlStepper",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::extension::ControlStepper*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_extension_ControlStepper_updateLayoutUsingTouchLocation'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + cocos2d::Vec2 arg0; + + ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.ControlStepper:updateLayoutUsingTouchLocation"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_ControlStepper_updateLayoutUsingTouchLocation'", nullptr); + return 0; + } + cobj->updateLayoutUsingTouchLocation(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ControlStepper:updateLayoutUsingTouchLocation",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_extension_ControlStepper_updateLayoutUsingTouchLocation'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_extension_ControlStepper_isContinuous(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::extension::ControlStepper* 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.ControlStepper",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::extension::ControlStepper*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_extension_ControlStepper_isContinuous'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_ControlStepper_isContinuous'", nullptr); + return 0; + } + bool ret = cobj->isContinuous(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ControlStepper:isContinuous",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_extension_ControlStepper_isContinuous'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_extension_ControlStepper_stopAutorepeat(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::extension::ControlStepper* 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.ControlStepper",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::extension::ControlStepper*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_extension_ControlStepper_stopAutorepeat'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_ControlStepper_stopAutorepeat'", nullptr); + return 0; + } + cobj->stopAutorepeat(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ControlStepper:stopAutorepeat",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_extension_ControlStepper_stopAutorepeat'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_extension_ControlStepper_setMinimumValue(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::extension::ControlStepper* 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.ControlStepper",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::extension::ControlStepper*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_extension_ControlStepper_setMinimumValue'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.ControlStepper:setMinimumValue"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_ControlStepper_setMinimumValue'", nullptr); + return 0; + } + cobj->setMinimumValue(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ControlStepper:setMinimumValue",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_extension_ControlStepper_setMinimumValue'.",&tolua_err); #endif return 0; @@ -8153,6 +7138,200 @@ int lua_cocos2dx_extension_ControlStepper_setPlusLabel(lua_State* tolua_S) return 0; } +int lua_cocos2dx_extension_ControlStepper_getValue(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::extension::ControlStepper* 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.ControlStepper",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::extension::ControlStepper*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_extension_ControlStepper_getValue'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_ControlStepper_getValue'", nullptr); + return 0; + } + double ret = cobj->getValue(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ControlStepper:getValue",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_extension_ControlStepper_getValue'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_extension_ControlStepper_getPlusSprite(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::extension::ControlStepper* 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.ControlStepper",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::extension::ControlStepper*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_extension_ControlStepper_getPlusSprite'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_ControlStepper_getPlusSprite'", nullptr); + return 0; + } + cocos2d::Sprite* ret = cobj->getPlusSprite(); + object_to_luaval(tolua_S, "cc.Sprite",(cocos2d::Sprite*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ControlStepper:getPlusSprite",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_extension_ControlStepper_getPlusSprite'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_extension_ControlStepper_setPlusSprite(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::extension::ControlStepper* 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.ControlStepper",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::extension::ControlStepper*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_extension_ControlStepper_setPlusSprite'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + cocos2d::Sprite* arg0; + + ok &= luaval_to_object(tolua_S, 2, "cc.Sprite",&arg0); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_ControlStepper_setPlusSprite'", nullptr); + return 0; + } + cobj->setPlusSprite(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ControlStepper:setPlusSprite",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_extension_ControlStepper_setPlusSprite'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_extension_ControlStepper_setMinusSprite(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::extension::ControlStepper* 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.ControlStepper",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::extension::ControlStepper*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_extension_ControlStepper_setMinusSprite'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + cocos2d::Sprite* arg0; + + ok &= luaval_to_object(tolua_S, 2, "cc.Sprite",&arg0); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_ControlStepper_setMinusSprite'", nullptr); + return 0; + } + cobj->setMinusSprite(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ControlStepper:setMinusSprite",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_extension_ControlStepper_setMinusSprite'.",&tolua_err); +#endif + + return 0; +} int lua_cocos2dx_extension_ControlStepper_create(lua_State* tolua_S) { int argc = 0; @@ -8241,27 +7420,26 @@ int lua_register_cocos2dx_extension_ControlStepper(lua_State* tolua_S) tolua_beginmodule(tolua_S,"ControlStepper"); tolua_function(tolua_S,"new",lua_cocos2dx_extension_ControlStepper_constructor); - tolua_function(tolua_S,"setMinusSprite",lua_cocos2dx_extension_ControlStepper_setMinusSprite); - tolua_function(tolua_S,"getMinusLabel",lua_cocos2dx_extension_ControlStepper_getMinusLabel); - tolua_function(tolua_S,"setWraps",lua_cocos2dx_extension_ControlStepper_setWraps); - tolua_function(tolua_S,"isContinuous",lua_cocos2dx_extension_ControlStepper_isContinuous); tolua_function(tolua_S,"getMinusSprite",lua_cocos2dx_extension_ControlStepper_getMinusSprite); - tolua_function(tolua_S,"updateLayoutUsingTouchLocation",lua_cocos2dx_extension_ControlStepper_updateLayoutUsingTouchLocation); - tolua_function(tolua_S,"setValueWithSendingEvent",lua_cocos2dx_extension_ControlStepper_setValueWithSendingEvent); - tolua_function(tolua_S,"getPlusLabel",lua_cocos2dx_extension_ControlStepper_getPlusLabel); - tolua_function(tolua_S,"stopAutorepeat",lua_cocos2dx_extension_ControlStepper_stopAutorepeat); - tolua_function(tolua_S,"setMinimumValue",lua_cocos2dx_extension_ControlStepper_setMinimumValue); - tolua_function(tolua_S,"getPlusSprite",lua_cocos2dx_extension_ControlStepper_getPlusSprite); - tolua_function(tolua_S,"setPlusSprite",lua_cocos2dx_extension_ControlStepper_setPlusSprite); - tolua_function(tolua_S,"setMinusLabel",lua_cocos2dx_extension_ControlStepper_setMinusLabel); tolua_function(tolua_S,"setValue",lua_cocos2dx_extension_ControlStepper_setValue); tolua_function(tolua_S,"setStepValue",lua_cocos2dx_extension_ControlStepper_setStepValue); - tolua_function(tolua_S,"setMaximumValue",lua_cocos2dx_extension_ControlStepper_setMaximumValue); - tolua_function(tolua_S,"update",lua_cocos2dx_extension_ControlStepper_update); - tolua_function(tolua_S,"startAutorepeat",lua_cocos2dx_extension_ControlStepper_startAutorepeat); tolua_function(tolua_S,"initWithMinusSpriteAndPlusSprite",lua_cocos2dx_extension_ControlStepper_initWithMinusSpriteAndPlusSprite); - tolua_function(tolua_S,"getValue",lua_cocos2dx_extension_ControlStepper_getValue); + tolua_function(tolua_S,"setValueWithSendingEvent",lua_cocos2dx_extension_ControlStepper_setValueWithSendingEvent); + tolua_function(tolua_S,"setMaximumValue",lua_cocos2dx_extension_ControlStepper_setMaximumValue); + tolua_function(tolua_S,"getMinusLabel",lua_cocos2dx_extension_ControlStepper_getMinusLabel); + tolua_function(tolua_S,"getPlusLabel",lua_cocos2dx_extension_ControlStepper_getPlusLabel); + tolua_function(tolua_S,"setWraps",lua_cocos2dx_extension_ControlStepper_setWraps); + tolua_function(tolua_S,"setMinusLabel",lua_cocos2dx_extension_ControlStepper_setMinusLabel); + tolua_function(tolua_S,"startAutorepeat",lua_cocos2dx_extension_ControlStepper_startAutorepeat); + tolua_function(tolua_S,"updateLayoutUsingTouchLocation",lua_cocos2dx_extension_ControlStepper_updateLayoutUsingTouchLocation); + tolua_function(tolua_S,"isContinuous",lua_cocos2dx_extension_ControlStepper_isContinuous); + tolua_function(tolua_S,"stopAutorepeat",lua_cocos2dx_extension_ControlStepper_stopAutorepeat); + tolua_function(tolua_S,"setMinimumValue",lua_cocos2dx_extension_ControlStepper_setMinimumValue); tolua_function(tolua_S,"setPlusLabel",lua_cocos2dx_extension_ControlStepper_setPlusLabel); + tolua_function(tolua_S,"getValue",lua_cocos2dx_extension_ControlStepper_getValue); + tolua_function(tolua_S,"getPlusSprite",lua_cocos2dx_extension_ControlStepper_getPlusSprite); + tolua_function(tolua_S,"setPlusSprite",lua_cocos2dx_extension_ControlStepper_setPlusSprite); + tolua_function(tolua_S,"setMinusSprite",lua_cocos2dx_extension_ControlStepper_setMinusSprite); tolua_function(tolua_S,"create", lua_cocos2dx_extension_ControlStepper_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::extension::ControlStepper).name(); @@ -8270,56 +7448,6 @@ int lua_register_cocos2dx_extension_ControlStepper(lua_State* tolua_S) return 1; } -int lua_cocos2dx_extension_ControlSwitch_setEnabled(lua_State* tolua_S) -{ - int argc = 0; - cocos2d::extension::ControlSwitch* 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.ControlSwitch",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocos2d::extension::ControlSwitch*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_extension_ControlSwitch_setEnabled'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - bool arg0; - - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.ControlSwitch:setEnabled"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_ControlSwitch_setEnabled'", nullptr); - return 0; - } - cobj->setEnabled(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ControlSwitch:setEnabled",argc, 1); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_extension_ControlSwitch_setEnabled'.",&tolua_err); -#endif - - return 0; -} int lua_cocos2dx_extension_ControlSwitch_setOn(lua_State* tolua_S) { int argc = 0; @@ -8379,6 +7507,56 @@ int lua_cocos2dx_extension_ControlSwitch_setOn(lua_State* tolua_S) return 0; } +int lua_cocos2dx_extension_ControlSwitch_locationFromTouch(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::extension::ControlSwitch* 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.ControlSwitch",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::extension::ControlSwitch*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_extension_ControlSwitch_locationFromTouch'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + cocos2d::Touch* arg0; + + ok &= luaval_to_object(tolua_S, 2, "cc.Touch",&arg0); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_ControlSwitch_locationFromTouch'", nullptr); + return 0; + } + cocos2d::Vec2 ret = cobj->locationFromTouch(arg0); + vec2_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ControlSwitch:locationFromTouch",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_extension_ControlSwitch_locationFromTouch'.",&tolua_err); +#endif + + return 0; +} int lua_cocos2dx_extension_ControlSwitch_isOn(lua_State* tolua_S) { int argc = 0; @@ -8560,56 +7738,6 @@ int lua_cocos2dx_extension_ControlSwitch_hasMoved(lua_State* tolua_S) return 0; } -int lua_cocos2dx_extension_ControlSwitch_locationFromTouch(lua_State* tolua_S) -{ - int argc = 0; - cocos2d::extension::ControlSwitch* 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.ControlSwitch",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocos2d::extension::ControlSwitch*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_extension_ControlSwitch_locationFromTouch'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - cocos2d::Touch* arg0; - - ok &= luaval_to_object(tolua_S, 2, "cc.Touch",&arg0); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_ControlSwitch_locationFromTouch'", nullptr); - return 0; - } - cocos2d::Vec2 ret = cobj->locationFromTouch(arg0); - vec2_to_luaval(tolua_S, ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ControlSwitch:locationFromTouch",argc, 1); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_extension_ControlSwitch_locationFromTouch'.",&tolua_err); -#endif - - return 0; -} int lua_cocos2dx_extension_ControlSwitch_create(lua_State* tolua_S) { int argc = 0; @@ -8732,12 +7860,11 @@ int lua_register_cocos2dx_extension_ControlSwitch(lua_State* tolua_S) tolua_beginmodule(tolua_S,"ControlSwitch"); tolua_function(tolua_S,"new",lua_cocos2dx_extension_ControlSwitch_constructor); - tolua_function(tolua_S,"setEnabled",lua_cocos2dx_extension_ControlSwitch_setEnabled); tolua_function(tolua_S,"setOn",lua_cocos2dx_extension_ControlSwitch_setOn); + tolua_function(tolua_S,"locationFromTouch",lua_cocos2dx_extension_ControlSwitch_locationFromTouch); tolua_function(tolua_S,"isOn",lua_cocos2dx_extension_ControlSwitch_isOn); tolua_function(tolua_S,"initWithMaskSprite",lua_cocos2dx_extension_ControlSwitch_initWithMaskSprite); tolua_function(tolua_S,"hasMoved",lua_cocos2dx_extension_ControlSwitch_hasMoved); - tolua_function(tolua_S,"locationFromTouch",lua_cocos2dx_extension_ControlSwitch_locationFromTouch); tolua_function(tolua_S,"create", lua_cocos2dx_extension_ControlSwitch_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::extension::ControlSwitch).name(); @@ -8843,59 +7970,6 @@ int lua_cocos2dx_extension_ScrollView_setContainer(lua_State* tolua_S) return 0; } -int lua_cocos2dx_extension_ScrollView_onTouchEnded(lua_State* tolua_S) -{ - int argc = 0; - cocos2d::extension::ScrollView* 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.ScrollView",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocos2d::extension::ScrollView*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_extension_ScrollView_onTouchEnded'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 2) - { - cocos2d::Touch* arg0; - cocos2d::Event* arg1; - - ok &= luaval_to_object(tolua_S, 2, "cc.Touch",&arg0); - - ok &= luaval_to_object(tolua_S, 3, "cc.Event",&arg1); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_ScrollView_onTouchEnded'", nullptr); - return 0; - } - cobj->onTouchEnded(arg0, arg1); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ScrollView:onTouchEnded",argc, 2); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_extension_ScrollView_onTouchEnded'.",&tolua_err); -#endif - - return 0; -} int lua_cocos2dx_extension_ScrollView_setContentOffsetInDuration(lua_State* tolua_S) { int argc = 0; @@ -9862,59 +8936,6 @@ int lua_cocos2dx_extension_ScrollView_setTouchEnabled(lua_State* tolua_S) return 0; } -int lua_cocos2dx_extension_ScrollView_onTouchMoved(lua_State* tolua_S) -{ - int argc = 0; - cocos2d::extension::ScrollView* 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.ScrollView",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocos2d::extension::ScrollView*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_extension_ScrollView_onTouchMoved'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 2) - { - cocos2d::Touch* arg0; - cocos2d::Event* arg1; - - ok &= luaval_to_object(tolua_S, 2, "cc.Touch",&arg0); - - ok &= luaval_to_object(tolua_S, 3, "cc.Event",&arg1); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_ScrollView_onTouchMoved'", nullptr); - return 0; - } - cobj->onTouchMoved(arg0, arg1); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ScrollView:onTouchMoved",argc, 2); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_extension_ScrollView_onTouchMoved'.",&tolua_err); -#endif - - return 0; -} int lua_cocos2dx_extension_ScrollView_getContentOffset(lua_State* tolua_S) { int argc = 0; @@ -10112,59 +9133,6 @@ int lua_cocos2dx_extension_ScrollView_setViewSize(lua_State* tolua_S) return 0; } -int lua_cocos2dx_extension_ScrollView_onTouchCancelled(lua_State* tolua_S) -{ - int argc = 0; - cocos2d::extension::ScrollView* 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.ScrollView",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocos2d::extension::ScrollView*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_extension_ScrollView_onTouchCancelled'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 2) - { - cocos2d::Touch* arg0; - cocos2d::Event* arg1; - - ok &= luaval_to_object(tolua_S, 2, "cc.Touch",&arg0); - - ok &= luaval_to_object(tolua_S, 3, "cc.Event",&arg1); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_ScrollView_onTouchCancelled'", nullptr); - return 0; - } - cobj->onTouchCancelled(arg0, arg1); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ScrollView:onTouchCancelled",argc, 2); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_extension_ScrollView_onTouchCancelled'.",&tolua_err); -#endif - - return 0; -} int lua_cocos2dx_extension_ScrollView_getViewSize(lua_State* tolua_S) { int argc = 0; @@ -10309,59 +9277,6 @@ int lua_cocos2dx_extension_ScrollView_setBounceable(lua_State* tolua_S) return 0; } -int lua_cocos2dx_extension_ScrollView_onTouchBegan(lua_State* tolua_S) -{ - int argc = 0; - cocos2d::extension::ScrollView* 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.ScrollView",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocos2d::extension::ScrollView*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_extension_ScrollView_onTouchBegan'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 2) - { - cocos2d::Touch* arg0; - cocos2d::Event* arg1; - - ok &= luaval_to_object(tolua_S, 2, "cc.Touch",&arg0); - - ok &= luaval_to_object(tolua_S, 3, "cc.Event",&arg1); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_ScrollView_onTouchBegan'", nullptr); - return 0; - } - bool ret = cobj->onTouchBegan(arg0, arg1); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ScrollView:onTouchBegan",argc, 2); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_extension_ScrollView_onTouchBegan'.",&tolua_err); -#endif - - return 0; -} int lua_cocos2dx_extension_ScrollView_isTouchMoved(lua_State* tolua_S) { int argc = 0; @@ -10678,7 +9593,6 @@ int lua_register_cocos2dx_extension_ScrollView(lua_State* tolua_S) tolua_function(tolua_S,"new",lua_cocos2dx_extension_ScrollView_constructor); tolua_function(tolua_S,"isClippingToBounds",lua_cocos2dx_extension_ScrollView_isClippingToBounds); tolua_function(tolua_S,"setContainer",lua_cocos2dx_extension_ScrollView_setContainer); - tolua_function(tolua_S,"onTouchEnded",lua_cocos2dx_extension_ScrollView_onTouchEnded); tolua_function(tolua_S,"setContentOffsetInDuration",lua_cocos2dx_extension_ScrollView_setContentOffsetInDuration); tolua_function(tolua_S,"setZoomScaleInDuration",lua_cocos2dx_extension_ScrollView_setZoomScaleInDuration); tolua_function(tolua_S,"updateTweenAction",lua_cocos2dx_extension_ScrollView_updateTweenAction); @@ -10698,16 +9612,13 @@ int lua_register_cocos2dx_extension_ScrollView(lua_State* tolua_S) tolua_function(tolua_S,"isTouchEnabled",lua_cocos2dx_extension_ScrollView_isTouchEnabled); tolua_function(tolua_S,"isBounceable",lua_cocos2dx_extension_ScrollView_isBounceable); tolua_function(tolua_S,"setTouchEnabled",lua_cocos2dx_extension_ScrollView_setTouchEnabled); - tolua_function(tolua_S,"onTouchMoved",lua_cocos2dx_extension_ScrollView_onTouchMoved); tolua_function(tolua_S,"getContentOffset",lua_cocos2dx_extension_ScrollView_getContentOffset); tolua_function(tolua_S,"resume",lua_cocos2dx_extension_ScrollView_resume); tolua_function(tolua_S,"setClippingToBounds",lua_cocos2dx_extension_ScrollView_setClippingToBounds); tolua_function(tolua_S,"setViewSize",lua_cocos2dx_extension_ScrollView_setViewSize); - tolua_function(tolua_S,"onTouchCancelled",lua_cocos2dx_extension_ScrollView_onTouchCancelled); tolua_function(tolua_S,"getViewSize",lua_cocos2dx_extension_ScrollView_getViewSize); tolua_function(tolua_S,"maxContainerOffset",lua_cocos2dx_extension_ScrollView_maxContainerOffset); tolua_function(tolua_S,"setBounceable",lua_cocos2dx_extension_ScrollView_setBounceable); - tolua_function(tolua_S,"onTouchBegan",lua_cocos2dx_extension_ScrollView_onTouchBegan); tolua_function(tolua_S,"isTouchMoved",lua_cocos2dx_extension_ScrollView_isTouchMoved); tolua_function(tolua_S,"isNodeVisible",lua_cocos2dx_extension_ScrollView_isNodeVisible); tolua_function(tolua_S,"minContainerOffset",lua_cocos2dx_extension_ScrollView_minContainerOffset); diff --git a/cocos/scripting/lua-bindings/auto/lua_cocos2dx_extension_auto.hpp b/cocos/scripting/lua-bindings/auto/lua_cocos2dx_extension_auto.hpp index ab537860d5..69c7c1750b 100644 --- a/cocos/scripting/lua-bindings/auto/lua_cocos2dx_extension_auto.hpp +++ b/cocos/scripting/lua-bindings/auto/lua_cocos2dx_extension_auto.hpp @@ -311,27 +311,6 @@ int register_all_cocos2dx_extension(lua_State* tolua_S); - - - - - - - - - - - - - - - - - - - - - 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 c4ad0d9b53..3ec5806905 100644 --- a/cocos/scripting/lua-bindings/auto/lua_cocos2dx_studio_auto.cpp +++ b/cocos/scripting/lua-bindings/auto/lua_cocos2dx_studio_auto.cpp @@ -8686,240 +8686,6 @@ int lua_cocos2dx_studio_ArmatureAnimation_getSpeedScale(lua_State* tolua_S) return 0; } -int lua_cocos2dx_studio_ArmatureAnimation_pause(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::ArmatureAnimation* 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.ArmatureAnimation",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::ArmatureAnimation*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ArmatureAnimation_pause'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_studio_ArmatureAnimation_pause'", nullptr); - return 0; - } - cobj->pause(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ArmatureAnimation:pause",argc, 0); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ArmatureAnimation_pause'.",&tolua_err); -#endif - - return 0; -} -int lua_cocos2dx_studio_ArmatureAnimation_setSpeedScale(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::ArmatureAnimation* 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.ArmatureAnimation",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::ArmatureAnimation*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ArmatureAnimation_setSpeedScale'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - double arg0; - - ok &= luaval_to_number(tolua_S, 2,&arg0, "ccs.ArmatureAnimation:setSpeedScale"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_studio_ArmatureAnimation_setSpeedScale'", nullptr); - return 0; - } - cobj->setSpeedScale(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ArmatureAnimation:setSpeedScale",argc, 1); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ArmatureAnimation_setSpeedScale'.",&tolua_err); -#endif - - return 0; -} -int lua_cocos2dx_studio_ArmatureAnimation_init(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::ArmatureAnimation* 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.ArmatureAnimation",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::ArmatureAnimation*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ArmatureAnimation_init'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - cocostudio::Armature* arg0; - - ok &= luaval_to_object(tolua_S, 2, "ccs.Armature",&arg0); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_studio_ArmatureAnimation_init'", nullptr); - return 0; - } - bool ret = cobj->init(arg0); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ArmatureAnimation:init",argc, 1); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ArmatureAnimation_init'.",&tolua_err); -#endif - - return 0; -} -int lua_cocos2dx_studio_ArmatureAnimation_playWithIndexes(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::ArmatureAnimation* 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.ArmatureAnimation",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::ArmatureAnimation*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ArmatureAnimation_playWithIndexes'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - std::vector arg0; - - ok &= luaval_to_std_vector_int(tolua_S, 2, &arg0, "ccs.ArmatureAnimation:playWithIndexes"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_studio_ArmatureAnimation_playWithIndexes'", nullptr); - return 0; - } - cobj->playWithIndexes(arg0); - lua_settop(tolua_S, 1); - return 1; - } - if (argc == 2) - { - std::vector arg0; - int arg1; - - ok &= luaval_to_std_vector_int(tolua_S, 2, &arg0, "ccs.ArmatureAnimation:playWithIndexes"); - - ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "ccs.ArmatureAnimation:playWithIndexes"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_studio_ArmatureAnimation_playWithIndexes'", nullptr); - return 0; - } - cobj->playWithIndexes(arg0, arg1); - lua_settop(tolua_S, 1); - return 1; - } - if (argc == 3) - { - std::vector arg0; - int arg1; - bool arg2; - - ok &= luaval_to_std_vector_int(tolua_S, 2, &arg0, "ccs.ArmatureAnimation:playWithIndexes"); - - ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "ccs.ArmatureAnimation:playWithIndexes"); - - ok &= luaval_to_boolean(tolua_S, 4,&arg2, "ccs.ArmatureAnimation:playWithIndexes"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_studio_ArmatureAnimation_playWithIndexes'", nullptr); - return 0; - } - cobj->playWithIndexes(arg0, arg1, arg2); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ArmatureAnimation:playWithIndexes",argc, 1); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ArmatureAnimation_playWithIndexes'.",&tolua_err); -#endif - - return 0; -} int lua_cocos2dx_studio_ArmatureAnimation_play(lua_State* tolua_S) { int argc = 0; @@ -9057,7 +8823,7 @@ int lua_cocos2dx_studio_ArmatureAnimation_gotoAndPause(lua_State* tolua_S) return 0; } -int lua_cocos2dx_studio_ArmatureAnimation_resume(lua_State* tolua_S) +int lua_cocos2dx_studio_ArmatureAnimation_playWithIndexes(lua_State* tolua_S) { int argc = 0; cocostudio::ArmatureAnimation* cobj = nullptr; @@ -9077,101 +8843,7 @@ int lua_cocos2dx_studio_ArmatureAnimation_resume(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ArmatureAnimation_resume'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_studio_ArmatureAnimation_resume'", nullptr); - return 0; - } - cobj->resume(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ArmatureAnimation:resume",argc, 0); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ArmatureAnimation_resume'.",&tolua_err); -#endif - - return 0; -} -int lua_cocos2dx_studio_ArmatureAnimation_stop(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::ArmatureAnimation* 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.ArmatureAnimation",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::ArmatureAnimation*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ArmatureAnimation_stop'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_studio_ArmatureAnimation_stop'", nullptr); - return 0; - } - cobj->stop(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ArmatureAnimation:stop",argc, 0); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ArmatureAnimation_stop'.",&tolua_err); -#endif - - return 0; -} -int lua_cocos2dx_studio_ArmatureAnimation_update(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::ArmatureAnimation* 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.ArmatureAnimation",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::ArmatureAnimation*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ArmatureAnimation_update'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ArmatureAnimation_playWithIndexes'", nullptr); return 0; } #endif @@ -9179,205 +8851,61 @@ int lua_cocos2dx_studio_ArmatureAnimation_update(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - double arg0; + std::vector arg0; - ok &= luaval_to_number(tolua_S, 2,&arg0, "ccs.ArmatureAnimation:update"); + ok &= luaval_to_std_vector_int(tolua_S, 2, &arg0, "ccs.ArmatureAnimation:playWithIndexes"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_studio_ArmatureAnimation_update'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_studio_ArmatureAnimation_playWithIndexes'", nullptr); return 0; } - cobj->update(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ArmatureAnimation:update",argc, 1); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ArmatureAnimation_update'.",&tolua_err); -#endif - - return 0; -} -int lua_cocos2dx_studio_ArmatureAnimation_getAnimationData(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::ArmatureAnimation* 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.ArmatureAnimation",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::ArmatureAnimation*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ArmatureAnimation_getAnimationData'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_studio_ArmatureAnimation_getAnimationData'", nullptr); - return 0; - } - cocostudio::AnimationData* ret = cobj->getAnimationData(); - object_to_luaval(tolua_S, "ccs.AnimationData",(cocostudio::AnimationData*)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ArmatureAnimation:getAnimationData",argc, 0); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ArmatureAnimation_getAnimationData'.",&tolua_err); -#endif - - return 0; -} -int lua_cocos2dx_studio_ArmatureAnimation_playWithIndex(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::ArmatureAnimation* 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.ArmatureAnimation",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::ArmatureAnimation*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ArmatureAnimation_playWithIndex'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - int arg0; - - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ccs.ArmatureAnimation:playWithIndex"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_studio_ArmatureAnimation_playWithIndex'", nullptr); - return 0; - } - cobj->playWithIndex(arg0); + cobj->playWithIndexes(arg0); lua_settop(tolua_S, 1); return 1; } if (argc == 2) { - int arg0; + std::vector arg0; int arg1; - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ccs.ArmatureAnimation:playWithIndex"); + ok &= luaval_to_std_vector_int(tolua_S, 2, &arg0, "ccs.ArmatureAnimation:playWithIndexes"); - ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "ccs.ArmatureAnimation:playWithIndex"); + ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "ccs.ArmatureAnimation:playWithIndexes"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_studio_ArmatureAnimation_playWithIndex'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_studio_ArmatureAnimation_playWithIndexes'", nullptr); return 0; } - cobj->playWithIndex(arg0, arg1); + cobj->playWithIndexes(arg0, arg1); lua_settop(tolua_S, 1); return 1; } if (argc == 3) { - int arg0; + std::vector arg0; int arg1; - int arg2; + bool arg2; - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ccs.ArmatureAnimation:playWithIndex"); + ok &= luaval_to_std_vector_int(tolua_S, 2, &arg0, "ccs.ArmatureAnimation:playWithIndexes"); - ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "ccs.ArmatureAnimation:playWithIndex"); + ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "ccs.ArmatureAnimation:playWithIndexes"); - ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "ccs.ArmatureAnimation:playWithIndex"); + ok &= luaval_to_boolean(tolua_S, 4,&arg2, "ccs.ArmatureAnimation:playWithIndexes"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_studio_ArmatureAnimation_playWithIndex'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_studio_ArmatureAnimation_playWithIndexes'", nullptr); return 0; } - cobj->playWithIndex(arg0, arg1, arg2); + cobj->playWithIndexes(arg0, arg1, arg2); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ArmatureAnimation:playWithIndex",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ArmatureAnimation:playWithIndexes",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ArmatureAnimation_playWithIndex'.",&tolua_err); -#endif - - return 0; -} -int lua_cocos2dx_studio_ArmatureAnimation_getCurrentMovementID(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::ArmatureAnimation* 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.ArmatureAnimation",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::ArmatureAnimation*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ArmatureAnimation_getCurrentMovementID'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_studio_ArmatureAnimation_getCurrentMovementID'", nullptr); - return 0; - } - std::string ret = cobj->getCurrentMovementID(); - tolua_pushcppstring(tolua_S,ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ArmatureAnimation:getCurrentMovementID",argc, 0); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ArmatureAnimation_getCurrentMovementID'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ArmatureAnimation_playWithIndexes'.",&tolua_err); #endif return 0; @@ -9432,6 +8960,103 @@ int lua_cocos2dx_studio_ArmatureAnimation_setAnimationData(lua_State* tolua_S) return 0; } +int lua_cocos2dx_studio_ArmatureAnimation_setSpeedScale(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::ArmatureAnimation* 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.ArmatureAnimation",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::ArmatureAnimation*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ArmatureAnimation_setSpeedScale'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "ccs.ArmatureAnimation:setSpeedScale"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_studio_ArmatureAnimation_setSpeedScale'", nullptr); + return 0; + } + cobj->setSpeedScale(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ArmatureAnimation:setSpeedScale",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ArmatureAnimation_setSpeedScale'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_studio_ArmatureAnimation_getAnimationData(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::ArmatureAnimation* 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.ArmatureAnimation",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::ArmatureAnimation*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ArmatureAnimation_getAnimationData'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_studio_ArmatureAnimation_getAnimationData'", nullptr); + return 0; + } + cocostudio::AnimationData* ret = cobj->getAnimationData(); + object_to_luaval(tolua_S, "ccs.AnimationData",(cocostudio::AnimationData*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ArmatureAnimation:getAnimationData",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ArmatureAnimation_getAnimationData'.",&tolua_err); +#endif + + return 0; +} int lua_cocos2dx_studio_ArmatureAnimation_gotoAndPlay(lua_State* tolua_S) { int argc = 0; @@ -9482,6 +9107,56 @@ int lua_cocos2dx_studio_ArmatureAnimation_gotoAndPlay(lua_State* tolua_S) return 0; } +int lua_cocos2dx_studio_ArmatureAnimation_init(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::ArmatureAnimation* 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.ArmatureAnimation",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::ArmatureAnimation*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ArmatureAnimation_init'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + cocostudio::Armature* arg0; + + ok &= luaval_to_object(tolua_S, 2, "ccs.Armature",&arg0); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_studio_ArmatureAnimation_init'", nullptr); + return 0; + } + bool ret = cobj->init(arg0); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ArmatureAnimation:init",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ArmatureAnimation_init'.",&tolua_err); +#endif + + return 0; +} int lua_cocos2dx_studio_ArmatureAnimation_playWithNames(lua_State* tolua_S) { int argc = 0; @@ -9616,6 +9291,140 @@ int lua_cocos2dx_studio_ArmatureAnimation_getMovementCount(lua_State* tolua_S) return 0; } +int lua_cocos2dx_studio_ArmatureAnimation_playWithIndex(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::ArmatureAnimation* 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.ArmatureAnimation",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::ArmatureAnimation*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ArmatureAnimation_playWithIndex'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + int arg0; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ccs.ArmatureAnimation:playWithIndex"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_studio_ArmatureAnimation_playWithIndex'", nullptr); + return 0; + } + cobj->playWithIndex(arg0); + lua_settop(tolua_S, 1); + return 1; + } + if (argc == 2) + { + int arg0; + int arg1; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ccs.ArmatureAnimation:playWithIndex"); + + ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "ccs.ArmatureAnimation:playWithIndex"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_studio_ArmatureAnimation_playWithIndex'", nullptr); + return 0; + } + cobj->playWithIndex(arg0, arg1); + lua_settop(tolua_S, 1); + return 1; + } + if (argc == 3) + { + int arg0; + int arg1; + int arg2; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ccs.ArmatureAnimation:playWithIndex"); + + ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "ccs.ArmatureAnimation:playWithIndex"); + + ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "ccs.ArmatureAnimation:playWithIndex"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_studio_ArmatureAnimation_playWithIndex'", nullptr); + return 0; + } + cobj->playWithIndex(arg0, arg1, arg2); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ArmatureAnimation:playWithIndex",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ArmatureAnimation_playWithIndex'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_studio_ArmatureAnimation_getCurrentMovementID(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::ArmatureAnimation* 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.ArmatureAnimation",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::ArmatureAnimation*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ArmatureAnimation_getCurrentMovementID'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_studio_ArmatureAnimation_getCurrentMovementID'", nullptr); + return 0; + } + std::string ret = cobj->getCurrentMovementID(); + tolua_pushcppstring(tolua_S,ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ArmatureAnimation:getCurrentMovementID",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ArmatureAnimation_getCurrentMovementID'.",&tolua_err); +#endif + + return 0; +} int lua_cocos2dx_studio_ArmatureAnimation_create(lua_State* tolua_S) { int argc = 0; @@ -9703,22 +9512,18 @@ int lua_register_cocos2dx_studio_ArmatureAnimation(lua_State* tolua_S) tolua_beginmodule(tolua_S,"ArmatureAnimation"); tolua_function(tolua_S,"new",lua_cocos2dx_studio_ArmatureAnimation_constructor); tolua_function(tolua_S,"getSpeedScale",lua_cocos2dx_studio_ArmatureAnimation_getSpeedScale); - tolua_function(tolua_S,"pause",lua_cocos2dx_studio_ArmatureAnimation_pause); - tolua_function(tolua_S,"setSpeedScale",lua_cocos2dx_studio_ArmatureAnimation_setSpeedScale); - tolua_function(tolua_S,"init",lua_cocos2dx_studio_ArmatureAnimation_init); - tolua_function(tolua_S,"playWithIndexes",lua_cocos2dx_studio_ArmatureAnimation_playWithIndexes); tolua_function(tolua_S,"play",lua_cocos2dx_studio_ArmatureAnimation_play); tolua_function(tolua_S,"gotoAndPause",lua_cocos2dx_studio_ArmatureAnimation_gotoAndPause); - tolua_function(tolua_S,"resume",lua_cocos2dx_studio_ArmatureAnimation_resume); - tolua_function(tolua_S,"stop",lua_cocos2dx_studio_ArmatureAnimation_stop); - tolua_function(tolua_S,"update",lua_cocos2dx_studio_ArmatureAnimation_update); - tolua_function(tolua_S,"getAnimationData",lua_cocos2dx_studio_ArmatureAnimation_getAnimationData); - tolua_function(tolua_S,"playWithIndex",lua_cocos2dx_studio_ArmatureAnimation_playWithIndex); - tolua_function(tolua_S,"getCurrentMovementID",lua_cocos2dx_studio_ArmatureAnimation_getCurrentMovementID); + tolua_function(tolua_S,"playWithIndexes",lua_cocos2dx_studio_ArmatureAnimation_playWithIndexes); tolua_function(tolua_S,"setAnimationData",lua_cocos2dx_studio_ArmatureAnimation_setAnimationData); + tolua_function(tolua_S,"setSpeedScale",lua_cocos2dx_studio_ArmatureAnimation_setSpeedScale); + tolua_function(tolua_S,"getAnimationData",lua_cocos2dx_studio_ArmatureAnimation_getAnimationData); tolua_function(tolua_S,"gotoAndPlay",lua_cocos2dx_studio_ArmatureAnimation_gotoAndPlay); + tolua_function(tolua_S,"init",lua_cocos2dx_studio_ArmatureAnimation_init); tolua_function(tolua_S,"playWithNames",lua_cocos2dx_studio_ArmatureAnimation_playWithNames); tolua_function(tolua_S,"getMovementCount",lua_cocos2dx_studio_ArmatureAnimation_getMovementCount); + tolua_function(tolua_S,"playWithIndex",lua_cocos2dx_studio_ArmatureAnimation_playWithIndex); + tolua_function(tolua_S,"getCurrentMovementID",lua_cocos2dx_studio_ArmatureAnimation_getCurrentMovementID); tolua_function(tolua_S,"create", lua_cocos2dx_studio_ArmatureAnimation_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocostudio::ArmatureAnimation).name(); @@ -16900,56 +16705,6 @@ int lua_cocos2dx_studio_TextureFrame_getTextureName(lua_State* tolua_S) return 0; } -int lua_cocos2dx_studio_TextureFrame_setNode(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::timeline::TextureFrame* 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.TextureFrame",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::timeline::TextureFrame*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_TextureFrame_setNode'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - cocos2d::Node* arg0; - - ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_studio_TextureFrame_setNode'", nullptr); - return 0; - } - cobj->setNode(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.TextureFrame:setNode",argc, 1); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_TextureFrame_setNode'.",&tolua_err); -#endif - - return 0; -} int lua_cocos2dx_studio_TextureFrame_setTextureName(lua_State* tolua_S) { int argc = 0; @@ -17085,7 +16840,6 @@ int lua_register_cocos2dx_studio_TextureFrame(lua_State* tolua_S) tolua_beginmodule(tolua_S,"TextureFrame"); tolua_function(tolua_S,"new",lua_cocos2dx_studio_TextureFrame_constructor); tolua_function(tolua_S,"getTextureName",lua_cocos2dx_studio_TextureFrame_getTextureName); - tolua_function(tolua_S,"setNode",lua_cocos2dx_studio_TextureFrame_setNode); tolua_function(tolua_S,"setTextureName",lua_cocos2dx_studio_TextureFrame_setTextureName); tolua_function(tolua_S,"create", lua_cocos2dx_studio_TextureFrame_create); tolua_endmodule(tolua_S); @@ -19757,56 +19511,6 @@ int lua_cocos2dx_studio_EventFrame_init(lua_State* tolua_S) return 0; } -int lua_cocos2dx_studio_EventFrame_setNode(lua_State* tolua_S) -{ - int argc = 0; - cocostudio::timeline::EventFrame* 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.EventFrame",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocostudio::timeline::EventFrame*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_EventFrame_setNode'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - cocos2d::Node* arg0; - - ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_studio_EventFrame_setNode'", nullptr); - return 0; - } - cobj->setNode(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.EventFrame:setNode",argc, 1); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_EventFrame_setNode'.",&tolua_err); -#endif - - return 0; -} int lua_cocos2dx_studio_EventFrame_getEvent(lua_State* tolua_S) { int argc = 0; @@ -19940,7 +19644,6 @@ int lua_register_cocos2dx_studio_EventFrame(lua_State* tolua_S) tolua_function(tolua_S,"new",lua_cocos2dx_studio_EventFrame_constructor); tolua_function(tolua_S,"setEvent",lua_cocos2dx_studio_EventFrame_setEvent); tolua_function(tolua_S,"init",lua_cocos2dx_studio_EventFrame_init); - tolua_function(tolua_S,"setNode",lua_cocos2dx_studio_EventFrame_setNode); tolua_function(tolua_S,"getEvent",lua_cocos2dx_studio_EventFrame_getEvent); tolua_function(tolua_S,"create", lua_cocos2dx_studio_EventFrame_create); tolua_endmodule(tolua_S); 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 60e3ce9e08..501c372098 100644 --- a/cocos/scripting/lua-bindings/auto/lua_cocos2dx_studio_auto.hpp +++ b/cocos/scripting/lua-bindings/auto/lua_cocos2dx_studio_auto.hpp @@ -504,12 +504,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 640f99edc4..39b84235f8 100644 --- a/cocos/scripting/lua-bindings/auto/lua_cocos2dx_ui_auto.cpp +++ b/cocos/scripting/lua-bindings/auto/lua_cocos2dx_ui_auto.cpp @@ -16913,56 +16913,6 @@ int lua_cocos2dx_ui_TextField_setTouchAreaEnabled(lua_State* tolua_S) return 0; } -int lua_cocos2dx_ui_TextField_hitTest(lua_State* tolua_S) -{ - int argc = 0; - cocos2d::ui::TextField* 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.TextField",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocos2d::ui::TextField*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ui_TextField_hitTest'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - cocos2d::Vec2 arg0; - - ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ccui.TextField:hitTest"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_TextField_hitTest'", nullptr); - return 0; - } - bool ret = cobj->hitTest(arg0); - tolua_pushboolean(tolua_S,(bool)ret); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccui.TextField:hitTest",argc, 1); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ui_TextField_hitTest'.",&tolua_err); -#endif - - return 0; -} int lua_cocos2dx_ui_TextField_setMaxLength(lua_State* tolua_S) { int argc = 0; @@ -17280,7 +17230,6 @@ int lua_register_cocos2dx_ui_TextField(lua_State* tolua_S) tolua_function(tolua_S,"isMaxLengthEnabled",lua_cocos2dx_ui_TextField_isMaxLengthEnabled); tolua_function(tolua_S,"setDetachWithIME",lua_cocos2dx_ui_TextField_setDetachWithIME); tolua_function(tolua_S,"setTouchAreaEnabled",lua_cocos2dx_ui_TextField_setTouchAreaEnabled); - tolua_function(tolua_S,"hitTest",lua_cocos2dx_ui_TextField_hitTest); tolua_function(tolua_S,"setMaxLength",lua_cocos2dx_ui_TextField_setMaxLength); tolua_function(tolua_S,"setTouchSize",lua_cocos2dx_ui_TextField_setTouchSize); tolua_function(tolua_S,"getTouchSize",lua_cocos2dx_ui_TextField_getTouchSize); @@ -19469,56 +19418,6 @@ int lua_cocos2dx_ui_RichText_insertElement(lua_State* tolua_S) return 0; } -int lua_cocos2dx_ui_RichText_setAnchorPoint(lua_State* tolua_S) -{ - int argc = 0; - cocos2d::ui::RichText* 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.RichText",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocos2d::ui::RichText*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ui_RichText_setAnchorPoint'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - cocos2d::Vec2 arg0; - - ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ccui.RichText:setAnchorPoint"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_RichText_setAnchorPoint'", nullptr); - return 0; - } - cobj->setAnchorPoint(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccui.RichText:setAnchorPoint",argc, 1); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ui_RichText_setAnchorPoint'.",&tolua_err); -#endif - - return 0; -} int lua_cocos2dx_ui_RichText_pushBackElement(lua_State* tolua_S) { int argc = 0; @@ -19569,56 +19468,6 @@ int lua_cocos2dx_ui_RichText_pushBackElement(lua_State* tolua_S) return 0; } -int lua_cocos2dx_ui_RichText_ignoreContentAdaptWithSize(lua_State* tolua_S) -{ - int argc = 0; - cocos2d::ui::RichText* 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.RichText",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocos2d::ui::RichText*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ui_RichText_ignoreContentAdaptWithSize'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - bool arg0; - - ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ccui.RichText:ignoreContentAdaptWithSize"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_RichText_ignoreContentAdaptWithSize'", nullptr); - return 0; - } - cobj->ignoreContentAdaptWithSize(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccui.RichText:ignoreContentAdaptWithSize",argc, 1); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ui_RichText_ignoreContentAdaptWithSize'.",&tolua_err); -#endif - - return 0; -} int lua_cocos2dx_ui_RichText_setVerticalSpace(lua_State* tolua_S) { int argc = 0; @@ -19856,9 +19705,7 @@ int lua_register_cocos2dx_ui_RichText(lua_State* tolua_S) tolua_beginmodule(tolua_S,"RichText"); tolua_function(tolua_S,"new",lua_cocos2dx_ui_RichText_constructor); tolua_function(tolua_S,"insertElement",lua_cocos2dx_ui_RichText_insertElement); - tolua_function(tolua_S,"setAnchorPoint",lua_cocos2dx_ui_RichText_setAnchorPoint); tolua_function(tolua_S,"pushBackElement",lua_cocos2dx_ui_RichText_pushBackElement); - tolua_function(tolua_S,"ignoreContentAdaptWithSize",lua_cocos2dx_ui_RichText_ignoreContentAdaptWithSize); tolua_function(tolua_S,"setVerticalSpace",lua_cocos2dx_ui_RichText_setVerticalSpace); tolua_function(tolua_S,"formatText",lua_cocos2dx_ui_RichText_formatText); tolua_function(tolua_S,"removeElement",lua_cocos2dx_ui_RichText_removeElement); 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 f47c678b16..9745da9b52 100644 --- a/cocos/scripting/lua-bindings/auto/lua_cocos2dx_ui_auto.hpp +++ b/cocos/scripting/lua-bindings/auto/lua_cocos2dx_ui_auto.hpp @@ -544,9 +544,6 @@ int register_all_cocos2dx_ui(lua_State* tolua_S); - - -