|
|
@@ -130,7 +130,7 @@ int lua_RadioButton__gc(lua_State* state)
|
|
|
{
|
|
|
case 1:
|
|
|
{
|
|
|
- if ((lua_type(state, 1) == LUA_TUSERDATA || lua_type(state, 1) == LUA_TNIL))
|
|
|
+ if ((lua_type(state, 1) == LUA_TUSERDATA))
|
|
|
{
|
|
|
void* userdata = luaL_checkudata(state, 1, "RadioButton");
|
|
|
luaL_argcheck(state, userdata != NULL, 1, "'RadioButton' expected.");
|
|
|
@@ -170,8 +170,8 @@ int lua_RadioButton_addListener(lua_State* state)
|
|
|
{
|
|
|
case 3:
|
|
|
{
|
|
|
- if ((lua_type(state, 1) == LUA_TUSERDATA || lua_type(state, 1) == LUA_TNIL) &&
|
|
|
- (lua_type(state, 2) == LUA_TUSERDATA || lua_type(state, 2) == LUA_TNIL) &&
|
|
|
+ if ((lua_type(state, 1) == LUA_TUSERDATA) &&
|
|
|
+ (lua_type(state, 2) == LUA_TUSERDATA || lua_type(state, 2) == LUA_TTABLE || lua_type(state, 2) == LUA_TNIL) &&
|
|
|
lua_type(state, 3) == LUA_TNUMBER)
|
|
|
{
|
|
|
// Get parameter 1 off the stack.
|
|
|
@@ -212,7 +212,7 @@ int lua_RadioButton_addRef(lua_State* state)
|
|
|
{
|
|
|
case 1:
|
|
|
{
|
|
|
- if ((lua_type(state, 1) == LUA_TUSERDATA || lua_type(state, 1) == LUA_TNIL))
|
|
|
+ if ((lua_type(state, 1) == LUA_TUSERDATA))
|
|
|
{
|
|
|
RadioButton* instance = getInstance(state);
|
|
|
instance->addRef();
|
|
|
@@ -246,7 +246,7 @@ int lua_RadioButton_createAnimation(lua_State* state)
|
|
|
{
|
|
|
case 3:
|
|
|
{
|
|
|
- if ((lua_type(state, 1) == LUA_TUSERDATA || lua_type(state, 1) == LUA_TNIL) &&
|
|
|
+ if ((lua_type(state, 1) == LUA_TUSERDATA) &&
|
|
|
(lua_type(state, 2) == LUA_TSTRING || lua_type(state, 2) == LUA_TNIL) &&
|
|
|
(lua_type(state, 3) == LUA_TSTRING || lua_type(state, 3) == LUA_TNIL))
|
|
|
{
|
|
|
@@ -273,9 +273,9 @@ int lua_RadioButton_createAnimation(lua_State* state)
|
|
|
|
|
|
return 1;
|
|
|
}
|
|
|
- else if ((lua_type(state, 1) == LUA_TUSERDATA || lua_type(state, 1) == LUA_TNIL) &&
|
|
|
+ else if ((lua_type(state, 1) == LUA_TUSERDATA) &&
|
|
|
(lua_type(state, 2) == LUA_TSTRING || lua_type(state, 2) == LUA_TNIL) &&
|
|
|
- (lua_type(state, 3) == LUA_TUSERDATA || lua_type(state, 3) == LUA_TNIL))
|
|
|
+ (lua_type(state, 3) == LUA_TUSERDATA || lua_type(state, 3) == LUA_TTABLE || lua_type(state, 3) == LUA_TNIL))
|
|
|
{
|
|
|
// Get parameter 1 off the stack.
|
|
|
const char* param1 = ScriptController::getInstance()->getString(2, false);
|
|
|
@@ -309,7 +309,7 @@ int lua_RadioButton_createAnimation(lua_State* state)
|
|
|
}
|
|
|
case 7:
|
|
|
{
|
|
|
- if ((lua_type(state, 1) == LUA_TUSERDATA || lua_type(state, 1) == LUA_TNIL) &&
|
|
|
+ if ((lua_type(state, 1) == LUA_TUSERDATA) &&
|
|
|
(lua_type(state, 2) == LUA_TSTRING || lua_type(state, 2) == LUA_TNIL) &&
|
|
|
lua_type(state, 3) == LUA_TNUMBER &&
|
|
|
lua_type(state, 4) == LUA_TNUMBER &&
|
|
|
@@ -361,7 +361,7 @@ int lua_RadioButton_createAnimation(lua_State* state)
|
|
|
}
|
|
|
case 9:
|
|
|
{
|
|
|
- if ((lua_type(state, 1) == LUA_TUSERDATA || lua_type(state, 1) == LUA_TNIL) &&
|
|
|
+ if ((lua_type(state, 1) == LUA_TUSERDATA) &&
|
|
|
(lua_type(state, 2) == LUA_TSTRING || lua_type(state, 2) == LUA_TNIL) &&
|
|
|
lua_type(state, 3) == LUA_TNUMBER &&
|
|
|
lua_type(state, 4) == LUA_TNUMBER &&
|
|
|
@@ -439,7 +439,7 @@ int lua_RadioButton_createAnimationFromBy(lua_State* state)
|
|
|
{
|
|
|
case 7:
|
|
|
{
|
|
|
- if ((lua_type(state, 1) == LUA_TUSERDATA || lua_type(state, 1) == LUA_TNIL) &&
|
|
|
+ if ((lua_type(state, 1) == LUA_TUSERDATA) &&
|
|
|
(lua_type(state, 2) == LUA_TSTRING || lua_type(state, 2) == LUA_TNIL) &&
|
|
|
lua_type(state, 3) == LUA_TNUMBER &&
|
|
|
(lua_type(state, 4) == LUA_TTABLE || lua_type(state, 4) == LUA_TLIGHTUSERDATA) &&
|
|
|
@@ -509,7 +509,7 @@ int lua_RadioButton_createAnimationFromTo(lua_State* state)
|
|
|
{
|
|
|
case 7:
|
|
|
{
|
|
|
- if ((lua_type(state, 1) == LUA_TUSERDATA || lua_type(state, 1) == LUA_TNIL) &&
|
|
|
+ if ((lua_type(state, 1) == LUA_TUSERDATA) &&
|
|
|
(lua_type(state, 2) == LUA_TSTRING || lua_type(state, 2) == LUA_TNIL) &&
|
|
|
lua_type(state, 3) == LUA_TNUMBER &&
|
|
|
(lua_type(state, 4) == LUA_TTABLE || lua_type(state, 4) == LUA_TLIGHTUSERDATA) &&
|
|
|
@@ -579,7 +579,7 @@ int lua_RadioButton_destroyAnimation(lua_State* state)
|
|
|
{
|
|
|
case 1:
|
|
|
{
|
|
|
- if ((lua_type(state, 1) == LUA_TUSERDATA || lua_type(state, 1) == LUA_TNIL))
|
|
|
+ if ((lua_type(state, 1) == LUA_TUSERDATA))
|
|
|
{
|
|
|
RadioButton* instance = getInstance(state);
|
|
|
instance->destroyAnimation();
|
|
|
@@ -595,7 +595,7 @@ int lua_RadioButton_destroyAnimation(lua_State* state)
|
|
|
}
|
|
|
case 2:
|
|
|
{
|
|
|
- if ((lua_type(state, 1) == LUA_TUSERDATA || lua_type(state, 1) == LUA_TNIL) &&
|
|
|
+ if ((lua_type(state, 1) == LUA_TUSERDATA) &&
|
|
|
(lua_type(state, 2) == LUA_TSTRING || lua_type(state, 2) == LUA_TNIL))
|
|
|
{
|
|
|
// Get parameter 1 off the stack.
|
|
|
@@ -633,7 +633,7 @@ int lua_RadioButton_disable(lua_State* state)
|
|
|
{
|
|
|
case 1:
|
|
|
{
|
|
|
- if ((lua_type(state, 1) == LUA_TUSERDATA || lua_type(state, 1) == LUA_TNIL))
|
|
|
+ if ((lua_type(state, 1) == LUA_TUSERDATA))
|
|
|
{
|
|
|
RadioButton* instance = getInstance(state);
|
|
|
instance->disable();
|
|
|
@@ -667,7 +667,7 @@ int lua_RadioButton_enable(lua_State* state)
|
|
|
{
|
|
|
case 1:
|
|
|
{
|
|
|
- if ((lua_type(state, 1) == LUA_TUSERDATA || lua_type(state, 1) == LUA_TNIL))
|
|
|
+ if ((lua_type(state, 1) == LUA_TUSERDATA))
|
|
|
{
|
|
|
RadioButton* instance = getInstance(state);
|
|
|
instance->enable();
|
|
|
@@ -701,7 +701,7 @@ int lua_RadioButton_getAlignment(lua_State* state)
|
|
|
{
|
|
|
case 1:
|
|
|
{
|
|
|
- if ((lua_type(state, 1) == LUA_TUSERDATA || lua_type(state, 1) == LUA_TNIL))
|
|
|
+ if ((lua_type(state, 1) == LUA_TUSERDATA))
|
|
|
{
|
|
|
RadioButton* instance = getInstance(state);
|
|
|
Control::Alignment result = instance->getAlignment();
|
|
|
@@ -738,7 +738,7 @@ int lua_RadioButton_getAnimation(lua_State* state)
|
|
|
{
|
|
|
case 1:
|
|
|
{
|
|
|
- if ((lua_type(state, 1) == LUA_TUSERDATA || lua_type(state, 1) == LUA_TNIL))
|
|
|
+ if ((lua_type(state, 1) == LUA_TUSERDATA))
|
|
|
{
|
|
|
RadioButton* instance = getInstance(state);
|
|
|
void* returnPtr = (void*)instance->getAnimation();
|
|
|
@@ -766,7 +766,7 @@ int lua_RadioButton_getAnimation(lua_State* state)
|
|
|
}
|
|
|
case 2:
|
|
|
{
|
|
|
- if ((lua_type(state, 1) == LUA_TUSERDATA || lua_type(state, 1) == LUA_TNIL) &&
|
|
|
+ if ((lua_type(state, 1) == LUA_TUSERDATA) &&
|
|
|
(lua_type(state, 2) == LUA_TSTRING || lua_type(state, 2) == LUA_TNIL))
|
|
|
{
|
|
|
// Get parameter 1 off the stack.
|
|
|
@@ -816,7 +816,7 @@ int lua_RadioButton_getAnimationPropertyComponentCount(lua_State* state)
|
|
|
{
|
|
|
case 2:
|
|
|
{
|
|
|
- if ((lua_type(state, 1) == LUA_TUSERDATA || lua_type(state, 1) == LUA_TNIL) &&
|
|
|
+ if ((lua_type(state, 1) == LUA_TUSERDATA) &&
|
|
|
lua_type(state, 2) == LUA_TNUMBER)
|
|
|
{
|
|
|
// Get parameter 1 off the stack.
|
|
|
@@ -857,9 +857,9 @@ int lua_RadioButton_getAnimationPropertyValue(lua_State* state)
|
|
|
{
|
|
|
case 3:
|
|
|
{
|
|
|
- if ((lua_type(state, 1) == LUA_TUSERDATA || lua_type(state, 1) == LUA_TNIL) &&
|
|
|
+ if ((lua_type(state, 1) == LUA_TUSERDATA) &&
|
|
|
lua_type(state, 2) == LUA_TNUMBER &&
|
|
|
- (lua_type(state, 3) == LUA_TUSERDATA || lua_type(state, 3) == LUA_TNIL))
|
|
|
+ (lua_type(state, 3) == LUA_TUSERDATA || lua_type(state, 3) == LUA_TTABLE || lua_type(state, 3) == LUA_TNIL))
|
|
|
{
|
|
|
// Get parameter 1 off the stack.
|
|
|
int param1 = (int)luaL_checkint(state, 2);
|
|
|
@@ -899,7 +899,7 @@ int lua_RadioButton_getAutoHeight(lua_State* state)
|
|
|
{
|
|
|
case 1:
|
|
|
{
|
|
|
- if ((lua_type(state, 1) == LUA_TUSERDATA || lua_type(state, 1) == LUA_TNIL))
|
|
|
+ if ((lua_type(state, 1) == LUA_TUSERDATA))
|
|
|
{
|
|
|
RadioButton* instance = getInstance(state);
|
|
|
bool result = instance->getAutoHeight();
|
|
|
@@ -936,7 +936,7 @@ int lua_RadioButton_getAutoWidth(lua_State* state)
|
|
|
{
|
|
|
case 1:
|
|
|
{
|
|
|
- if ((lua_type(state, 1) == LUA_TUSERDATA || lua_type(state, 1) == LUA_TNIL))
|
|
|
+ if ((lua_type(state, 1) == LUA_TUSERDATA))
|
|
|
{
|
|
|
RadioButton* instance = getInstance(state);
|
|
|
bool result = instance->getAutoWidth();
|
|
|
@@ -973,7 +973,7 @@ int lua_RadioButton_getBorder(lua_State* state)
|
|
|
{
|
|
|
case 1:
|
|
|
{
|
|
|
- if ((lua_type(state, 1) == LUA_TUSERDATA || lua_type(state, 1) == LUA_TNIL))
|
|
|
+ if ((lua_type(state, 1) == LUA_TUSERDATA))
|
|
|
{
|
|
|
RadioButton* instance = getInstance(state);
|
|
|
void* returnPtr = (void*)&(instance->getBorder());
|
|
|
@@ -1001,7 +1001,7 @@ int lua_RadioButton_getBorder(lua_State* state)
|
|
|
}
|
|
|
case 2:
|
|
|
{
|
|
|
- if ((lua_type(state, 1) == LUA_TUSERDATA || lua_type(state, 1) == LUA_TNIL) &&
|
|
|
+ if ((lua_type(state, 1) == LUA_TUSERDATA) &&
|
|
|
(lua_type(state, 2) == LUA_TSTRING || lua_type(state, 2) == LUA_TNIL))
|
|
|
{
|
|
|
// Get parameter 1 off the stack.
|
|
|
@@ -1051,7 +1051,7 @@ int lua_RadioButton_getBounds(lua_State* state)
|
|
|
{
|
|
|
case 1:
|
|
|
{
|
|
|
- if ((lua_type(state, 1) == LUA_TUSERDATA || lua_type(state, 1) == LUA_TNIL))
|
|
|
+ if ((lua_type(state, 1) == LUA_TUSERDATA))
|
|
|
{
|
|
|
RadioButton* instance = getInstance(state);
|
|
|
void* returnPtr = (void*)&(instance->getBounds());
|
|
|
@@ -1097,7 +1097,7 @@ int lua_RadioButton_getClip(lua_State* state)
|
|
|
{
|
|
|
case 1:
|
|
|
{
|
|
|
- if ((lua_type(state, 1) == LUA_TUSERDATA || lua_type(state, 1) == LUA_TNIL))
|
|
|
+ if ((lua_type(state, 1) == LUA_TUSERDATA))
|
|
|
{
|
|
|
RadioButton* instance = getInstance(state);
|
|
|
void* returnPtr = (void*)&(instance->getClip());
|
|
|
@@ -1143,7 +1143,7 @@ int lua_RadioButton_getClipBounds(lua_State* state)
|
|
|
{
|
|
|
case 1:
|
|
|
{
|
|
|
- if ((lua_type(state, 1) == LUA_TUSERDATA || lua_type(state, 1) == LUA_TNIL))
|
|
|
+ if ((lua_type(state, 1) == LUA_TUSERDATA))
|
|
|
{
|
|
|
RadioButton* instance = getInstance(state);
|
|
|
void* returnPtr = (void*)&(instance->getClipBounds());
|
|
|
@@ -1189,7 +1189,7 @@ int lua_RadioButton_getConsumeInputEvents(lua_State* state)
|
|
|
{
|
|
|
case 1:
|
|
|
{
|
|
|
- if ((lua_type(state, 1) == LUA_TUSERDATA || lua_type(state, 1) == LUA_TNIL))
|
|
|
+ if ((lua_type(state, 1) == LUA_TUSERDATA))
|
|
|
{
|
|
|
RadioButton* instance = getInstance(state);
|
|
|
bool result = instance->getConsumeInputEvents();
|
|
|
@@ -1226,7 +1226,7 @@ int lua_RadioButton_getCursorColor(lua_State* state)
|
|
|
{
|
|
|
case 2:
|
|
|
{
|
|
|
- if ((lua_type(state, 1) == LUA_TUSERDATA || lua_type(state, 1) == LUA_TNIL) &&
|
|
|
+ if ((lua_type(state, 1) == LUA_TUSERDATA) &&
|
|
|
(lua_type(state, 2) == LUA_TSTRING || lua_type(state, 2) == LUA_TNIL))
|
|
|
{
|
|
|
// Get parameter 1 off the stack.
|
|
|
@@ -1276,7 +1276,7 @@ int lua_RadioButton_getCursorRegion(lua_State* state)
|
|
|
{
|
|
|
case 2:
|
|
|
{
|
|
|
- if ((lua_type(state, 1) == LUA_TUSERDATA || lua_type(state, 1) == LUA_TNIL) &&
|
|
|
+ if ((lua_type(state, 1) == LUA_TUSERDATA) &&
|
|
|
(lua_type(state, 2) == LUA_TSTRING || lua_type(state, 2) == LUA_TNIL))
|
|
|
{
|
|
|
// Get parameter 1 off the stack.
|
|
|
@@ -1326,7 +1326,7 @@ int lua_RadioButton_getCursorUVs(lua_State* state)
|
|
|
{
|
|
|
case 2:
|
|
|
{
|
|
|
- if ((lua_type(state, 1) == LUA_TUSERDATA || lua_type(state, 1) == LUA_TNIL) &&
|
|
|
+ if ((lua_type(state, 1) == LUA_TUSERDATA) &&
|
|
|
(lua_type(state, 2) == LUA_TSTRING || lua_type(state, 2) == LUA_TNIL))
|
|
|
{
|
|
|
// Get parameter 1 off the stack.
|
|
|
@@ -1376,7 +1376,7 @@ int lua_RadioButton_getFocusIndex(lua_State* state)
|
|
|
{
|
|
|
case 1:
|
|
|
{
|
|
|
- if ((lua_type(state, 1) == LUA_TUSERDATA || lua_type(state, 1) == LUA_TNIL))
|
|
|
+ if ((lua_type(state, 1) == LUA_TUSERDATA))
|
|
|
{
|
|
|
RadioButton* instance = getInstance(state);
|
|
|
int result = instance->getFocusIndex();
|
|
|
@@ -1413,7 +1413,7 @@ int lua_RadioButton_getFont(lua_State* state)
|
|
|
{
|
|
|
case 1:
|
|
|
{
|
|
|
- if ((lua_type(state, 1) == LUA_TUSERDATA || lua_type(state, 1) == LUA_TNIL))
|
|
|
+ if ((lua_type(state, 1) == LUA_TUSERDATA))
|
|
|
{
|
|
|
RadioButton* instance = getInstance(state);
|
|
|
void* returnPtr = (void*)instance->getFont();
|
|
|
@@ -1441,7 +1441,7 @@ int lua_RadioButton_getFont(lua_State* state)
|
|
|
}
|
|
|
case 2:
|
|
|
{
|
|
|
- if ((lua_type(state, 1) == LUA_TUSERDATA || lua_type(state, 1) == LUA_TNIL) &&
|
|
|
+ if ((lua_type(state, 1) == LUA_TUSERDATA) &&
|
|
|
(lua_type(state, 2) == LUA_TSTRING || lua_type(state, 2) == LUA_TNIL))
|
|
|
{
|
|
|
// Get parameter 1 off the stack.
|
|
|
@@ -1491,7 +1491,7 @@ int lua_RadioButton_getFontSize(lua_State* state)
|
|
|
{
|
|
|
case 1:
|
|
|
{
|
|
|
- if ((lua_type(state, 1) == LUA_TUSERDATA || lua_type(state, 1) == LUA_TNIL))
|
|
|
+ if ((lua_type(state, 1) == LUA_TUSERDATA))
|
|
|
{
|
|
|
RadioButton* instance = getInstance(state);
|
|
|
unsigned int result = instance->getFontSize();
|
|
|
@@ -1510,7 +1510,7 @@ int lua_RadioButton_getFontSize(lua_State* state)
|
|
|
}
|
|
|
case 2:
|
|
|
{
|
|
|
- if ((lua_type(state, 1) == LUA_TUSERDATA || lua_type(state, 1) == LUA_TNIL) &&
|
|
|
+ if ((lua_type(state, 1) == LUA_TUSERDATA) &&
|
|
|
(lua_type(state, 2) == LUA_TSTRING || lua_type(state, 2) == LUA_TNIL))
|
|
|
{
|
|
|
// Get parameter 1 off the stack.
|
|
|
@@ -1551,7 +1551,7 @@ int lua_RadioButton_getHeight(lua_State* state)
|
|
|
{
|
|
|
case 1:
|
|
|
{
|
|
|
- if ((lua_type(state, 1) == LUA_TUSERDATA || lua_type(state, 1) == LUA_TNIL))
|
|
|
+ if ((lua_type(state, 1) == LUA_TUSERDATA))
|
|
|
{
|
|
|
RadioButton* instance = getInstance(state);
|
|
|
float result = instance->getHeight();
|
|
|
@@ -1588,7 +1588,7 @@ int lua_RadioButton_getId(lua_State* state)
|
|
|
{
|
|
|
case 1:
|
|
|
{
|
|
|
- if ((lua_type(state, 1) == LUA_TUSERDATA || lua_type(state, 1) == LUA_TNIL))
|
|
|
+ if ((lua_type(state, 1) == LUA_TUSERDATA))
|
|
|
{
|
|
|
RadioButton* instance = getInstance(state);
|
|
|
const char* result = instance->getId();
|
|
|
@@ -1625,7 +1625,7 @@ int lua_RadioButton_getImageColor(lua_State* state)
|
|
|
{
|
|
|
case 3:
|
|
|
{
|
|
|
- if ((lua_type(state, 1) == LUA_TUSERDATA || lua_type(state, 1) == LUA_TNIL) &&
|
|
|
+ if ((lua_type(state, 1) == LUA_TUSERDATA) &&
|
|
|
(lua_type(state, 2) == LUA_TSTRING || lua_type(state, 2) == LUA_TNIL) &&
|
|
|
(lua_type(state, 3) == LUA_TSTRING || lua_type(state, 3) == LUA_TNIL))
|
|
|
{
|
|
|
@@ -1679,7 +1679,7 @@ int lua_RadioButton_getImageRegion(lua_State* state)
|
|
|
{
|
|
|
case 3:
|
|
|
{
|
|
|
- if ((lua_type(state, 1) == LUA_TUSERDATA || lua_type(state, 1) == LUA_TNIL) &&
|
|
|
+ if ((lua_type(state, 1) == LUA_TUSERDATA) &&
|
|
|
(lua_type(state, 2) == LUA_TSTRING || lua_type(state, 2) == LUA_TNIL) &&
|
|
|
(lua_type(state, 3) == LUA_TSTRING || lua_type(state, 3) == LUA_TNIL))
|
|
|
{
|
|
|
@@ -1733,7 +1733,7 @@ int lua_RadioButton_getImageSize(lua_State* state)
|
|
|
{
|
|
|
case 1:
|
|
|
{
|
|
|
- if ((lua_type(state, 1) == LUA_TUSERDATA || lua_type(state, 1) == LUA_TNIL))
|
|
|
+ if ((lua_type(state, 1) == LUA_TUSERDATA))
|
|
|
{
|
|
|
RadioButton* instance = getInstance(state);
|
|
|
void* returnPtr = (void*)&(instance->getImageSize());
|
|
|
@@ -1779,7 +1779,7 @@ int lua_RadioButton_getImageUVs(lua_State* state)
|
|
|
{
|
|
|
case 3:
|
|
|
{
|
|
|
- if ((lua_type(state, 1) == LUA_TUSERDATA || lua_type(state, 1) == LUA_TNIL) &&
|
|
|
+ if ((lua_type(state, 1) == LUA_TUSERDATA) &&
|
|
|
(lua_type(state, 2) == LUA_TSTRING || lua_type(state, 2) == LUA_TNIL) &&
|
|
|
(lua_type(state, 3) == LUA_TSTRING || lua_type(state, 3) == LUA_TNIL))
|
|
|
{
|
|
|
@@ -1833,7 +1833,7 @@ int lua_RadioButton_getMargin(lua_State* state)
|
|
|
{
|
|
|
case 1:
|
|
|
{
|
|
|
- if ((lua_type(state, 1) == LUA_TUSERDATA || lua_type(state, 1) == LUA_TNIL))
|
|
|
+ if ((lua_type(state, 1) == LUA_TUSERDATA))
|
|
|
{
|
|
|
RadioButton* instance = getInstance(state);
|
|
|
void* returnPtr = (void*)&(instance->getMargin());
|
|
|
@@ -1879,7 +1879,7 @@ int lua_RadioButton_getOpacity(lua_State* state)
|
|
|
{
|
|
|
case 1:
|
|
|
{
|
|
|
- if ((lua_type(state, 1) == LUA_TUSERDATA || lua_type(state, 1) == LUA_TNIL))
|
|
|
+ if ((lua_type(state, 1) == LUA_TUSERDATA))
|
|
|
{
|
|
|
RadioButton* instance = getInstance(state);
|
|
|
float result = instance->getOpacity();
|
|
|
@@ -1898,7 +1898,7 @@ int lua_RadioButton_getOpacity(lua_State* state)
|
|
|
}
|
|
|
case 2:
|
|
|
{
|
|
|
- if ((lua_type(state, 1) == LUA_TUSERDATA || lua_type(state, 1) == LUA_TNIL) &&
|
|
|
+ if ((lua_type(state, 1) == LUA_TUSERDATA) &&
|
|
|
(lua_type(state, 2) == LUA_TSTRING || lua_type(state, 2) == LUA_TNIL))
|
|
|
{
|
|
|
// Get parameter 1 off the stack.
|
|
|
@@ -1939,7 +1939,7 @@ int lua_RadioButton_getPadding(lua_State* state)
|
|
|
{
|
|
|
case 1:
|
|
|
{
|
|
|
- if ((lua_type(state, 1) == LUA_TUSERDATA || lua_type(state, 1) == LUA_TNIL))
|
|
|
+ if ((lua_type(state, 1) == LUA_TUSERDATA))
|
|
|
{
|
|
|
RadioButton* instance = getInstance(state);
|
|
|
void* returnPtr = (void*)&(instance->getPadding());
|
|
|
@@ -1985,7 +1985,7 @@ int lua_RadioButton_getRefCount(lua_State* state)
|
|
|
{
|
|
|
case 1:
|
|
|
{
|
|
|
- if ((lua_type(state, 1) == LUA_TUSERDATA || lua_type(state, 1) == LUA_TNIL))
|
|
|
+ if ((lua_type(state, 1) == LUA_TUSERDATA))
|
|
|
{
|
|
|
RadioButton* instance = getInstance(state);
|
|
|
unsigned int result = instance->getRefCount();
|
|
|
@@ -2022,7 +2022,7 @@ int lua_RadioButton_getSkinColor(lua_State* state)
|
|
|
{
|
|
|
case 1:
|
|
|
{
|
|
|
- if ((lua_type(state, 1) == LUA_TUSERDATA || lua_type(state, 1) == LUA_TNIL))
|
|
|
+ if ((lua_type(state, 1) == LUA_TUSERDATA))
|
|
|
{
|
|
|
RadioButton* instance = getInstance(state);
|
|
|
void* returnPtr = (void*)&(instance->getSkinColor());
|
|
|
@@ -2050,7 +2050,7 @@ int lua_RadioButton_getSkinColor(lua_State* state)
|
|
|
}
|
|
|
case 2:
|
|
|
{
|
|
|
- if ((lua_type(state, 1) == LUA_TUSERDATA || lua_type(state, 1) == LUA_TNIL) &&
|
|
|
+ if ((lua_type(state, 1) == LUA_TUSERDATA) &&
|
|
|
(lua_type(state, 2) == LUA_TSTRING || lua_type(state, 2) == LUA_TNIL))
|
|
|
{
|
|
|
// Get parameter 1 off the stack.
|
|
|
@@ -2100,7 +2100,7 @@ int lua_RadioButton_getSkinRegion(lua_State* state)
|
|
|
{
|
|
|
case 1:
|
|
|
{
|
|
|
- if ((lua_type(state, 1) == LUA_TUSERDATA || lua_type(state, 1) == LUA_TNIL))
|
|
|
+ if ((lua_type(state, 1) == LUA_TUSERDATA))
|
|
|
{
|
|
|
RadioButton* instance = getInstance(state);
|
|
|
void* returnPtr = (void*)&(instance->getSkinRegion());
|
|
|
@@ -2128,7 +2128,7 @@ int lua_RadioButton_getSkinRegion(lua_State* state)
|
|
|
}
|
|
|
case 2:
|
|
|
{
|
|
|
- if ((lua_type(state, 1) == LUA_TUSERDATA || lua_type(state, 1) == LUA_TNIL) &&
|
|
|
+ if ((lua_type(state, 1) == LUA_TUSERDATA) &&
|
|
|
(lua_type(state, 2) == LUA_TSTRING || lua_type(state, 2) == LUA_TNIL))
|
|
|
{
|
|
|
// Get parameter 1 off the stack.
|
|
|
@@ -2178,7 +2178,7 @@ int lua_RadioButton_getState(lua_State* state)
|
|
|
{
|
|
|
case 1:
|
|
|
{
|
|
|
- if ((lua_type(state, 1) == LUA_TUSERDATA || lua_type(state, 1) == LUA_TNIL))
|
|
|
+ if ((lua_type(state, 1) == LUA_TUSERDATA))
|
|
|
{
|
|
|
RadioButton* instance = getInstance(state);
|
|
|
Control::State result = instance->getState();
|
|
|
@@ -2215,7 +2215,7 @@ int lua_RadioButton_getStyle(lua_State* state)
|
|
|
{
|
|
|
case 1:
|
|
|
{
|
|
|
- if ((lua_type(state, 1) == LUA_TUSERDATA || lua_type(state, 1) == LUA_TNIL))
|
|
|
+ if ((lua_type(state, 1) == LUA_TUSERDATA))
|
|
|
{
|
|
|
RadioButton* instance = getInstance(state);
|
|
|
void* returnPtr = (void*)instance->getStyle();
|
|
|
@@ -2261,7 +2261,7 @@ int lua_RadioButton_getText(lua_State* state)
|
|
|
{
|
|
|
case 1:
|
|
|
{
|
|
|
- if ((lua_type(state, 1) == LUA_TUSERDATA || lua_type(state, 1) == LUA_TNIL))
|
|
|
+ if ((lua_type(state, 1) == LUA_TUSERDATA))
|
|
|
{
|
|
|
RadioButton* instance = getInstance(state);
|
|
|
const char* result = instance->getText();
|
|
|
@@ -2298,7 +2298,7 @@ int lua_RadioButton_getTextAlignment(lua_State* state)
|
|
|
{
|
|
|
case 1:
|
|
|
{
|
|
|
- if ((lua_type(state, 1) == LUA_TUSERDATA || lua_type(state, 1) == LUA_TNIL))
|
|
|
+ if ((lua_type(state, 1) == LUA_TUSERDATA))
|
|
|
{
|
|
|
RadioButton* instance = getInstance(state);
|
|
|
Font::Justify result = instance->getTextAlignment();
|
|
|
@@ -2317,7 +2317,7 @@ int lua_RadioButton_getTextAlignment(lua_State* state)
|
|
|
}
|
|
|
case 2:
|
|
|
{
|
|
|
- if ((lua_type(state, 1) == LUA_TUSERDATA || lua_type(state, 1) == LUA_TNIL) &&
|
|
|
+ if ((lua_type(state, 1) == LUA_TUSERDATA) &&
|
|
|
(lua_type(state, 2) == LUA_TSTRING || lua_type(state, 2) == LUA_TNIL))
|
|
|
{
|
|
|
// Get parameter 1 off the stack.
|
|
|
@@ -2358,7 +2358,7 @@ int lua_RadioButton_getTextColor(lua_State* state)
|
|
|
{
|
|
|
case 1:
|
|
|
{
|
|
|
- if ((lua_type(state, 1) == LUA_TUSERDATA || lua_type(state, 1) == LUA_TNIL))
|
|
|
+ if ((lua_type(state, 1) == LUA_TUSERDATA))
|
|
|
{
|
|
|
RadioButton* instance = getInstance(state);
|
|
|
void* returnPtr = (void*)&(instance->getTextColor());
|
|
|
@@ -2386,7 +2386,7 @@ int lua_RadioButton_getTextColor(lua_State* state)
|
|
|
}
|
|
|
case 2:
|
|
|
{
|
|
|
- if ((lua_type(state, 1) == LUA_TUSERDATA || lua_type(state, 1) == LUA_TNIL) &&
|
|
|
+ if ((lua_type(state, 1) == LUA_TUSERDATA) &&
|
|
|
(lua_type(state, 2) == LUA_TSTRING || lua_type(state, 2) == LUA_TNIL))
|
|
|
{
|
|
|
// Get parameter 1 off the stack.
|
|
|
@@ -2436,7 +2436,7 @@ int lua_RadioButton_getTextRightToLeft(lua_State* state)
|
|
|
{
|
|
|
case 1:
|
|
|
{
|
|
|
- if ((lua_type(state, 1) == LUA_TUSERDATA || lua_type(state, 1) == LUA_TNIL))
|
|
|
+ if ((lua_type(state, 1) == LUA_TUSERDATA))
|
|
|
{
|
|
|
RadioButton* instance = getInstance(state);
|
|
|
bool result = instance->getTextRightToLeft();
|
|
|
@@ -2455,7 +2455,7 @@ int lua_RadioButton_getTextRightToLeft(lua_State* state)
|
|
|
}
|
|
|
case 2:
|
|
|
{
|
|
|
- if ((lua_type(state, 1) == LUA_TUSERDATA || lua_type(state, 1) == LUA_TNIL) &&
|
|
|
+ if ((lua_type(state, 1) == LUA_TUSERDATA) &&
|
|
|
(lua_type(state, 2) == LUA_TSTRING || lua_type(state, 2) == LUA_TNIL))
|
|
|
{
|
|
|
// Get parameter 1 off the stack.
|
|
|
@@ -2496,7 +2496,7 @@ int lua_RadioButton_getType(lua_State* state)
|
|
|
{
|
|
|
case 1:
|
|
|
{
|
|
|
- if ((lua_type(state, 1) == LUA_TUSERDATA || lua_type(state, 1) == LUA_TNIL))
|
|
|
+ if ((lua_type(state, 1) == LUA_TUSERDATA))
|
|
|
{
|
|
|
RadioButton* instance = getInstance(state);
|
|
|
const char* result = instance->getType();
|
|
|
@@ -2533,7 +2533,7 @@ int lua_RadioButton_getWidth(lua_State* state)
|
|
|
{
|
|
|
case 1:
|
|
|
{
|
|
|
- if ((lua_type(state, 1) == LUA_TUSERDATA || lua_type(state, 1) == LUA_TNIL))
|
|
|
+ if ((lua_type(state, 1) == LUA_TUSERDATA))
|
|
|
{
|
|
|
RadioButton* instance = getInstance(state);
|
|
|
float result = instance->getWidth();
|
|
|
@@ -2570,7 +2570,7 @@ int lua_RadioButton_getX(lua_State* state)
|
|
|
{
|
|
|
case 1:
|
|
|
{
|
|
|
- if ((lua_type(state, 1) == LUA_TUSERDATA || lua_type(state, 1) == LUA_TNIL))
|
|
|
+ if ((lua_type(state, 1) == LUA_TUSERDATA))
|
|
|
{
|
|
|
RadioButton* instance = getInstance(state);
|
|
|
float result = instance->getX();
|
|
|
@@ -2607,7 +2607,7 @@ int lua_RadioButton_getY(lua_State* state)
|
|
|
{
|
|
|
case 1:
|
|
|
{
|
|
|
- if ((lua_type(state, 1) == LUA_TUSERDATA || lua_type(state, 1) == LUA_TNIL))
|
|
|
+ if ((lua_type(state, 1) == LUA_TUSERDATA))
|
|
|
{
|
|
|
RadioButton* instance = getInstance(state);
|
|
|
float result = instance->getY();
|
|
|
@@ -2644,7 +2644,7 @@ int lua_RadioButton_getZIndex(lua_State* state)
|
|
|
{
|
|
|
case 1:
|
|
|
{
|
|
|
- if ((lua_type(state, 1) == LUA_TUSERDATA || lua_type(state, 1) == LUA_TNIL))
|
|
|
+ if ((lua_type(state, 1) == LUA_TUSERDATA))
|
|
|
{
|
|
|
RadioButton* instance = getInstance(state);
|
|
|
int result = instance->getZIndex();
|
|
|
@@ -2681,7 +2681,7 @@ int lua_RadioButton_isContainer(lua_State* state)
|
|
|
{
|
|
|
case 1:
|
|
|
{
|
|
|
- if ((lua_type(state, 1) == LUA_TUSERDATA || lua_type(state, 1) == LUA_TNIL))
|
|
|
+ if ((lua_type(state, 1) == LUA_TUSERDATA))
|
|
|
{
|
|
|
RadioButton* instance = getInstance(state);
|
|
|
bool result = instance->isContainer();
|
|
|
@@ -2718,7 +2718,7 @@ int lua_RadioButton_isEnabled(lua_State* state)
|
|
|
{
|
|
|
case 1:
|
|
|
{
|
|
|
- if ((lua_type(state, 1) == LUA_TUSERDATA || lua_type(state, 1) == LUA_TNIL))
|
|
|
+ if ((lua_type(state, 1) == LUA_TUSERDATA))
|
|
|
{
|
|
|
RadioButton* instance = getInstance(state);
|
|
|
bool result = instance->isEnabled();
|
|
|
@@ -2755,7 +2755,7 @@ int lua_RadioButton_isSelected(lua_State* state)
|
|
|
{
|
|
|
case 1:
|
|
|
{
|
|
|
- if ((lua_type(state, 1) == LUA_TUSERDATA || lua_type(state, 1) == LUA_TNIL))
|
|
|
+ if ((lua_type(state, 1) == LUA_TUSERDATA))
|
|
|
{
|
|
|
RadioButton* instance = getInstance(state);
|
|
|
bool result = instance->isSelected();
|
|
|
@@ -2792,7 +2792,7 @@ int lua_RadioButton_release(lua_State* state)
|
|
|
{
|
|
|
case 1:
|
|
|
{
|
|
|
- if ((lua_type(state, 1) == LUA_TUSERDATA || lua_type(state, 1) == LUA_TNIL))
|
|
|
+ if ((lua_type(state, 1) == LUA_TUSERDATA))
|
|
|
{
|
|
|
RadioButton* instance = getInstance(state);
|
|
|
instance->release();
|
|
|
@@ -2826,7 +2826,7 @@ int lua_RadioButton_setAlignment(lua_State* state)
|
|
|
{
|
|
|
case 2:
|
|
|
{
|
|
|
- if ((lua_type(state, 1) == LUA_TUSERDATA || lua_type(state, 1) == LUA_TNIL) &&
|
|
|
+ if ((lua_type(state, 1) == LUA_TUSERDATA) &&
|
|
|
(lua_type(state, 2) == LUA_TSTRING || lua_type(state, 2) == LUA_TNIL))
|
|
|
{
|
|
|
// Get parameter 1 off the stack.
|
|
|
@@ -2864,9 +2864,9 @@ int lua_RadioButton_setAnimationPropertyValue(lua_State* state)
|
|
|
{
|
|
|
case 3:
|
|
|
{
|
|
|
- if ((lua_type(state, 1) == LUA_TUSERDATA || lua_type(state, 1) == LUA_TNIL) &&
|
|
|
+ if ((lua_type(state, 1) == LUA_TUSERDATA) &&
|
|
|
lua_type(state, 2) == LUA_TNUMBER &&
|
|
|
- (lua_type(state, 3) == LUA_TUSERDATA || lua_type(state, 3) == LUA_TNIL))
|
|
|
+ (lua_type(state, 3) == LUA_TUSERDATA || lua_type(state, 3) == LUA_TTABLE || lua_type(state, 3) == LUA_TNIL))
|
|
|
{
|
|
|
// Get parameter 1 off the stack.
|
|
|
int param1 = (int)luaL_checkint(state, 2);
|
|
|
@@ -2888,9 +2888,9 @@ int lua_RadioButton_setAnimationPropertyValue(lua_State* state)
|
|
|
}
|
|
|
case 4:
|
|
|
{
|
|
|
- if ((lua_type(state, 1) == LUA_TUSERDATA || lua_type(state, 1) == LUA_TNIL) &&
|
|
|
+ if ((lua_type(state, 1) == LUA_TUSERDATA) &&
|
|
|
lua_type(state, 2) == LUA_TNUMBER &&
|
|
|
- (lua_type(state, 3) == LUA_TUSERDATA || lua_type(state, 3) == LUA_TNIL) &&
|
|
|
+ (lua_type(state, 3) == LUA_TUSERDATA || lua_type(state, 3) == LUA_TTABLE || lua_type(state, 3) == LUA_TNIL) &&
|
|
|
lua_type(state, 4) == LUA_TNUMBER)
|
|
|
{
|
|
|
// Get parameter 1 off the stack.
|
|
|
@@ -2934,7 +2934,7 @@ int lua_RadioButton_setAutoHeight(lua_State* state)
|
|
|
{
|
|
|
case 2:
|
|
|
{
|
|
|
- if ((lua_type(state, 1) == LUA_TUSERDATA || lua_type(state, 1) == LUA_TNIL) &&
|
|
|
+ if ((lua_type(state, 1) == LUA_TUSERDATA) &&
|
|
|
lua_type(state, 2) == LUA_TBOOLEAN)
|
|
|
{
|
|
|
// Get parameter 1 off the stack.
|
|
|
@@ -2972,7 +2972,7 @@ int lua_RadioButton_setAutoWidth(lua_State* state)
|
|
|
{
|
|
|
case 2:
|
|
|
{
|
|
|
- if ((lua_type(state, 1) == LUA_TUSERDATA || lua_type(state, 1) == LUA_TNIL) &&
|
|
|
+ if ((lua_type(state, 1) == LUA_TUSERDATA) &&
|
|
|
lua_type(state, 2) == LUA_TBOOLEAN)
|
|
|
{
|
|
|
// Get parameter 1 off the stack.
|
|
|
@@ -3010,7 +3010,7 @@ int lua_RadioButton_setBorder(lua_State* state)
|
|
|
{
|
|
|
case 5:
|
|
|
{
|
|
|
- if ((lua_type(state, 1) == LUA_TUSERDATA || lua_type(state, 1) == LUA_TNIL) &&
|
|
|
+ if ((lua_type(state, 1) == LUA_TUSERDATA) &&
|
|
|
lua_type(state, 2) == LUA_TNUMBER &&
|
|
|
lua_type(state, 3) == LUA_TNUMBER &&
|
|
|
lua_type(state, 4) == LUA_TNUMBER &&
|
|
|
@@ -3042,7 +3042,7 @@ int lua_RadioButton_setBorder(lua_State* state)
|
|
|
}
|
|
|
case 6:
|
|
|
{
|
|
|
- if ((lua_type(state, 1) == LUA_TUSERDATA || lua_type(state, 1) == LUA_TNIL) &&
|
|
|
+ if ((lua_type(state, 1) == LUA_TUSERDATA) &&
|
|
|
lua_type(state, 2) == LUA_TNUMBER &&
|
|
|
lua_type(state, 3) == LUA_TNUMBER &&
|
|
|
lua_type(state, 4) == LUA_TNUMBER &&
|
|
|
@@ -3096,7 +3096,7 @@ int lua_RadioButton_setBounds(lua_State* state)
|
|
|
{
|
|
|
case 2:
|
|
|
{
|
|
|
- if ((lua_type(state, 1) == LUA_TUSERDATA || lua_type(state, 1) == LUA_TNIL) &&
|
|
|
+ if ((lua_type(state, 1) == LUA_TUSERDATA) &&
|
|
|
(lua_type(state, 2) == LUA_TUSERDATA || lua_type(state, 2) == LUA_TNIL))
|
|
|
{
|
|
|
// Get parameter 1 off the stack.
|
|
|
@@ -3134,7 +3134,7 @@ int lua_RadioButton_setConsumeInputEvents(lua_State* state)
|
|
|
{
|
|
|
case 2:
|
|
|
{
|
|
|
- if ((lua_type(state, 1) == LUA_TUSERDATA || lua_type(state, 1) == LUA_TNIL) &&
|
|
|
+ if ((lua_type(state, 1) == LUA_TUSERDATA) &&
|
|
|
lua_type(state, 2) == LUA_TBOOLEAN)
|
|
|
{
|
|
|
// Get parameter 1 off the stack.
|
|
|
@@ -3172,7 +3172,7 @@ int lua_RadioButton_setCursorColor(lua_State* state)
|
|
|
{
|
|
|
case 3:
|
|
|
{
|
|
|
- if ((lua_type(state, 1) == LUA_TUSERDATA || lua_type(state, 1) == LUA_TNIL) &&
|
|
|
+ if ((lua_type(state, 1) == LUA_TUSERDATA) &&
|
|
|
(lua_type(state, 2) == LUA_TUSERDATA || lua_type(state, 2) == LUA_TNIL) &&
|
|
|
lua_type(state, 3) == LUA_TNUMBER)
|
|
|
{
|
|
|
@@ -3214,7 +3214,7 @@ int lua_RadioButton_setCursorRegion(lua_State* state)
|
|
|
{
|
|
|
case 3:
|
|
|
{
|
|
|
- if ((lua_type(state, 1) == LUA_TUSERDATA || lua_type(state, 1) == LUA_TNIL) &&
|
|
|
+ if ((lua_type(state, 1) == LUA_TUSERDATA) &&
|
|
|
(lua_type(state, 2) == LUA_TUSERDATA || lua_type(state, 2) == LUA_TNIL) &&
|
|
|
lua_type(state, 3) == LUA_TNUMBER)
|
|
|
{
|
|
|
@@ -3256,7 +3256,7 @@ int lua_RadioButton_setFocusIndex(lua_State* state)
|
|
|
{
|
|
|
case 2:
|
|
|
{
|
|
|
- if ((lua_type(state, 1) == LUA_TUSERDATA || lua_type(state, 1) == LUA_TNIL) &&
|
|
|
+ if ((lua_type(state, 1) == LUA_TUSERDATA) &&
|
|
|
lua_type(state, 2) == LUA_TNUMBER)
|
|
|
{
|
|
|
// Get parameter 1 off the stack.
|
|
|
@@ -3294,8 +3294,8 @@ int lua_RadioButton_setFont(lua_State* state)
|
|
|
{
|
|
|
case 2:
|
|
|
{
|
|
|
- if ((lua_type(state, 1) == LUA_TUSERDATA || lua_type(state, 1) == LUA_TNIL) &&
|
|
|
- (lua_type(state, 2) == LUA_TUSERDATA || lua_type(state, 2) == LUA_TNIL))
|
|
|
+ if ((lua_type(state, 1) == LUA_TUSERDATA) &&
|
|
|
+ (lua_type(state, 2) == LUA_TUSERDATA || lua_type(state, 2) == LUA_TTABLE || lua_type(state, 2) == LUA_TNIL))
|
|
|
{
|
|
|
// Get parameter 1 off the stack.
|
|
|
Font* param1 = ScriptController::getInstance()->getObjectPointer<Font>(2, "Font", false);
|
|
|
@@ -3314,8 +3314,8 @@ int lua_RadioButton_setFont(lua_State* state)
|
|
|
}
|
|
|
case 3:
|
|
|
{
|
|
|
- if ((lua_type(state, 1) == LUA_TUSERDATA || lua_type(state, 1) == LUA_TNIL) &&
|
|
|
- (lua_type(state, 2) == LUA_TUSERDATA || lua_type(state, 2) == LUA_TNIL) &&
|
|
|
+ if ((lua_type(state, 1) == LUA_TUSERDATA) &&
|
|
|
+ (lua_type(state, 2) == LUA_TUSERDATA || lua_type(state, 2) == LUA_TTABLE || lua_type(state, 2) == LUA_TNIL) &&
|
|
|
lua_type(state, 3) == LUA_TNUMBER)
|
|
|
{
|
|
|
// Get parameter 1 off the stack.
|
|
|
@@ -3356,7 +3356,7 @@ int lua_RadioButton_setFontSize(lua_State* state)
|
|
|
{
|
|
|
case 2:
|
|
|
{
|
|
|
- if ((lua_type(state, 1) == LUA_TUSERDATA || lua_type(state, 1) == LUA_TNIL) &&
|
|
|
+ if ((lua_type(state, 1) == LUA_TUSERDATA) &&
|
|
|
lua_type(state, 2) == LUA_TNUMBER)
|
|
|
{
|
|
|
// Get parameter 1 off the stack.
|
|
|
@@ -3376,7 +3376,7 @@ int lua_RadioButton_setFontSize(lua_State* state)
|
|
|
}
|
|
|
case 3:
|
|
|
{
|
|
|
- if ((lua_type(state, 1) == LUA_TUSERDATA || lua_type(state, 1) == LUA_TNIL) &&
|
|
|
+ if ((lua_type(state, 1) == LUA_TUSERDATA) &&
|
|
|
lua_type(state, 2) == LUA_TNUMBER &&
|
|
|
lua_type(state, 3) == LUA_TNUMBER)
|
|
|
{
|
|
|
@@ -3418,7 +3418,7 @@ int lua_RadioButton_setImageColor(lua_State* state)
|
|
|
{
|
|
|
case 3:
|
|
|
{
|
|
|
- if ((lua_type(state, 1) == LUA_TUSERDATA || lua_type(state, 1) == LUA_TNIL) &&
|
|
|
+ if ((lua_type(state, 1) == LUA_TUSERDATA) &&
|
|
|
(lua_type(state, 2) == LUA_TSTRING || lua_type(state, 2) == LUA_TNIL) &&
|
|
|
(lua_type(state, 3) == LUA_TUSERDATA || lua_type(state, 3) == LUA_TNIL))
|
|
|
{
|
|
|
@@ -3442,7 +3442,7 @@ int lua_RadioButton_setImageColor(lua_State* state)
|
|
|
}
|
|
|
case 4:
|
|
|
{
|
|
|
- if ((lua_type(state, 1) == LUA_TUSERDATA || lua_type(state, 1) == LUA_TNIL) &&
|
|
|
+ if ((lua_type(state, 1) == LUA_TUSERDATA) &&
|
|
|
(lua_type(state, 2) == LUA_TSTRING || lua_type(state, 2) == LUA_TNIL) &&
|
|
|
(lua_type(state, 3) == LUA_TUSERDATA || lua_type(state, 3) == LUA_TNIL) &&
|
|
|
lua_type(state, 4) == LUA_TNUMBER)
|
|
|
@@ -3488,7 +3488,7 @@ int lua_RadioButton_setImageRegion(lua_State* state)
|
|
|
{
|
|
|
case 3:
|
|
|
{
|
|
|
- if ((lua_type(state, 1) == LUA_TUSERDATA || lua_type(state, 1) == LUA_TNIL) &&
|
|
|
+ if ((lua_type(state, 1) == LUA_TUSERDATA) &&
|
|
|
(lua_type(state, 2) == LUA_TSTRING || lua_type(state, 2) == LUA_TNIL) &&
|
|
|
(lua_type(state, 3) == LUA_TUSERDATA || lua_type(state, 3) == LUA_TNIL))
|
|
|
{
|
|
|
@@ -3512,7 +3512,7 @@ int lua_RadioButton_setImageRegion(lua_State* state)
|
|
|
}
|
|
|
case 4:
|
|
|
{
|
|
|
- if ((lua_type(state, 1) == LUA_TUSERDATA || lua_type(state, 1) == LUA_TNIL) &&
|
|
|
+ if ((lua_type(state, 1) == LUA_TUSERDATA) &&
|
|
|
(lua_type(state, 2) == LUA_TSTRING || lua_type(state, 2) == LUA_TNIL) &&
|
|
|
(lua_type(state, 3) == LUA_TUSERDATA || lua_type(state, 3) == LUA_TNIL) &&
|
|
|
lua_type(state, 4) == LUA_TNUMBER)
|
|
|
@@ -3558,7 +3558,7 @@ int lua_RadioButton_setImageSize(lua_State* state)
|
|
|
{
|
|
|
case 3:
|
|
|
{
|
|
|
- if ((lua_type(state, 1) == LUA_TUSERDATA || lua_type(state, 1) == LUA_TNIL) &&
|
|
|
+ if ((lua_type(state, 1) == LUA_TUSERDATA) &&
|
|
|
lua_type(state, 2) == LUA_TNUMBER &&
|
|
|
lua_type(state, 3) == LUA_TNUMBER)
|
|
|
{
|
|
|
@@ -3600,7 +3600,7 @@ int lua_RadioButton_setMargin(lua_State* state)
|
|
|
{
|
|
|
case 5:
|
|
|
{
|
|
|
- if ((lua_type(state, 1) == LUA_TUSERDATA || lua_type(state, 1) == LUA_TNIL) &&
|
|
|
+ if ((lua_type(state, 1) == LUA_TUSERDATA) &&
|
|
|
lua_type(state, 2) == LUA_TNUMBER &&
|
|
|
lua_type(state, 3) == LUA_TNUMBER &&
|
|
|
lua_type(state, 4) == LUA_TNUMBER &&
|
|
|
@@ -3650,7 +3650,7 @@ int lua_RadioButton_setOpacity(lua_State* state)
|
|
|
{
|
|
|
case 2:
|
|
|
{
|
|
|
- if ((lua_type(state, 1) == LUA_TUSERDATA || lua_type(state, 1) == LUA_TNIL) &&
|
|
|
+ if ((lua_type(state, 1) == LUA_TUSERDATA) &&
|
|
|
lua_type(state, 2) == LUA_TNUMBER)
|
|
|
{
|
|
|
// Get parameter 1 off the stack.
|
|
|
@@ -3670,7 +3670,7 @@ int lua_RadioButton_setOpacity(lua_State* state)
|
|
|
}
|
|
|
case 3:
|
|
|
{
|
|
|
- if ((lua_type(state, 1) == LUA_TUSERDATA || lua_type(state, 1) == LUA_TNIL) &&
|
|
|
+ if ((lua_type(state, 1) == LUA_TUSERDATA) &&
|
|
|
lua_type(state, 2) == LUA_TNUMBER &&
|
|
|
lua_type(state, 3) == LUA_TNUMBER)
|
|
|
{
|
|
|
@@ -3712,7 +3712,7 @@ int lua_RadioButton_setPadding(lua_State* state)
|
|
|
{
|
|
|
case 5:
|
|
|
{
|
|
|
- if ((lua_type(state, 1) == LUA_TUSERDATA || lua_type(state, 1) == LUA_TNIL) &&
|
|
|
+ if ((lua_type(state, 1) == LUA_TUSERDATA) &&
|
|
|
lua_type(state, 2) == LUA_TNUMBER &&
|
|
|
lua_type(state, 3) == LUA_TNUMBER &&
|
|
|
lua_type(state, 4) == LUA_TNUMBER &&
|
|
|
@@ -3762,7 +3762,7 @@ int lua_RadioButton_setPosition(lua_State* state)
|
|
|
{
|
|
|
case 3:
|
|
|
{
|
|
|
- if ((lua_type(state, 1) == LUA_TUSERDATA || lua_type(state, 1) == LUA_TNIL) &&
|
|
|
+ if ((lua_type(state, 1) == LUA_TUSERDATA) &&
|
|
|
lua_type(state, 2) == LUA_TNUMBER &&
|
|
|
lua_type(state, 3) == LUA_TNUMBER)
|
|
|
{
|
|
|
@@ -3804,7 +3804,7 @@ int lua_RadioButton_setSize(lua_State* state)
|
|
|
{
|
|
|
case 3:
|
|
|
{
|
|
|
- if ((lua_type(state, 1) == LUA_TUSERDATA || lua_type(state, 1) == LUA_TNIL) &&
|
|
|
+ if ((lua_type(state, 1) == LUA_TUSERDATA) &&
|
|
|
lua_type(state, 2) == LUA_TNUMBER &&
|
|
|
lua_type(state, 3) == LUA_TNUMBER)
|
|
|
{
|
|
|
@@ -3846,7 +3846,7 @@ int lua_RadioButton_setSkinColor(lua_State* state)
|
|
|
{
|
|
|
case 2:
|
|
|
{
|
|
|
- if ((lua_type(state, 1) == LUA_TUSERDATA || lua_type(state, 1) == LUA_TNIL) &&
|
|
|
+ if ((lua_type(state, 1) == LUA_TUSERDATA) &&
|
|
|
(lua_type(state, 2) == LUA_TUSERDATA || lua_type(state, 2) == LUA_TNIL))
|
|
|
{
|
|
|
// Get parameter 1 off the stack.
|
|
|
@@ -3866,7 +3866,7 @@ int lua_RadioButton_setSkinColor(lua_State* state)
|
|
|
}
|
|
|
case 3:
|
|
|
{
|
|
|
- if ((lua_type(state, 1) == LUA_TUSERDATA || lua_type(state, 1) == LUA_TNIL) &&
|
|
|
+ if ((lua_type(state, 1) == LUA_TUSERDATA) &&
|
|
|
(lua_type(state, 2) == LUA_TUSERDATA || lua_type(state, 2) == LUA_TNIL) &&
|
|
|
lua_type(state, 3) == LUA_TNUMBER)
|
|
|
{
|
|
|
@@ -3908,7 +3908,7 @@ int lua_RadioButton_setSkinRegion(lua_State* state)
|
|
|
{
|
|
|
case 2:
|
|
|
{
|
|
|
- if ((lua_type(state, 1) == LUA_TUSERDATA || lua_type(state, 1) == LUA_TNIL) &&
|
|
|
+ if ((lua_type(state, 1) == LUA_TUSERDATA) &&
|
|
|
(lua_type(state, 2) == LUA_TUSERDATA || lua_type(state, 2) == LUA_TNIL))
|
|
|
{
|
|
|
// Get parameter 1 off the stack.
|
|
|
@@ -3928,7 +3928,7 @@ int lua_RadioButton_setSkinRegion(lua_State* state)
|
|
|
}
|
|
|
case 3:
|
|
|
{
|
|
|
- if ((lua_type(state, 1) == LUA_TUSERDATA || lua_type(state, 1) == LUA_TNIL) &&
|
|
|
+ if ((lua_type(state, 1) == LUA_TUSERDATA) &&
|
|
|
(lua_type(state, 2) == LUA_TUSERDATA || lua_type(state, 2) == LUA_TNIL) &&
|
|
|
lua_type(state, 3) == LUA_TNUMBER)
|
|
|
{
|
|
|
@@ -3970,7 +3970,7 @@ int lua_RadioButton_setState(lua_State* state)
|
|
|
{
|
|
|
case 2:
|
|
|
{
|
|
|
- if ((lua_type(state, 1) == LUA_TUSERDATA || lua_type(state, 1) == LUA_TNIL) &&
|
|
|
+ if ((lua_type(state, 1) == LUA_TUSERDATA) &&
|
|
|
(lua_type(state, 2) == LUA_TSTRING || lua_type(state, 2) == LUA_TNIL))
|
|
|
{
|
|
|
// Get parameter 1 off the stack.
|
|
|
@@ -4008,8 +4008,8 @@ int lua_RadioButton_setStyle(lua_State* state)
|
|
|
{
|
|
|
case 2:
|
|
|
{
|
|
|
- if ((lua_type(state, 1) == LUA_TUSERDATA || lua_type(state, 1) == LUA_TNIL) &&
|
|
|
- (lua_type(state, 2) == LUA_TUSERDATA || lua_type(state, 2) == LUA_TNIL))
|
|
|
+ if ((lua_type(state, 1) == LUA_TUSERDATA) &&
|
|
|
+ (lua_type(state, 2) == LUA_TUSERDATA || lua_type(state, 2) == LUA_TTABLE || lua_type(state, 2) == LUA_TNIL))
|
|
|
{
|
|
|
// Get parameter 1 off the stack.
|
|
|
Theme::Style* param1 = ScriptController::getInstance()->getObjectPointer<Theme::Style>(2, "ThemeStyle", false);
|
|
|
@@ -4046,7 +4046,7 @@ int lua_RadioButton_setText(lua_State* state)
|
|
|
{
|
|
|
case 2:
|
|
|
{
|
|
|
- if ((lua_type(state, 1) == LUA_TUSERDATA || lua_type(state, 1) == LUA_TNIL) &&
|
|
|
+ if ((lua_type(state, 1) == LUA_TUSERDATA) &&
|
|
|
(lua_type(state, 2) == LUA_TSTRING || lua_type(state, 2) == LUA_TNIL))
|
|
|
{
|
|
|
// Get parameter 1 off the stack.
|
|
|
@@ -4084,7 +4084,7 @@ int lua_RadioButton_setTextAlignment(lua_State* state)
|
|
|
{
|
|
|
case 2:
|
|
|
{
|
|
|
- if ((lua_type(state, 1) == LUA_TUSERDATA || lua_type(state, 1) == LUA_TNIL) &&
|
|
|
+ if ((lua_type(state, 1) == LUA_TUSERDATA) &&
|
|
|
(lua_type(state, 2) == LUA_TSTRING || lua_type(state, 2) == LUA_TNIL))
|
|
|
{
|
|
|
// Get parameter 1 off the stack.
|
|
|
@@ -4104,7 +4104,7 @@ int lua_RadioButton_setTextAlignment(lua_State* state)
|
|
|
}
|
|
|
case 3:
|
|
|
{
|
|
|
- if ((lua_type(state, 1) == LUA_TUSERDATA || lua_type(state, 1) == LUA_TNIL) &&
|
|
|
+ if ((lua_type(state, 1) == LUA_TUSERDATA) &&
|
|
|
(lua_type(state, 2) == LUA_TSTRING || lua_type(state, 2) == LUA_TNIL) &&
|
|
|
lua_type(state, 3) == LUA_TNUMBER)
|
|
|
{
|
|
|
@@ -4146,7 +4146,7 @@ int lua_RadioButton_setTextColor(lua_State* state)
|
|
|
{
|
|
|
case 2:
|
|
|
{
|
|
|
- if ((lua_type(state, 1) == LUA_TUSERDATA || lua_type(state, 1) == LUA_TNIL) &&
|
|
|
+ if ((lua_type(state, 1) == LUA_TUSERDATA) &&
|
|
|
(lua_type(state, 2) == LUA_TUSERDATA || lua_type(state, 2) == LUA_TNIL))
|
|
|
{
|
|
|
// Get parameter 1 off the stack.
|
|
|
@@ -4166,7 +4166,7 @@ int lua_RadioButton_setTextColor(lua_State* state)
|
|
|
}
|
|
|
case 3:
|
|
|
{
|
|
|
- if ((lua_type(state, 1) == LUA_TUSERDATA || lua_type(state, 1) == LUA_TNIL) &&
|
|
|
+ if ((lua_type(state, 1) == LUA_TUSERDATA) &&
|
|
|
(lua_type(state, 2) == LUA_TUSERDATA || lua_type(state, 2) == LUA_TNIL) &&
|
|
|
lua_type(state, 3) == LUA_TNUMBER)
|
|
|
{
|
|
|
@@ -4208,7 +4208,7 @@ int lua_RadioButton_setTextRightToLeft(lua_State* state)
|
|
|
{
|
|
|
case 2:
|
|
|
{
|
|
|
- if ((lua_type(state, 1) == LUA_TUSERDATA || lua_type(state, 1) == LUA_TNIL) &&
|
|
|
+ if ((lua_type(state, 1) == LUA_TUSERDATA) &&
|
|
|
lua_type(state, 2) == LUA_TBOOLEAN)
|
|
|
{
|
|
|
// Get parameter 1 off the stack.
|
|
|
@@ -4228,7 +4228,7 @@ int lua_RadioButton_setTextRightToLeft(lua_State* state)
|
|
|
}
|
|
|
case 3:
|
|
|
{
|
|
|
- if ((lua_type(state, 1) == LUA_TUSERDATA || lua_type(state, 1) == LUA_TNIL) &&
|
|
|
+ if ((lua_type(state, 1) == LUA_TUSERDATA) &&
|
|
|
lua_type(state, 2) == LUA_TBOOLEAN &&
|
|
|
lua_type(state, 3) == LUA_TNUMBER)
|
|
|
{
|
|
|
@@ -4270,7 +4270,7 @@ int lua_RadioButton_setZIndex(lua_State* state)
|
|
|
{
|
|
|
case 2:
|
|
|
{
|
|
|
- if ((lua_type(state, 1) == LUA_TUSERDATA || lua_type(state, 1) == LUA_TNIL) &&
|
|
|
+ if ((lua_type(state, 1) == LUA_TUSERDATA) &&
|
|
|
lua_type(state, 2) == LUA_TNUMBER)
|
|
|
{
|
|
|
// Get parameter 1 off the stack.
|
|
|
@@ -4428,7 +4428,7 @@ int lua_RadioButton_static_create(lua_State* state)
|
|
|
case 2:
|
|
|
{
|
|
|
if ((lua_type(state, 1) == LUA_TSTRING || lua_type(state, 1) == LUA_TNIL) &&
|
|
|
- (lua_type(state, 2) == LUA_TUSERDATA || lua_type(state, 2) == LUA_TNIL))
|
|
|
+ (lua_type(state, 2) == LUA_TUSERDATA || lua_type(state, 2) == LUA_TTABLE || lua_type(state, 2) == LUA_TNIL))
|
|
|
{
|
|
|
// Get parameter 1 off the stack.
|
|
|
const char* param1 = ScriptController::getInstance()->getString(1, false);
|