mirror of https://github.com/axmolengine/axmol.git
[AUTO]: updating luabinding automatically
This commit is contained in:
parent
33fa2fab84
commit
70a2195ccf
|
@ -174,6 +174,11 @@
|
|||
-- @param self
|
||||
-- @param #function callback
|
||||
|
||||
--------------------------------
|
||||
-- remove this node from physics world. it will remove all the physics bodies in it's children too.
|
||||
-- @function [parent=#Node] removeFromPhysicsWorld
|
||||
-- @param self
|
||||
|
||||
--------------------------------
|
||||
-- removes all components
|
||||
-- @function [parent=#Node] removeAllComponents
|
||||
|
@ -335,6 +340,12 @@
|
|||
-- @param self
|
||||
-- @return string#string ret (return value: string)
|
||||
|
||||
--------------------------------
|
||||
-- Resumes all scheduled selectors, actions and event listeners.<br>
|
||||
-- This method is called internally by onEnter
|
||||
-- @function [parent=#Node] resume
|
||||
-- @param self
|
||||
|
||||
--------------------------------
|
||||
-- returns the rotation (X,Y,Z) in degrees.
|
||||
-- @function [parent=#Node] getRotation3D
|
||||
|
@ -362,12 +373,6 @@
|
|||
-- @param #vec2_table worldPoint
|
||||
-- @return vec2_table#vec2_table ret (return value: vec2_table)
|
||||
|
||||
--------------------------------
|
||||
-- Resumes all scheduled selectors, actions and event listeners.<br>
|
||||
-- This method is called internally by onEnter
|
||||
-- @function [parent=#Node] resume
|
||||
-- @param self
|
||||
|
||||
--------------------------------
|
||||
-- get the PhysicsBody the sprite have
|
||||
-- @function [parent=#Node] getPhysicsBody
|
||||
|
@ -746,6 +751,17 @@
|
|||
-- @param self
|
||||
-- @return mat4_table#mat4_table ret (return value: mat4_table)
|
||||
|
||||
--------------------------------
|
||||
-- Checks whether a lambda function is scheduled.<br>
|
||||
-- param key key of the callback<br>
|
||||
-- return Whether the lambda function selector is scheduled.<br>
|
||||
-- js NA<br>
|
||||
-- lua NA
|
||||
-- @function [parent=#Node] isScheduled
|
||||
-- @param self
|
||||
-- @param #string key
|
||||
-- @return bool#bool ret (return value: bool)
|
||||
|
||||
--------------------------------
|
||||
-- Defines the oder in which the nodes are renderer.<br>
|
||||
-- Nodes that have a Global Z Order lower, are renderer first.<br>
|
||||
|
|
|
@ -10,15 +10,18 @@
|
|||
-- @param self
|
||||
|
||||
--------------------------------
|
||||
--
|
||||
-- @function [parent=#Scale9Sprite] updateWithSprite
|
||||
-- @overload self, cc.Sprite, rect_table, bool, vec2_table, size_table, rect_table
|
||||
-- @overload self, cc.Sprite, rect_table, bool, rect_table
|
||||
-- @function [parent=#Scale9Sprite] updateWithSprite
|
||||
-- @param self
|
||||
-- @param #cc.Sprite sprite
|
||||
-- @param #rect_table rect
|
||||
-- @param #bool rotated
|
||||
-- @param #vec2_table offset
|
||||
-- @param #size_table originalSize
|
||||
-- @param #rect_table capInsets
|
||||
-- @return bool#bool ret (return value: bool)
|
||||
|
||||
-- @return bool#bool ret (retunr value: bool)
|
||||
|
||||
--------------------------------
|
||||
-- Returns the flag which indicates whether the widget is flipped horizontally or not.<br>
|
||||
-- It only flips the texture of the widget, and not the texture of the widget's children.<br>
|
||||
|
@ -86,11 +89,14 @@
|
|||
-- @overload self, cc.Sprite, rect_table, bool, rect_table
|
||||
-- @overload self
|
||||
-- @overload self, cc.Sprite, rect_table, rect_table
|
||||
-- @overload self, cc.Sprite, rect_table, bool, vec2_table, size_table, rect_table
|
||||
-- @function [parent=#Scale9Sprite] init
|
||||
-- @param self
|
||||
-- @param #cc.Sprite sprite
|
||||
-- @param #rect_table rect
|
||||
-- @param #bool rotated
|
||||
-- @param #vec2_table offset
|
||||
-- @param #size_table originalSize
|
||||
-- @param #rect_table capInsets
|
||||
-- @return bool#bool ret (retunr value: bool)
|
||||
|
||||
|
@ -111,6 +117,7 @@
|
|||
-- @function [parent=#Scale9Sprite] setSpriteFrame
|
||||
-- @param self
|
||||
-- @param #cc.SpriteFrame spriteFrame
|
||||
-- @param #rect_table capInsets
|
||||
|
||||
--------------------------------
|
||||
--
|
||||
|
|
|
@ -3640,6 +3640,49 @@ int lua_cocos2dx_Node_setonEnterTransitionDidFinishCallback(lua_State* tolua_S)
|
|||
|
||||
return 0;
|
||||
}
|
||||
int lua_cocos2dx_Node_removeFromPhysicsWorld(lua_State* tolua_S)
|
||||
{
|
||||
int argc = 0;
|
||||
cocos2d::Node* cobj = nullptr;
|
||||
bool ok = true;
|
||||
|
||||
#if COCOS2D_DEBUG >= 1
|
||||
tolua_Error tolua_err;
|
||||
#endif
|
||||
|
||||
|
||||
#if COCOS2D_DEBUG >= 1
|
||||
if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror;
|
||||
#endif
|
||||
|
||||
cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0);
|
||||
|
||||
#if COCOS2D_DEBUG >= 1
|
||||
if (!cobj)
|
||||
{
|
||||
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_removeFromPhysicsWorld'", nullptr);
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
argc = lua_gettop(tolua_S)-1;
|
||||
if (argc == 0)
|
||||
{
|
||||
if(!ok)
|
||||
return 0;
|
||||
cobj->removeFromPhysicsWorld();
|
||||
return 0;
|
||||
}
|
||||
CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:removeFromPhysicsWorld",argc, 0);
|
||||
return 0;
|
||||
|
||||
#if COCOS2D_DEBUG >= 1
|
||||
tolua_lerror:
|
||||
tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_removeFromPhysicsWorld'.",&tolua_err);
|
||||
#endif
|
||||
|
||||
return 0;
|
||||
}
|
||||
int lua_cocos2dx_Node_removeAllComponents(lua_State* tolua_S)
|
||||
{
|
||||
int argc = 0;
|
||||
|
@ -4668,6 +4711,49 @@ int lua_cocos2dx_Node_getName(lua_State* tolua_S)
|
|||
|
||||
return 0;
|
||||
}
|
||||
int lua_cocos2dx_Node_resume(lua_State* tolua_S)
|
||||
{
|
||||
int argc = 0;
|
||||
cocos2d::Node* cobj = nullptr;
|
||||
bool ok = true;
|
||||
|
||||
#if COCOS2D_DEBUG >= 1
|
||||
tolua_Error tolua_err;
|
||||
#endif
|
||||
|
||||
|
||||
#if COCOS2D_DEBUG >= 1
|
||||
if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror;
|
||||
#endif
|
||||
|
||||
cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0);
|
||||
|
||||
#if COCOS2D_DEBUG >= 1
|
||||
if (!cobj)
|
||||
{
|
||||
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_resume'", nullptr);
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
argc = lua_gettop(tolua_S)-1;
|
||||
if (argc == 0)
|
||||
{
|
||||
if(!ok)
|
||||
return 0;
|
||||
cobj->resume();
|
||||
return 0;
|
||||
}
|
||||
CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:resume",argc, 0);
|
||||
return 0;
|
||||
|
||||
#if COCOS2D_DEBUG >= 1
|
||||
tolua_lerror:
|
||||
tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_resume'.",&tolua_err);
|
||||
#endif
|
||||
|
||||
return 0;
|
||||
}
|
||||
int lua_cocos2dx_Node_getRotation3D(lua_State* tolua_S)
|
||||
{
|
||||
int argc = 0;
|
||||
|
@ -4850,49 +4936,6 @@ int lua_cocos2dx_Node_convertToNodeSpace(lua_State* tolua_S)
|
|||
|
||||
return 0;
|
||||
}
|
||||
int lua_cocos2dx_Node_resume(lua_State* tolua_S)
|
||||
{
|
||||
int argc = 0;
|
||||
cocos2d::Node* cobj = nullptr;
|
||||
bool ok = true;
|
||||
|
||||
#if COCOS2D_DEBUG >= 1
|
||||
tolua_Error tolua_err;
|
||||
#endif
|
||||
|
||||
|
||||
#if COCOS2D_DEBUG >= 1
|
||||
if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror;
|
||||
#endif
|
||||
|
||||
cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0);
|
||||
|
||||
#if COCOS2D_DEBUG >= 1
|
||||
if (!cobj)
|
||||
{
|
||||
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_resume'", nullptr);
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
argc = lua_gettop(tolua_S)-1;
|
||||
if (argc == 0)
|
||||
{
|
||||
if(!ok)
|
||||
return 0;
|
||||
cobj->resume();
|
||||
return 0;
|
||||
}
|
||||
CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:resume",argc, 0);
|
||||
return 0;
|
||||
|
||||
#if COCOS2D_DEBUG >= 1
|
||||
tolua_lerror:
|
||||
tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_resume'.",&tolua_err);
|
||||
#endif
|
||||
|
||||
return 0;
|
||||
}
|
||||
int lua_cocos2dx_Node_getPhysicsBody(lua_State* tolua_S)
|
||||
{
|
||||
int argc = 0;
|
||||
|
@ -7154,6 +7197,53 @@ int lua_cocos2dx_Node_getParentToNodeTransform(lua_State* tolua_S)
|
|||
|
||||
return 0;
|
||||
}
|
||||
int lua_cocos2dx_Node_isScheduled(lua_State* tolua_S)
|
||||
{
|
||||
int argc = 0;
|
||||
cocos2d::Node* cobj = nullptr;
|
||||
bool ok = true;
|
||||
|
||||
#if COCOS2D_DEBUG >= 1
|
||||
tolua_Error tolua_err;
|
||||
#endif
|
||||
|
||||
|
||||
#if COCOS2D_DEBUG >= 1
|
||||
if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror;
|
||||
#endif
|
||||
|
||||
cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0);
|
||||
|
||||
#if COCOS2D_DEBUG >= 1
|
||||
if (!cobj)
|
||||
{
|
||||
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_isScheduled'", nullptr);
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
argc = lua_gettop(tolua_S)-1;
|
||||
if (argc == 1)
|
||||
{
|
||||
std::string arg0;
|
||||
|
||||
ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.Node:isScheduled");
|
||||
if(!ok)
|
||||
return 0;
|
||||
bool ret = cobj->isScheduled(arg0);
|
||||
tolua_pushboolean(tolua_S,(bool)ret);
|
||||
return 1;
|
||||
}
|
||||
CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:isScheduled",argc, 1);
|
||||
return 0;
|
||||
|
||||
#if COCOS2D_DEBUG >= 1
|
||||
tolua_lerror:
|
||||
tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_isScheduled'.",&tolua_err);
|
||||
#endif
|
||||
|
||||
return 0;
|
||||
}
|
||||
int lua_cocos2dx_Node_setGlobalZOrder(lua_State* tolua_S)
|
||||
{
|
||||
int argc = 0;
|
||||
|
@ -8822,6 +8912,7 @@ int lua_register_cocos2dx_Node(lua_State* tolua_S)
|
|||
tolua_function(tolua_S,"setScaleX",lua_cocos2dx_Node_setScaleX);
|
||||
tolua_function(tolua_S,"setRotationSkewX",lua_cocos2dx_Node_setRotationSkewX);
|
||||
tolua_function(tolua_S,"setonEnterTransitionDidFinishCallback",lua_cocos2dx_Node_setonEnterTransitionDidFinishCallback);
|
||||
tolua_function(tolua_S,"removeFromPhysicsWorld",lua_cocos2dx_Node_removeFromPhysicsWorld);
|
||||
tolua_function(tolua_S,"removeAllComponents",lua_cocos2dx_Node_removeAllComponents);
|
||||
tolua_function(tolua_S,"getOpacity",lua_cocos2dx_Node_getOpacity);
|
||||
tolua_function(tolua_S,"setCameraMask",lua_cocos2dx_Node_setCameraMask);
|
||||
|
@ -8844,11 +8935,11 @@ int lua_register_cocos2dx_Node(lua_State* tolua_S)
|
|||
tolua_function(tolua_S,"isCascadeOpacityEnabled",lua_cocos2dx_Node_isCascadeOpacityEnabled);
|
||||
tolua_function(tolua_S,"setParent",lua_cocos2dx_Node_setParent);
|
||||
tolua_function(tolua_S,"getName",lua_cocos2dx_Node_getName);
|
||||
tolua_function(tolua_S,"resume",lua_cocos2dx_Node_resume);
|
||||
tolua_function(tolua_S,"getRotation3D",lua_cocos2dx_Node_getRotation3D);
|
||||
tolua_function(tolua_S,"getNodeToParentTransform",lua_cocos2dx_Node_getNodeToParentTransform);
|
||||
tolua_function(tolua_S,"convertTouchToNodeSpaceAR",lua_cocos2dx_Node_convertTouchToNodeSpaceAR);
|
||||
tolua_function(tolua_S,"convertToNodeSpace",lua_cocos2dx_Node_convertToNodeSpace);
|
||||
tolua_function(tolua_S,"resume",lua_cocos2dx_Node_resume);
|
||||
tolua_function(tolua_S,"getPhysicsBody",lua_cocos2dx_Node_getPhysicsBody);
|
||||
tolua_function(tolua_S,"setPosition",lua_cocos2dx_Node_setPosition);
|
||||
tolua_function(tolua_S,"stopActionByTag",lua_cocos2dx_Node_stopActionByTag);
|
||||
|
@ -8898,6 +8989,7 @@ int lua_register_cocos2dx_Node(lua_State* tolua_S)
|
|||
tolua_function(tolua_S,"updateDisplayedColor",lua_cocos2dx_Node_updateDisplayedColor);
|
||||
tolua_function(tolua_S,"setVisible",lua_cocos2dx_Node_setVisible);
|
||||
tolua_function(tolua_S,"getParentToNodeTransform",lua_cocos2dx_Node_getParentToNodeTransform);
|
||||
tolua_function(tolua_S,"isScheduled",lua_cocos2dx_Node_isScheduled);
|
||||
tolua_function(tolua_S,"setGlobalZOrder",lua_cocos2dx_Node_setGlobalZOrder);
|
||||
tolua_function(tolua_S,"setScale",lua_cocos2dx_Node_setScale);
|
||||
tolua_function(tolua_S,"getChildByTag",lua_cocos2dx_Node_getChildByTag);
|
||||
|
|
|
@ -1577,6 +1577,8 @@ int register_all_cocos2dx(lua_State* tolua_S);
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -18022,48 +18022,79 @@ int lua_cocos2dx_ui_Scale9Sprite_updateWithSprite(lua_State* tolua_S)
|
|||
int argc = 0;
|
||||
cocos2d::ui::Scale9Sprite* 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.Scale9Sprite",0,&tolua_err)) goto tolua_lerror;
|
||||
#endif
|
||||
|
||||
cobj = (cocos2d::ui::Scale9Sprite*)tolua_tousertype(tolua_S,1,0);
|
||||
|
||||
#if COCOS2D_DEBUG >= 1
|
||||
if (!cobj)
|
||||
if (!cobj)
|
||||
{
|
||||
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ui_Scale9Sprite_updateWithSprite'", nullptr);
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
argc = lua_gettop(tolua_S)-1;
|
||||
if (argc == 4)
|
||||
{
|
||||
cocos2d::Sprite* arg0;
|
||||
cocos2d::Rect arg1;
|
||||
bool arg2;
|
||||
cocos2d::Rect arg3;
|
||||
do{
|
||||
if (argc == 6) {
|
||||
cocos2d::Sprite* arg0;
|
||||
ok &= luaval_to_object<cocos2d::Sprite>(tolua_S, 2, "cc.Sprite",&arg0);
|
||||
|
||||
ok &= luaval_to_object<cocos2d::Sprite>(tolua_S, 2, "cc.Sprite",&arg0);
|
||||
if (!ok) { break; }
|
||||
cocos2d::Rect arg1;
|
||||
ok &= luaval_to_rect(tolua_S, 3, &arg1, "ccui.Scale9Sprite:updateWithSprite");
|
||||
|
||||
ok &= luaval_to_rect(tolua_S, 3, &arg1, "ccui.Scale9Sprite:updateWithSprite");
|
||||
if (!ok) { break; }
|
||||
bool arg2;
|
||||
ok &= luaval_to_boolean(tolua_S, 4,&arg2, "ccui.Scale9Sprite:updateWithSprite");
|
||||
|
||||
ok &= luaval_to_boolean(tolua_S, 4,&arg2, "ccui.Scale9Sprite:updateWithSprite");
|
||||
if (!ok) { break; }
|
||||
cocos2d::Vec2 arg3;
|
||||
ok &= luaval_to_vec2(tolua_S, 5, &arg3, "ccui.Scale9Sprite:updateWithSprite");
|
||||
|
||||
ok &= luaval_to_rect(tolua_S, 5, &arg3, "ccui.Scale9Sprite:updateWithSprite");
|
||||
if(!ok)
|
||||
return 0;
|
||||
bool ret = cobj->updateWithSprite(arg0, arg1, arg2, arg3);
|
||||
tolua_pushboolean(tolua_S,(bool)ret);
|
||||
return 1;
|
||||
}
|
||||
CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "ccui.Scale9Sprite:updateWithSprite",argc, 4);
|
||||
if (!ok) { break; }
|
||||
cocos2d::Size arg4;
|
||||
ok &= luaval_to_size(tolua_S, 6, &arg4, "ccui.Scale9Sprite:updateWithSprite");
|
||||
|
||||
if (!ok) { break; }
|
||||
cocos2d::Rect arg5;
|
||||
ok &= luaval_to_rect(tolua_S, 7, &arg5, "ccui.Scale9Sprite:updateWithSprite");
|
||||
|
||||
if (!ok) { break; }
|
||||
bool ret = cobj->updateWithSprite(arg0, arg1, arg2, arg3, arg4, arg5);
|
||||
tolua_pushboolean(tolua_S,(bool)ret);
|
||||
return 1;
|
||||
}
|
||||
}while(0);
|
||||
ok = true;
|
||||
do{
|
||||
if (argc == 4) {
|
||||
cocos2d::Sprite* arg0;
|
||||
ok &= luaval_to_object<cocos2d::Sprite>(tolua_S, 2, "cc.Sprite",&arg0);
|
||||
|
||||
if (!ok) { break; }
|
||||
cocos2d::Rect arg1;
|
||||
ok &= luaval_to_rect(tolua_S, 3, &arg1, "ccui.Scale9Sprite:updateWithSprite");
|
||||
|
||||
if (!ok) { break; }
|
||||
bool arg2;
|
||||
ok &= luaval_to_boolean(tolua_S, 4,&arg2, "ccui.Scale9Sprite:updateWithSprite");
|
||||
|
||||
if (!ok) { break; }
|
||||
cocos2d::Rect arg3;
|
||||
ok &= luaval_to_rect(tolua_S, 5, &arg3, "ccui.Scale9Sprite:updateWithSprite");
|
||||
|
||||
if (!ok) { break; }
|
||||
bool ret = cobj->updateWithSprite(arg0, arg1, arg2, arg3);
|
||||
tolua_pushboolean(tolua_S,(bool)ret);
|
||||
return 1;
|
||||
}
|
||||
}while(0);
|
||||
ok = true;
|
||||
CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "ccui.Scale9Sprite:updateWithSprite",argc, 4);
|
||||
return 0;
|
||||
|
||||
#if COCOS2D_DEBUG >= 1
|
||||
|
@ -18566,7 +18597,39 @@ int lua_cocos2dx_ui_Scale9Sprite_init(lua_State* tolua_S)
|
|||
}
|
||||
}while(0);
|
||||
ok = true;
|
||||
CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "ccui.Scale9Sprite:init",argc, 3);
|
||||
do{
|
||||
if (argc == 6) {
|
||||
cocos2d::Sprite* arg0;
|
||||
ok &= luaval_to_object<cocos2d::Sprite>(tolua_S, 2, "cc.Sprite",&arg0);
|
||||
|
||||
if (!ok) { break; }
|
||||
cocos2d::Rect arg1;
|
||||
ok &= luaval_to_rect(tolua_S, 3, &arg1, "ccui.Scale9Sprite:init");
|
||||
|
||||
if (!ok) { break; }
|
||||
bool arg2;
|
||||
ok &= luaval_to_boolean(tolua_S, 4,&arg2, "ccui.Scale9Sprite:init");
|
||||
|
||||
if (!ok) { break; }
|
||||
cocos2d::Vec2 arg3;
|
||||
ok &= luaval_to_vec2(tolua_S, 5, &arg3, "ccui.Scale9Sprite:init");
|
||||
|
||||
if (!ok) { break; }
|
||||
cocos2d::Size arg4;
|
||||
ok &= luaval_to_size(tolua_S, 6, &arg4, "ccui.Scale9Sprite:init");
|
||||
|
||||
if (!ok) { break; }
|
||||
cocos2d::Rect arg5;
|
||||
ok &= luaval_to_rect(tolua_S, 7, &arg5, "ccui.Scale9Sprite:init");
|
||||
|
||||
if (!ok) { break; }
|
||||
bool ret = cobj->init(arg0, arg1, arg2, arg3, arg4, arg5);
|
||||
tolua_pushboolean(tolua_S,(bool)ret);
|
||||
return 1;
|
||||
}
|
||||
}while(0);
|
||||
ok = true;
|
||||
CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "ccui.Scale9Sprite:init",argc, 6);
|
||||
return 0;
|
||||
|
||||
#if COCOS2D_DEBUG >= 1
|
||||
|
@ -18702,6 +18765,19 @@ int lua_cocos2dx_ui_Scale9Sprite_setSpriteFrame(lua_State* tolua_S)
|
|||
cobj->setSpriteFrame(arg0);
|
||||
return 0;
|
||||
}
|
||||
if (argc == 2)
|
||||
{
|
||||
cocos2d::SpriteFrame* arg0;
|
||||
cocos2d::Rect arg1;
|
||||
|
||||
ok &= luaval_to_object<cocos2d::SpriteFrame>(tolua_S, 2, "cc.SpriteFrame",&arg0);
|
||||
|
||||
ok &= luaval_to_rect(tolua_S, 3, &arg1, "ccui.Scale9Sprite:setSpriteFrame");
|
||||
if(!ok)
|
||||
return 0;
|
||||
cobj->setSpriteFrame(arg0, arg1);
|
||||
return 0;
|
||||
}
|
||||
CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "ccui.Scale9Sprite:setSpriteFrame",argc, 1);
|
||||
return 0;
|
||||
|
||||
|
|
Loading…
Reference in New Issue