@@ -26702,43 +26702,6 @@ int lua_ax_ui_RichElement_setColor(lua_State* tolua_S)
26702
26702
26703
26703
return 0;
26704
26704
}
26705
- int lua_ax_ui_RichElement_constructor(lua_State* tolua_S)
26706
- {
26707
- int argc = 0;
26708
- ax::ui::RichElement* cobj = nullptr;
26709
- bool ok = true;
26710
-
26711
- #if _AX_DEBUG >= 1
26712
- tolua_Error tolua_err;
26713
- #endif
26714
-
26715
-
26716
-
26717
- argc = lua_gettop(tolua_S)-1;
26718
- if (argc == 0)
26719
- {
26720
- if(!ok)
26721
- {
26722
- tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichElement_constructor'", nullptr);
26723
- return 0;
26724
- }
26725
- cobj = new ax::ui::RichElement();
26726
- cobj->autorelease();
26727
- int ID = (int)cobj->_ID ;
26728
- int* luaID = &cobj->_luaID ;
26729
- toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"axui.RichElement");
26730
- return 1;
26731
- }
26732
- luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RichElement:RichElement",argc, 0);
26733
- return 0;
26734
-
26735
- #if _AX_DEBUG >= 1
26736
- tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RichElement_constructor'.",&tolua_err);
26737
- #endif
26738
-
26739
- return 0;
26740
- }
26741
-
26742
26705
static int lua_ax_ui_RichElement_finalize(lua_State* tolua_S)
26743
26706
{
26744
26707
printf("luabindings: finalizing LUA object (RichElement)");
@@ -26751,7 +26714,6 @@ int lua_register_ax_ui_RichElement(lua_State* tolua_S)
26751
26714
tolua_cclass(tolua_S,"RichElement","axui.RichElement","ax.Ref",nullptr);
26752
26715
26753
26716
tolua_beginmodule(tolua_S,"RichElement");
26754
- tolua_function(tolua_S,"new",lua_ax_ui_RichElement_constructor);
26755
26717
tolua_function(tolua_S,"init",lua_ax_ui_RichElement_init);
26756
26718
tolua_function(tolua_S,"equalType",lua_ax_ui_RichElement_equalType);
26757
26719
tolua_function(tolua_S,"setColor",lua_ax_ui_RichElement_setColor);
@@ -28196,7 +28158,6 @@ int lua_ax_ui_RichElementNewLine_create(lua_State* tolua_S)
28196
28158
{
28197
28159
int argc = 0;
28198
28160
bool ok = true;
28199
-
28200
28161
#if _AX_DEBUG >= 1
28201
28162
tolua_Error tolua_err;
28202
28163
#endif
@@ -28205,26 +28166,50 @@ int lua_ax_ui_RichElementNewLine_create(lua_State* tolua_S)
28205
28166
if (!tolua_isusertable(tolua_S,1,"axui.RichElementNewLine",0,&tolua_err)) goto tolua_lerror;
28206
28167
#endif
28207
28168
28208
- argc = lua_gettop(tolua_S) - 1;
28169
+ argc = lua_gettop(tolua_S)- 1;
28209
28170
28210
- if (argc == 3)
28171
+ do
28211
28172
{
28212
- int arg0;
28213
- ax::Color3B arg1;
28214
- uint16_t arg2;
28215
- ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.RichElementNewLine:create");
28216
- ok &= luaval_to_color3b(tolua_S, 3, &arg1, "axui.RichElementNewLine:create");
28217
- ok &= luaval_to_uint16(tolua_S, 4,&arg2, "axui.RichElementNewLine:create");
28218
- if(!ok)
28173
+ if (argc == 4)
28219
28174
{
28220
- tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichElementNewLine_create'", nullptr);
28221
- return 0;
28175
+ int arg0;
28176
+ ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.RichElementNewLine:create");
28177
+ if (!ok) { break; }
28178
+ int arg1;
28179
+ ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "axui.RichElementNewLine:create");
28180
+ if (!ok) { break; }
28181
+ ax::Color3B arg2;
28182
+ ok &= luaval_to_color3b(tolua_S, 4, &arg2, "axui.RichElementNewLine:create");
28183
+ if (!ok) { break; }
28184
+ uint16_t arg3;
28185
+ ok &= luaval_to_uint16(tolua_S, 5,&arg3, "axui.RichElementNewLine:create");
28186
+ if (!ok) { break; }
28187
+ ax::ui::RichElementNewLine* ret = ax::ui::RichElementNewLine::create(arg0, arg1, arg2, arg3);
28188
+ object_to_luaval<ax::ui::RichElementNewLine>(tolua_S, "axui.RichElementNewLine",(ax::ui::RichElementNewLine*)ret);
28189
+ return 1;
28222
28190
}
28223
- auto&& ret = ax::ui::RichElementNewLine::create(arg0, arg1, arg2);
28224
- object_to_luaval<ax::ui::RichElementNewLine>(tolua_S, "axui.RichElementNewLine",(ax::ui::RichElementNewLine*)ret);
28225
- return 1;
28226
- }
28227
- luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "axui.RichElementNewLine:create",argc, 3);
28191
+ } while (0);
28192
+ ok = true;
28193
+ do
28194
+ {
28195
+ if (argc == 3)
28196
+ {
28197
+ int arg0;
28198
+ ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.RichElementNewLine:create");
28199
+ if (!ok) { break; }
28200
+ ax::Color3B arg1;
28201
+ ok &= luaval_to_color3b(tolua_S, 3, &arg1, "axui.RichElementNewLine:create");
28202
+ if (!ok) { break; }
28203
+ uint16_t arg2;
28204
+ ok &= luaval_to_uint16(tolua_S, 4,&arg2, "axui.RichElementNewLine:create");
28205
+ if (!ok) { break; }
28206
+ ax::ui::RichElementNewLine* ret = ax::ui::RichElementNewLine::create(arg0, arg1, arg2);
28207
+ object_to_luaval<ax::ui::RichElementNewLine>(tolua_S, "axui.RichElementNewLine",(ax::ui::RichElementNewLine*)ret);
28208
+ return 1;
28209
+ }
28210
+ } while (0);
28211
+ ok = true;
28212
+ luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d", "axui.RichElementNewLine:create",argc, 3);
28228
28213
return 0;
28229
28214
#if _AX_DEBUG >= 1
28230
28215
tolua_lerror:
@@ -28259,6 +28244,23 @@ int lua_ax_ui_RichElementNewLine_constructor(lua_State* tolua_S)
28259
28244
toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"axui.RichElementNewLine");
28260
28245
return 1;
28261
28246
}
28247
+ if (argc == 1)
28248
+ {
28249
+ int arg0;
28250
+
28251
+ ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.RichElementNewLine:RichElementNewLine");
28252
+ if(!ok)
28253
+ {
28254
+ tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichElementNewLine_constructor'", nullptr);
28255
+ return 0;
28256
+ }
28257
+ cobj = new ax::ui::RichElementNewLine(arg0);
28258
+ cobj->autorelease();
28259
+ int ID = (int)cobj->_ID ;
28260
+ int* luaID = &cobj->_luaID ;
28261
+ toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"axui.RichElementNewLine");
28262
+ return 1;
28263
+ }
28262
28264
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RichElementNewLine:RichElementNewLine",argc, 0);
28263
28265
return 0;
28264
28266
0 commit comments