@@ -5139,6 +5139,103 @@ int lua_ax_fairygui_GObject_setTooltips(lua_State* tolua_S)
5139
5139
5140
5140
return 0;
5141
5141
}
5142
+ int lua_ax_fairygui_GObject_getBlendMode(lua_State* tolua_S)
5143
+ {
5144
+ int argc = 0;
5145
+ fairygui::GObject* cobj = nullptr;
5146
+ bool ok = true;
5147
+
5148
+ #if _AX_DEBUG >= 1
5149
+ tolua_Error tolua_err;
5150
+ #endif
5151
+
5152
+
5153
+ #if _AX_DEBUG >= 1
5154
+ if (!tolua_isusertype(tolua_S,1,"fgui.GObject",0,&tolua_err)) goto tolua_lerror;
5155
+ #endif
5156
+
5157
+ cobj = (fairygui::GObject*)tolua_tousertype(tolua_S,1,0);
5158
+
5159
+ #if _AX_DEBUG >= 1
5160
+ if (!cobj)
5161
+ {
5162
+ tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_fairygui_GObject_getBlendMode'", nullptr);
5163
+ return 0;
5164
+ }
5165
+ #endif
5166
+
5167
+ argc = lua_gettop(tolua_S)-1;
5168
+ if (argc == 0)
5169
+ {
5170
+ if(!ok)
5171
+ {
5172
+ tolua_error(tolua_S,"invalid arguments in function 'lua_ax_fairygui_GObject_getBlendMode'", nullptr);
5173
+ return 0;
5174
+ }
5175
+ int ret = (int)cobj->getBlendMode();
5176
+ tolua_pushnumber(tolua_S,(lua_Number)ret);
5177
+ return 1;
5178
+ }
5179
+ luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "fgui.GObject:getBlendMode",argc, 0);
5180
+ return 0;
5181
+
5182
+ #if _AX_DEBUG >= 1
5183
+ tolua_lerror:
5184
+ tolua_error(tolua_S,"#ferror in function 'lua_ax_fairygui_GObject_getBlendMode'.",&tolua_err);
5185
+ #endif
5186
+
5187
+ return 0;
5188
+ }
5189
+ int lua_ax_fairygui_GObject_setBlendMode(lua_State* tolua_S)
5190
+ {
5191
+ int argc = 0;
5192
+ fairygui::GObject* cobj = nullptr;
5193
+ bool ok = true;
5194
+
5195
+ #if _AX_DEBUG >= 1
5196
+ tolua_Error tolua_err;
5197
+ #endif
5198
+
5199
+
5200
+ #if _AX_DEBUG >= 1
5201
+ if (!tolua_isusertype(tolua_S,1,"fgui.GObject",0,&tolua_err)) goto tolua_lerror;
5202
+ #endif
5203
+
5204
+ cobj = (fairygui::GObject*)tolua_tousertype(tolua_S,1,0);
5205
+
5206
+ #if _AX_DEBUG >= 1
5207
+ if (!cobj)
5208
+ {
5209
+ tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_fairygui_GObject_setBlendMode'", nullptr);
5210
+ return 0;
5211
+ }
5212
+ #endif
5213
+
5214
+ argc = lua_gettop(tolua_S)-1;
5215
+ if (argc == 1)
5216
+ {
5217
+ fairygui::BlendMode arg0;
5218
+
5219
+ ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "fgui.GObject:setBlendMode");
5220
+ if(!ok)
5221
+ {
5222
+ tolua_error(tolua_S,"invalid arguments in function 'lua_ax_fairygui_GObject_setBlendMode'", nullptr);
5223
+ return 0;
5224
+ }
5225
+ cobj->setBlendMode(arg0);
5226
+ lua_settop(tolua_S, 1);
5227
+ return 1;
5228
+ }
5229
+ luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "fgui.GObject:setBlendMode",argc, 1);
5230
+ return 0;
5231
+
5232
+ #if _AX_DEBUG >= 1
5233
+ tolua_lerror:
5234
+ tolua_error(tolua_S,"#ferror in function 'lua_ax_fairygui_GObject_setBlendMode'.",&tolua_err);
5235
+ #endif
5236
+
5237
+ return 0;
5238
+ }
5142
5239
int lua_ax_fairygui_GObject_setData(lua_State* tolua_S)
5143
5240
{
5144
5241
int argc = 0;
@@ -6922,6 +7019,8 @@ int lua_register_ax_fairygui_GObject(lua_State* tolua_S)
6922
7019
tolua_function(tolua_S,"setIcon",lua_ax_fairygui_GObject_setIcon);
6923
7020
tolua_function(tolua_S,"getTooltips",lua_ax_fairygui_GObject_getTooltips);
6924
7021
tolua_function(tolua_S,"setTooltips",lua_ax_fairygui_GObject_setTooltips);
7022
+ tolua_function(tolua_S,"getBlendMode",lua_ax_fairygui_GObject_getBlendMode);
7023
+ tolua_function(tolua_S,"setBlendMode",lua_ax_fairygui_GObject_setBlendMode);
6925
7024
tolua_function(tolua_S,"setData",lua_ax_fairygui_GObject_setData);
6926
7025
tolua_function(tolua_S,"getCustomData",lua_ax_fairygui_GObject_getCustomData);
6927
7026
tolua_function(tolua_S,"setCustomData",lua_ax_fairygui_GObject_setCustomData);
0 commit comments