[AUTO]: updating luabinding automatically

This commit is contained in:
CocosRobot 2015-04-10 07:27:51 +00:00
parent c70314eedc
commit 15f22d936f
3 changed files with 29 additions and 23 deletions

View File

@ -238,7 +238,7 @@
--------------------------------
-- Sets the text color of Label.<br>
-- The text color is different from the color of Node.<br>
-- warning Limiting use to only when the Label created with true type font or system font.
-- warning Limiting use to only when the Label created with true type font or system font.
-- @function [parent=#Label] setTextColor
-- @param self
-- @param #color4b_table color
@ -330,7 +330,7 @@
-- param text The initial text.<br>
-- param hAlignment Text horizontal alignment.<br>
-- param maxLineWidth The max line width.<br>
-- param imageOffset <br>
-- param imageOffset<br>
-- return An automatically released Label object.<br>
-- see setBMFontFilePath setMaxLineWidth
-- @function [parent=#Label] createWithBMFont
@ -366,7 +366,7 @@
-- param text The initial text.<br>
-- param font A font file or a font family name.<br>
-- param fontSize The font size. This value must be > 0.<br>
-- param dimensions <br>
-- param dimensions<br>
-- param hAlignment The text horizontal alignment.<br>
-- param vAlignment The text vertical alignment.<br>
-- warning It will generate texture by the platform-dependent code.<br>

View File

@ -28,11 +28,13 @@
-- @return string#string ret (return value: string)
--------------------------------
-- Disable shadow/outline/glow rendering.
-- @function [parent=#Text] disableEffect
-- @overload self, int
-- @overload self
-- @function [parent=#Text] disableEffect
-- @param self
-- @param #int effect
-- @return Text#Text self (return value: ccui.Text)
--------------------------------
-- Gets text color.<br>
-- return Text color.

View File

@ -8941,39 +8941,43 @@ int lua_cocos2dx_ui_Text_disableEffect(lua_State* tolua_S)
int argc = 0;
cocos2d::ui::Text* 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.Text",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (cocos2d::ui::Text*)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_Text_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_ui_Text_disableEffect'", nullptr);
return 0;
do{
if (argc == 1) {
cocos2d::LabelEffect arg0;
ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ccui.Text: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", "ccui.Text: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", "ccui.Text:disableEffect",argc, 0);
return 0;
#if COCOS2D_DEBUG >= 1