From a3ddd923070a9184c17cc2d338ccf113a90c2870 Mon Sep 17 00:00:00 2001 From: CocosRobot Date: Mon, 16 Mar 2015 07:11:12 +0000 Subject: [PATCH] [AUTO]: updating luabinding automatically --- .../lua-bindings/auto/api/EditBox.lua | 15 ++-- .../auto/lua_cocos2dx_ui_auto.cpp | 86 +++++++++++-------- 2 files changed, 56 insertions(+), 45 deletions(-) diff --git a/cocos/scripting/lua-bindings/auto/api/EditBox.lua b/cocos/scripting/lua-bindings/auto/api/EditBox.lua index 82e27b5b40..71375d0677 100644 --- a/cocos/scripting/lua-bindings/auto/api/EditBox.lua +++ b/cocos/scripting/lua-bindings/auto/api/EditBox.lua @@ -118,20 +118,21 @@ -- @return EditBox#EditBox self (return value: ccui.EditBox) -------------------------------- --- Set the font color of the placeholder text when the edit box is empty.
--- Not supported on IOS. --- @function [parent=#EditBox] setPlaceholderFontColor +-- @overload self, color4b_table +-- @overload self, color3b_table +-- @function [parent=#EditBox] setPlaceholderFontColor -- @param self -- @param #color3b_table color -- @return EditBox#EditBox self (return value: ccui.EditBox) - + -------------------------------- --- Set the font color of the widget's text. --- @function [parent=#EditBox] setFontColor +-- @overload self, color4b_table +-- @overload self, color3b_table +-- @function [parent=#EditBox] setFontColor -- @param self -- @param #color3b_table color -- @return EditBox#EditBox self (return value: ccui.EditBox) - + -------------------------------- -- js NA
-- lua NA 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 b532986a0a..640f99edc4 100644 --- a/cocos/scripting/lua-bindings/auto/lua_cocos2dx_ui_auto.cpp +++ b/cocos/scripting/lua-bindings/auto/lua_cocos2dx_ui_auto.cpp @@ -22805,42 +22805,47 @@ int lua_cocos2dx_ui_EditBox_setPlaceholderFontColor(lua_State* tolua_S) int argc = 0; cocos2d::ui::EditBox* 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.EditBox",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::EditBox*)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_EditBox_setPlaceholderFontColor'", nullptr); return 0; } #endif - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - cocos2d::Color3B arg0; + do{ + if (argc == 1) { + cocos2d::Color4B arg0; + ok &=luaval_to_color4b(tolua_S, 2, &arg0, "ccui.EditBox:setPlaceholderFontColor"); - ok &= luaval_to_color3b(tolua_S, 2, &arg0, "ccui.EditBox:setPlaceholderFontColor"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_EditBox_setPlaceholderFontColor'", nullptr); - return 0; + if (!ok) { break; } + cobj->setPlaceholderFontColor(arg0); + lua_settop(tolua_S, 1); + return 1; } - cobj->setPlaceholderFontColor(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccui.EditBox:setPlaceholderFontColor",argc, 1); + }while(0); + ok = true; + do{ + if (argc == 1) { + cocos2d::Color3B arg0; + ok &= luaval_to_color3b(tolua_S, 2, &arg0, "ccui.EditBox:setPlaceholderFontColor"); + + if (!ok) { break; } + cobj->setPlaceholderFontColor(arg0); + 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", "ccui.EditBox:setPlaceholderFontColor",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 @@ -22855,42 +22860,47 @@ int lua_cocos2dx_ui_EditBox_setFontColor(lua_State* tolua_S) int argc = 0; cocos2d::ui::EditBox* 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.EditBox",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::EditBox*)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_EditBox_setFontColor'", nullptr); return 0; } #endif - argc = lua_gettop(tolua_S)-1; - if (argc == 1) - { - cocos2d::Color3B arg0; + do{ + if (argc == 1) { + cocos2d::Color4B arg0; + ok &=luaval_to_color4b(tolua_S, 2, &arg0, "ccui.EditBox:setFontColor"); - ok &= luaval_to_color3b(tolua_S, 2, &arg0, "ccui.EditBox:setFontColor"); - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_EditBox_setFontColor'", nullptr); - return 0; + if (!ok) { break; } + cobj->setFontColor(arg0); + lua_settop(tolua_S, 1); + return 1; } - cobj->setFontColor(arg0); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccui.EditBox:setFontColor",argc, 1); + }while(0); + ok = true; + do{ + if (argc == 1) { + cocos2d::Color3B arg0; + ok &= luaval_to_color3b(tolua_S, 2, &arg0, "ccui.EditBox:setFontColor"); + + if (!ok) { break; } + cobj->setFontColor(arg0); + 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", "ccui.EditBox:setFontColor",argc, 1); return 0; #if COCOS2D_DEBUG >= 1