diff --git a/cocos/scripting/lua-bindings/auto/api/Label.lua b/cocos/scripting/lua-bindings/auto/api/Label.lua index 5d280171be..5102674cfb 100644 --- a/cocos/scripting/lua-bindings/auto/api/Label.lua +++ b/cocos/scripting/lua-bindings/auto/api/Label.lua @@ -38,11 +38,13 @@ -- @return float#float ret (return value: float) -------------------------------- --- Disable all effect to Label. --- @function [parent=#Label] disableEffect +-- @overload self, int +-- @overload self +-- @function [parent=#Label] disableEffect -- @param self +-- @param #int effect -- @return Label#Label self (return value: cc.Label) - + -------------------------------- -- Sets a new TTF configuration to Label.
-- see `TTFConfig` diff --git a/cocos/scripting/lua-bindings/auto/lua_cocos2dx_auto.cpp b/cocos/scripting/lua-bindings/auto/lua_cocos2dx_auto.cpp index 7aa3f15a82..6277804a01 100644 --- a/cocos/scripting/lua-bindings/auto/lua_cocos2dx_auto.cpp +++ b/cocos/scripting/lua-bindings/auto/lua_cocos2dx_auto.cpp @@ -38637,39 +38637,43 @@ int lua_cocos2dx_Label_disableEffect(lua_State* tolua_S) int argc = 0; cocos2d::Label* 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.Label",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); - #if COCOS2D_DEBUG >= 1 - if (!cobj) + if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Label_disableEffect'", 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_Label_disableEffect'", nullptr); - return 0; + do{ + if (argc == 1) { + cocos2d::LabelEffect arg0; + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.Label:disableEffect"); + + if (!ok) { break; } + cobj->disableEffect(arg0); + lua_settop(tolua_S, 1); + return 1; } - cobj->disableEffect(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Label:disableEffect",argc, 0); + }while(0); + ok = true; + do{ + if (argc == 0) { + cobj->disableEffect(); + lua_settop(tolua_S, 1); + return 1; + } + }while(0); + ok = true; + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Label:disableEffect",argc, 0); return 0; #if COCOS2D_DEBUG >= 1