[AUTO]: updating luabinding automatically

This commit is contained in:
CocosRobot 2014-05-13 03:39:46 +00:00
parent ccb55448da
commit bf6ed6eb8b
8 changed files with 1387 additions and 1438 deletions

View File

@ -145,7 +145,7 @@
--------------------------------
-- @function [parent=#Layout] getLayoutType
-- @param self
-- @return Layout::LayoutType#Layout::LayoutType ret (return value: ccui.Layout::LayoutType)
-- @return Layout::Type#Layout::Type ret (return value: ccui.Layout::Type)
--------------------------------
-- @function [parent=#Layout] setPassFocusToChild
@ -165,7 +165,7 @@
--------------------------------
-- @function [parent=#Layout] setLayoutType
-- @param self
-- @param #ccui.Layout::LayoutType layouttype
-- @param #ccui.Layout::Type type
--------------------------------
-- @function [parent=#Layout] create

View File

@ -74,7 +74,7 @@
--------------------------------
-- @function [parent=#PageView] getLayoutType
-- @param self
-- @return Layout::LayoutType#Layout::LayoutType ret (return value: ccui.Layout::LayoutType)
-- @return Layout::Type#Layout::Type ret (return value: ccui.Layout::Type)
--------------------------------
-- @function [parent=#PageView] getDescription
@ -89,7 +89,7 @@
--------------------------------
-- @function [parent=#PageView] setLayoutType
-- @param self
-- @param #ccui.Layout::LayoutType layouttype
-- @param #ccui.Layout::Type type
--------------------------------
-- @function [parent=#PageView] PageView

View File

@ -211,7 +211,7 @@
--------------------------------
-- @function [parent=#ScrollView] getLayoutType
-- @param self
-- @return Layout::LayoutType#Layout::LayoutType ret (return value: ccui.Layout::LayoutType)
-- @return Layout::Type#Layout::Type ret (return value: ccui.Layout::Type)
--------------------------------
-- @function [parent=#ScrollView] removeAllChildrenWithCleanup
@ -251,7 +251,7 @@
--------------------------------
-- @function [parent=#ScrollView] setLayoutType
-- @param self
-- @param #ccui.Layout::LayoutType layouttype
-- @param #ccui.Layout::Type type
--------------------------------
-- @function [parent=#ScrollView] ScrollView

View File

@ -84,11 +84,6 @@
-- @param self
-- @return Widget::PositionType#Widget::PositionType ret (return value: ccui.Widget::PositionType)
--------------------------------
-- @function [parent=#Widget] getWidgetType
-- @param self
-- @return Widget::Type#Widget::Type ret (return value: ccui.Widget::Type)
--------------------------------
-- @function [parent=#Widget] getChildByName
-- @param self

View File

@ -51,11 +51,6 @@
-- @field [parent=#cc] Node#Node Node preloaded module
--------------------------------------------------------
-- the cc GLProgram
-- @field [parent=#cc] GLProgram#GLProgram GLProgram preloaded module
--------------------------------------------------------
-- the cc AtlasNode
-- @field [parent=#cc] AtlasNode#AtlasNode AtlasNode preloaded module
@ -736,6 +731,11 @@
-- @field [parent=#cc] LabelTTF#LabelTTF LabelTTF preloaded module
--------------------------------------------------------
-- the cc GLProgram
-- @field [parent=#cc] GLProgram#GLProgram GLProgram preloaded module
--------------------------------------------------------
-- the cc SpriteBatchNode
-- @field [parent=#cc] SpriteBatchNode#SpriteBatchNode SpriteBatchNode preloaded module

File diff suppressed because it is too large Load Diff

View File

@ -1532,50 +1532,6 @@ int lua_cocos2dx_ui_Widget_getPositionType(lua_State* tolua_S)
return 0;
}
int lua_cocos2dx_ui_Widget_getWidgetType(lua_State* tolua_S)
{
int argc = 0;
cocos2d::ui::Widget* cobj = nullptr;
bool ok = true;
#if COCOS2D_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if COCOS2D_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"ccui.Widget",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (cocos2d::ui::Widget*)tolua_tousertype(tolua_S,1,0);
#if COCOS2D_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ui_Widget_getWidgetType'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 0)
{
if(!ok)
return 0;
int ret = (int)cobj->getWidgetType();
tolua_pushnumber(tolua_S,(lua_Number)ret);
return 1;
}
CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getWidgetType",argc, 0);
return 0;
#if COCOS2D_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ui_Widget_getWidgetType'.",&tolua_err);
#endif
return 0;
}
int lua_cocos2dx_ui_Widget_getChildByName(lua_State* tolua_S)
{
int argc = 0;
@ -3576,7 +3532,6 @@ int lua_register_cocos2dx_ui_Widget(lua_State* tolua_S)
tolua_function(tolua_S,"isHighlighted",lua_cocos2dx_ui_Widget_isHighlighted);
tolua_function(tolua_S,"getLayoutParameter",lua_cocos2dx_ui_Widget_getLayoutParameter);
tolua_function(tolua_S,"getPositionType",lua_cocos2dx_ui_Widget_getPositionType);
tolua_function(tolua_S,"getWidgetType",lua_cocos2dx_ui_Widget_getWidgetType);
tolua_function(tolua_S,"getChildByName",lua_cocos2dx_ui_Widget_getChildByName);
tolua_function(tolua_S,"isEnabled",lua_cocos2dx_ui_Widget_isEnabled);
tolua_function(tolua_S,"isFocused",lua_cocos2dx_ui_Widget_isFocused);
@ -5068,7 +5023,7 @@ int lua_cocos2dx_ui_Layout_setLayoutType(lua_State* tolua_S)
argc = lua_gettop(tolua_S)-1;
if (argc == 1)
{
cocos2d::ui::Layout::LayoutType arg0;
cocos2d::ui::Layout::Type arg0;
ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0);
if(!ok)

View File

@ -382,7 +382,6 @@ int register_all_cocos2dx_ui(lua_State* tolua_S);
#endif // __cocos2dx_ui_h__