mirror of https://github.com/axmolengine/axmol.git
[ci skip][AUTO]: updating luabinding & jsbinding automatically
This commit is contained in:
parent
2df2e71fc9
commit
4f0869e51e
|
@ -3910,6 +3910,16 @@ bool
|
|||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method setPNGPremultipliedAlphaEnabled
|
||||
* @param {bool} arg0
|
||||
*/
|
||||
setPNGPremultipliedAlphaEnabled : function (
|
||||
bool
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method Image
|
||||
* @constructor
|
||||
|
|
|
@ -86,6 +86,16 @@ str
|
|||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method setBounces
|
||||
* @param {bool} arg0
|
||||
*/
|
||||
setBounces : function (
|
||||
bool
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method evaluateJS
|
||||
* @param {String} arg0
|
||||
|
|
|
@ -232,6 +232,16 @@ char
|
|||
return ccs.ActionObject;
|
||||
},
|
||||
|
||||
/**
|
||||
* @method getStudioVersionNumber
|
||||
* @return {int}
|
||||
*/
|
||||
getStudioVersionNumber : function (
|
||||
)
|
||||
{
|
||||
return 0;
|
||||
},
|
||||
|
||||
/**
|
||||
* @method initWithBinary
|
||||
* @param {char} arg0
|
||||
|
|
|
@ -5029,6 +5029,14 @@ int
|
|||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method removeAllPages
|
||||
*/
|
||||
removeAllPages : function (
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method setAutoScrollStopEpsilon
|
||||
* @param {float} arg0
|
||||
|
@ -5039,6 +5047,16 @@ float
|
|||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method setIndicatorIndexNodesScale
|
||||
* @param {float} arg0
|
||||
*/
|
||||
setIndicatorIndexNodesScale : function (
|
||||
float
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method setIndicatorEnabled
|
||||
* @param {bool} arg0
|
||||
|
@ -5089,6 +5107,16 @@ long
|
|||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method getIndicatorIndexNodesColor
|
||||
* @return {color3b_object}
|
||||
*/
|
||||
getIndicatorIndexNodesColor : function (
|
||||
)
|
||||
{
|
||||
return cc.Color3B;
|
||||
},
|
||||
|
||||
/**
|
||||
* @method getIndicatorSelectedIndexColor
|
||||
* @return {color3b_object}
|
||||
|
@ -5099,6 +5127,16 @@ getIndicatorSelectedIndexColor : function (
|
|||
return cc.Color3B;
|
||||
},
|
||||
|
||||
/**
|
||||
* @method getIndicatorIndexNodesScale
|
||||
* @return {float}
|
||||
*/
|
||||
getIndicatorIndexNodesScale : function (
|
||||
)
|
||||
{
|
||||
return 0;
|
||||
},
|
||||
|
||||
/**
|
||||
* @method setIndicatorPosition
|
||||
* @param {vec2_object} arg0
|
||||
|
@ -5140,9 +5178,11 @@ long
|
|||
},
|
||||
|
||||
/**
|
||||
* @method removeAllPages
|
||||
* @method setIndicatorIndexNodesColor
|
||||
* @param {color3b_object} arg0
|
||||
*/
|
||||
removeAllPages : function (
|
||||
setIndicatorIndexNodesColor : function (
|
||||
color3b
|
||||
)
|
||||
{
|
||||
},
|
||||
|
@ -5177,6 +5217,18 @@ widget
|
|||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method setIndicatorIndexNodesTexture
|
||||
* @param {String} arg0
|
||||
* @param {ccui.Widget::TextureResType} arg1
|
||||
*/
|
||||
setIndicatorIndexNodesTexture : function (
|
||||
str,
|
||||
texturerestype
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method getIndicatorEnabled
|
||||
* @return {bool}
|
||||
|
|
|
@ -250,7 +250,7 @@ bool js_cocos2dx_3d_Animate3D_setWeight(JSContext *cx, uint32_t argc, jsval *vp)
|
|||
JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_3d_Animate3D_setWeight : Invalid Native Object");
|
||||
if (argc == 1) {
|
||||
double arg0 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_3d_Animate3D_setWeight : Error processing arguments");
|
||||
cobj->setWeight(arg0);
|
||||
args.rval().setUndefined();
|
||||
|
@ -300,7 +300,7 @@ bool js_cocos2dx_3d_Animate3D_initWithFrames(JSContext *cx, uint32_t argc, jsval
|
|||
} while (0);
|
||||
ok &= jsval_to_int32(cx, args.get(1), (int32_t *)&arg1);
|
||||
ok &= jsval_to_int32(cx, args.get(2), (int32_t *)&arg2);
|
||||
ok &= JS::ToNumber( cx, args.get(3), &arg3) && !isnan(arg3);
|
||||
ok &= JS::ToNumber( cx, args.get(3), &arg3) && !std::isnan(arg3);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_3d_Animate3D_initWithFrames : Error processing arguments");
|
||||
bool ret = cobj->initWithFrames(arg0, arg1, arg2, arg3);
|
||||
jsval jsret = JSVAL_NULL;
|
||||
|
@ -340,7 +340,7 @@ bool js_cocos2dx_3d_Animate3D_setSpeed(JSContext *cx, uint32_t argc, jsval *vp)
|
|||
JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_3d_Animate3D_setSpeed : Invalid Native Object");
|
||||
if (argc == 1) {
|
||||
double arg0 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_3d_Animate3D_setSpeed : Error processing arguments");
|
||||
cobj->setSpeed(arg0);
|
||||
args.rval().setUndefined();
|
||||
|
@ -375,10 +375,10 @@ bool js_cocos2dx_3d_Animate3D_init(JSContext *cx, uint32_t argc, jsval *vp)
|
|||
} while (0);
|
||||
if (!ok) { ok = true; break; }
|
||||
double arg1 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(1), &arg1) && !isnan(arg1);
|
||||
ok &= JS::ToNumber( cx, args.get(1), &arg1) && !std::isnan(arg1);
|
||||
if (!ok) { ok = true; break; }
|
||||
double arg2 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(2), &arg2) && !isnan(arg2);
|
||||
ok &= JS::ToNumber( cx, args.get(2), &arg2) && !std::isnan(arg2);
|
||||
if (!ok) { ok = true; break; }
|
||||
bool ret = cobj->init(arg0, arg1, arg2);
|
||||
jsval jsret = JSVAL_NULL;
|
||||
|
@ -422,7 +422,7 @@ bool js_cocos2dx_3d_Animate3D_setOriginInterval(JSContext *cx, uint32_t argc, js
|
|||
JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_3d_Animate3D_setOriginInterval : Invalid Native Object");
|
||||
if (argc == 1) {
|
||||
double arg0 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_3d_Animate3D_setOriginInterval : Error processing arguments");
|
||||
cobj->setOriginInterval(arg0);
|
||||
args.rval().setUndefined();
|
||||
|
@ -487,10 +487,10 @@ bool js_cocos2dx_3d_Animate3D_create(JSContext *cx, uint32_t argc, jsval *vp)
|
|||
} while (0);
|
||||
if (!ok) { ok = true; break; }
|
||||
double arg1 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(1), &arg1) && !isnan(arg1);
|
||||
ok &= JS::ToNumber( cx, args.get(1), &arg1) && !std::isnan(arg1);
|
||||
if (!ok) { ok = true; break; }
|
||||
double arg2 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(2), &arg2) && !isnan(arg2);
|
||||
ok &= JS::ToNumber( cx, args.get(2), &arg2) && !std::isnan(arg2);
|
||||
if (!ok) { ok = true; break; }
|
||||
cocos2d::Animate3D* ret = cocos2d::Animate3D::create(arg0, arg1, arg2);
|
||||
jsval jsret = JSVAL_NULL;
|
||||
|
@ -589,7 +589,7 @@ bool js_cocos2dx_3d_Animate3D_createWithFrames(JSContext *cx, uint32_t argc, jsv
|
|||
} while (0);
|
||||
ok &= jsval_to_int32(cx, args.get(1), (int32_t *)&arg1);
|
||||
ok &= jsval_to_int32(cx, args.get(2), (int32_t *)&arg2);
|
||||
ok &= JS::ToNumber( cx, args.get(3), &arg3) && !isnan(arg3);
|
||||
ok &= JS::ToNumber( cx, args.get(3), &arg3) && !std::isnan(arg3);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_3d_Animate3D_createWithFrames : Error processing arguments");
|
||||
|
||||
auto ret = cocos2d::Animate3D::createWithFrames(arg0, arg1, arg2, arg3);
|
||||
|
@ -608,7 +608,7 @@ bool js_cocos2dx_3d_Animate3D_setTransitionTime(JSContext *cx, uint32_t argc, js
|
|||
bool ok = true;
|
||||
if (argc == 1) {
|
||||
double arg0 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_3d_Animate3D_setTransitionTime : Error processing arguments");
|
||||
cocos2d::Animate3D::setTransitionTime(arg0);
|
||||
args.rval().setUndefined();
|
||||
|
@ -3497,7 +3497,7 @@ bool js_cocos2dx_3d_Terrain_setSkirtHeightRatio(JSContext *cx, uint32_t argc, js
|
|||
JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_3d_Terrain_setSkirtHeightRatio : Invalid Native Object");
|
||||
if (argc == 1) {
|
||||
double arg0 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_3d_Terrain_setSkirtHeightRatio : Error processing arguments");
|
||||
cobj->setSkirtHeightRatio(arg0);
|
||||
args.rval().setUndefined();
|
||||
|
@ -3616,10 +3616,10 @@ bool js_cocos2dx_3d_Terrain_getHeight(JSContext *cx, uint32_t argc, jsval *vp)
|
|||
do {
|
||||
if (argc == 2) {
|
||||
double arg0 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
if (!ok) { ok = true; break; }
|
||||
double arg1 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(1), &arg1) && !isnan(arg1);
|
||||
ok &= JS::ToNumber( cx, args.get(1), &arg1) && !std::isnan(arg1);
|
||||
if (!ok) { ok = true; break; }
|
||||
double ret = cobj->getHeight(arg0, arg1);
|
||||
jsval jsret = JSVAL_NULL;
|
||||
|
@ -3632,10 +3632,10 @@ bool js_cocos2dx_3d_Terrain_getHeight(JSContext *cx, uint32_t argc, jsval *vp)
|
|||
do {
|
||||
if (argc == 3) {
|
||||
double arg0 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
if (!ok) { ok = true; break; }
|
||||
double arg1 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(1), &arg1) && !isnan(arg1);
|
||||
ok &= JS::ToNumber( cx, args.get(1), &arg1) && !std::isnan(arg1);
|
||||
if (!ok) { ok = true; break; }
|
||||
cocos2d::Vec3* arg2 = nullptr;
|
||||
do {
|
||||
|
@ -3695,9 +3695,9 @@ bool js_cocos2dx_3d_Terrain_setLODDistance(JSContext *cx, uint32_t argc, jsval *
|
|||
double arg0 = 0;
|
||||
double arg1 = 0;
|
||||
double arg2 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(1), &arg1) && !isnan(arg1);
|
||||
ok &= JS::ToNumber( cx, args.get(2), &arg2) && !isnan(arg2);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(1), &arg1) && !std::isnan(arg1);
|
||||
ok &= JS::ToNumber( cx, args.get(2), &arg2) && !std::isnan(arg2);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_3d_Terrain_setLODDistance : Error processing arguments");
|
||||
cobj->setLODDistance(arg0, arg1, arg2);
|
||||
args.rval().setUndefined();
|
||||
|
|
|
@ -573,7 +573,7 @@ bool js_cocos2dx_3d_extension_PUParticleSystem3D_forceUpdate(JSContext *cx, uint
|
|||
JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_3d_extension_PUParticleSystem3D_forceUpdate : Invalid Native Object");
|
||||
if (argc == 1) {
|
||||
double arg0 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_3d_extension_PUParticleSystem3D_forceUpdate : Error processing arguments");
|
||||
cobj->forceUpdate(arg0);
|
||||
args.rval().setUndefined();
|
||||
|
@ -727,7 +727,7 @@ bool js_cocos2dx_3d_extension_PUParticleSystem3D_setDefaultWidth(JSContext *cx,
|
|||
JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_3d_extension_PUParticleSystem3D_setDefaultWidth : Invalid Native Object");
|
||||
if (argc == 1) {
|
||||
double arg0 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_3d_extension_PUParticleSystem3D_setDefaultWidth : Error processing arguments");
|
||||
cobj->setDefaultWidth(arg0);
|
||||
args.rval().setUndefined();
|
||||
|
@ -817,7 +817,7 @@ bool js_cocos2dx_3d_extension_PUParticleSystem3D_setMaxVelocity(JSContext *cx, u
|
|||
JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_3d_extension_PUParticleSystem3D_setMaxVelocity : Invalid Native Object");
|
||||
if (argc == 1) {
|
||||
double arg0 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_3d_extension_PUParticleSystem3D_setMaxVelocity : Error processing arguments");
|
||||
cobj->setMaxVelocity(arg0);
|
||||
args.rval().setUndefined();
|
||||
|
@ -927,7 +927,7 @@ bool js_cocos2dx_3d_extension_PUParticleSystem3D_setParticleSystemScaleVelocity(
|
|||
JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_3d_extension_PUParticleSystem3D_setParticleSystemScaleVelocity : Invalid Native Object");
|
||||
if (argc == 1) {
|
||||
double arg0 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_3d_extension_PUParticleSystem3D_setParticleSystemScaleVelocity : Error processing arguments");
|
||||
cobj->setParticleSystemScaleVelocity(arg0);
|
||||
args.rval().setUndefined();
|
||||
|
@ -965,7 +965,7 @@ bool js_cocos2dx_3d_extension_PUParticleSystem3D_setDefaultHeight(JSContext *cx,
|
|||
JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_3d_extension_PUParticleSystem3D_setDefaultHeight : Invalid Native Object");
|
||||
if (argc == 1) {
|
||||
double arg0 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_3d_extension_PUParticleSystem3D_setDefaultHeight : Error processing arguments");
|
||||
cobj->setDefaultHeight(arg0);
|
||||
args.rval().setUndefined();
|
||||
|
@ -1023,7 +1023,7 @@ bool js_cocos2dx_3d_extension_PUParticleSystem3D_setDefaultDepth(JSContext *cx,
|
|||
JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_3d_extension_PUParticleSystem3D_setDefaultDepth : Invalid Native Object");
|
||||
if (argc == 1) {
|
||||
double arg0 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_3d_extension_PUParticleSystem3D_setDefaultDepth : Error processing arguments");
|
||||
cobj->setDefaultDepth(arg0);
|
||||
args.rval().setUndefined();
|
||||
|
|
|
@ -99,7 +99,7 @@ bool js_cocos2dx_audioengine_AudioProfile_set_minDelay(JSContext *cx, uint32_t a
|
|||
|
||||
bool ok = true;
|
||||
double arg0 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_audioengine_AudioProfile_set_minDelay : Error processing new value");
|
||||
cobj->minDelay = arg0;
|
||||
return true;
|
||||
|
@ -211,7 +211,7 @@ bool js_cocos2dx_audioengine_AudioEngine_setCurrentTime(JSContext *cx, uint32_t
|
|||
int arg0 = 0;
|
||||
double arg1 = 0;
|
||||
ok &= jsval_to_int32(cx, args.get(0), (int32_t *)&arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(1), &arg1) && !isnan(arg1);
|
||||
ok &= JS::ToNumber( cx, args.get(1), &arg1) && !std::isnan(arg1);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_audioengine_AudioEngine_setCurrentTime : Error processing arguments");
|
||||
|
||||
bool ret = cocos2d::experimental::AudioEngine::setCurrentTime(arg0, arg1);
|
||||
|
@ -415,7 +415,7 @@ bool js_cocos2dx_audioengine_AudioEngine_setVolume(JSContext *cx, uint32_t argc,
|
|||
int arg0 = 0;
|
||||
double arg1 = 0;
|
||||
ok &= jsval_to_int32(cx, args.get(0), (int32_t *)&arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(1), &arg1) && !isnan(arg1);
|
||||
ok &= JS::ToNumber( cx, args.get(1), &arg1) && !std::isnan(arg1);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_audioengine_AudioEngine_setVolume : Error processing arguments");
|
||||
cocos2d::experimental::AudioEngine::setVolume(arg0, arg1);
|
||||
args.rval().setUndefined();
|
||||
|
@ -511,7 +511,7 @@ bool js_cocos2dx_audioengine_AudioEngine_play2d(JSContext *cx, uint32_t argc, js
|
|||
double arg2 = 0;
|
||||
ok &= jsval_to_std_string(cx, args.get(0), &arg0);
|
||||
arg1 = JS::ToBoolean(args.get(1));
|
||||
ok &= JS::ToNumber( cx, args.get(2), &arg2) && !isnan(arg2);
|
||||
ok &= JS::ToNumber( cx, args.get(2), &arg2) && !std::isnan(arg2);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_audioengine_AudioEngine_play2d : Error processing arguments");
|
||||
|
||||
int ret = cocos2d::experimental::AudioEngine::play2d(arg0, arg1, arg2);
|
||||
|
@ -527,7 +527,7 @@ bool js_cocos2dx_audioengine_AudioEngine_play2d(JSContext *cx, uint32_t argc, js
|
|||
const cocos2d::experimental::AudioProfile* arg3 = nullptr;
|
||||
ok &= jsval_to_std_string(cx, args.get(0), &arg0);
|
||||
arg1 = JS::ToBoolean(args.get(1));
|
||||
ok &= JS::ToNumber( cx, args.get(2), &arg2) && !isnan(arg2);
|
||||
ok &= JS::ToNumber( cx, args.get(2), &arg2) && !std::isnan(arg2);
|
||||
do {
|
||||
if (args.get(3).isNull()) { arg3 = nullptr; break; }
|
||||
if (!args.get(3).isObject()) { ok = false; break; }
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -515,6 +515,7 @@ bool js_cocos2dx_Image_getData(JSContext *cx, uint32_t argc, jsval *vp);
|
|||
bool js_cocos2dx_Image_getMipmaps(JSContext *cx, uint32_t argc, jsval *vp);
|
||||
bool js_cocos2dx_Image_initWithRawData(JSContext *cx, uint32_t argc, jsval *vp);
|
||||
bool js_cocos2dx_Image_setPVRImagesHavePremultipliedAlpha(JSContext *cx, uint32_t argc, jsval *vp);
|
||||
bool js_cocos2dx_Image_setPNGPremultipliedAlphaEnabled(JSContext *cx, uint32_t argc, jsval *vp);
|
||||
bool js_cocos2dx_Image_Image(JSContext *cx, uint32_t argc, jsval *vp);
|
||||
|
||||
extern JSClass *jsb_cocos2d_GLProgramState_class;
|
||||
|
|
|
@ -240,7 +240,7 @@ bool js_cocos2dx_builder_CCBAnimationManager_runAnimationsForSequenceNamedTweenD
|
|||
const char* arg0 = nullptr;
|
||||
double arg1 = 0;
|
||||
std::string arg0_tmp; ok &= jsval_to_std_string(cx, args.get(0), &arg0_tmp); arg0 = arg0_tmp.c_str();
|
||||
ok &= JS::ToNumber( cx, args.get(1), &arg1) && !isnan(arg1);
|
||||
ok &= JS::ToNumber( cx, args.get(1), &arg1) && !std::isnan(arg1);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_builder_CCBAnimationManager_runAnimationsForSequenceNamedTweenDuration : Error processing arguments");
|
||||
cobj->runAnimationsForSequenceNamedTweenDuration(arg0, arg1);
|
||||
args.rval().setUndefined();
|
||||
|
@ -536,7 +536,7 @@ bool js_cocos2dx_builder_CCBAnimationManager_runAnimationsForSequenceIdTweenDura
|
|||
int arg0 = 0;
|
||||
double arg1 = 0;
|
||||
ok &= jsval_to_int32(cx, args.get(0), (int32_t *)&arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(1), &arg1) && !isnan(arg1);
|
||||
ok &= JS::ToNumber( cx, args.get(1), &arg1) && !std::isnan(arg1);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_builder_CCBAnimationManager_runAnimationsForSequenceIdTweenDuration : Error processing arguments");
|
||||
cobj->runAnimationsForSequenceIdTweenDuration(arg0, arg1);
|
||||
args.rval().setUndefined();
|
||||
|
@ -1358,7 +1358,7 @@ bool js_cocos2dx_builder_CCBReader_setResolutionScale(JSContext *cx, uint32_t ar
|
|||
bool ok = true;
|
||||
if (argc == 1) {
|
||||
double arg0 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_builder_CCBReader_setResolutionScale : Error processing arguments");
|
||||
cocosbuilder::CCBReader::setResolutionScale(arg0);
|
||||
args.rval().setUndefined();
|
||||
|
|
|
@ -255,7 +255,7 @@ bool js_cocos2dx_experimental_video_VideoPlayer_seekTo(JSContext *cx, uint32_t a
|
|||
JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_experimental_video_VideoPlayer_seekTo : Invalid Native Object");
|
||||
if (argc == 1) {
|
||||
double arg0 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_experimental_video_VideoPlayer_seekTo : Error processing arguments");
|
||||
cobj->seekTo(arg0);
|
||||
args.rval().setUndefined();
|
||||
|
|
|
@ -181,6 +181,26 @@ bool js_cocos2dx_experimental_webView_WebView_loadURL(JSContext *cx, uint32_t ar
|
|||
JS_ReportError(cx, "js_cocos2dx_experimental_webView_WebView_loadURL : wrong number of arguments: %d, was expecting %d", argc, 1);
|
||||
return false;
|
||||
}
|
||||
bool js_cocos2dx_experimental_webView_WebView_setBounces(JSContext *cx, uint32_t argc, jsval *vp)
|
||||
{
|
||||
JS::CallArgs args = JS::CallArgsFromVp(argc, vp);
|
||||
bool ok = true;
|
||||
JS::RootedObject obj(cx, args.thisv().toObjectOrNull());
|
||||
js_proxy_t *proxy = jsb_get_js_proxy(obj);
|
||||
cocos2d::experimental::ui::WebView* cobj = (cocos2d::experimental::ui::WebView *)(proxy ? proxy->ptr : NULL);
|
||||
JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_experimental_webView_WebView_setBounces : Invalid Native Object");
|
||||
if (argc == 1) {
|
||||
bool arg0;
|
||||
arg0 = JS::ToBoolean(args.get(0));
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_experimental_webView_WebView_setBounces : Error processing arguments");
|
||||
cobj->setBounces(arg0);
|
||||
args.rval().setUndefined();
|
||||
return true;
|
||||
}
|
||||
|
||||
JS_ReportError(cx, "js_cocos2dx_experimental_webView_WebView_setBounces : wrong number of arguments: %d, was expecting %d", argc, 1);
|
||||
return false;
|
||||
}
|
||||
bool js_cocos2dx_experimental_webView_WebView_evaluateJS(JSContext *cx, uint32_t argc, jsval *vp)
|
||||
{
|
||||
JS::CallArgs args = JS::CallArgsFromVp(argc, vp);
|
||||
|
@ -384,6 +404,7 @@ void js_register_cocos2dx_experimental_webView_WebView(JSContext *cx, JS::Handle
|
|||
JS_FN("getOnDidFailLoading", js_cocos2dx_experimental_webView_WebView_getOnDidFailLoading, 0, JSPROP_PERMANENT | JSPROP_ENUMERATE),
|
||||
JS_FN("loadFile", js_cocos2dx_experimental_webView_WebView_loadFile, 1, JSPROP_PERMANENT | JSPROP_ENUMERATE),
|
||||
JS_FN("loadURL", js_cocos2dx_experimental_webView_WebView_loadURL, 1, JSPROP_PERMANENT | JSPROP_ENUMERATE),
|
||||
JS_FN("setBounces", js_cocos2dx_experimental_webView_WebView_setBounces, 1, JSPROP_PERMANENT | JSPROP_ENUMERATE),
|
||||
JS_FN("evaluateJS", js_cocos2dx_experimental_webView_WebView_evaluateJS, 1, JSPROP_PERMANENT | JSPROP_ENUMERATE),
|
||||
JS_FN("getOnJSCallback", js_cocos2dx_experimental_webView_WebView_getOnJSCallback, 0, JSPROP_PERMANENT | JSPROP_ENUMERATE),
|
||||
JS_FN("canGoForward", js_cocos2dx_experimental_webView_WebView_canGoForward, 0, JSPROP_PERMANENT | JSPROP_ENUMERATE),
|
||||
|
|
|
@ -21,6 +21,7 @@ bool js_cocos2dx_experimental_webView_WebView_setScalesPageToFit(JSContext *cx,
|
|||
bool js_cocos2dx_experimental_webView_WebView_getOnDidFailLoading(JSContext *cx, uint32_t argc, jsval *vp);
|
||||
bool js_cocos2dx_experimental_webView_WebView_loadFile(JSContext *cx, uint32_t argc, jsval *vp);
|
||||
bool js_cocos2dx_experimental_webView_WebView_loadURL(JSContext *cx, uint32_t argc, jsval *vp);
|
||||
bool js_cocos2dx_experimental_webView_WebView_setBounces(JSContext *cx, uint32_t argc, jsval *vp);
|
||||
bool js_cocos2dx_experimental_webView_WebView_evaluateJS(JSContext *cx, uint32_t argc, jsval *vp);
|
||||
bool js_cocos2dx_experimental_webView_WebView_getOnJSCallback(JSContext *cx, uint32_t argc, jsval *vp);
|
||||
bool js_cocos2dx_experimental_webView_WebView_canGoForward(JSContext *cx, uint32_t argc, jsval *vp);
|
||||
|
|
|
@ -575,7 +575,7 @@ bool js_cocos2dx_extension_ControlButton_setTitleTTFSizeForState(JSContext *cx,
|
|||
if (argc == 2) {
|
||||
double arg0 = 0;
|
||||
cocos2d::extension::Control::State arg1;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
ok &= jsval_to_int32(cx, args.get(1), (int32_t *)&arg1);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_extension_ControlButton_setTitleTTFSizeForState : Error processing arguments");
|
||||
cobj->setTitleTTFSizeForState(arg0, arg1);
|
||||
|
@ -758,7 +758,7 @@ bool js_cocos2dx_extension_ControlButton_initWithTitleAndFontNameAndFontSize(JSC
|
|||
double arg2 = 0;
|
||||
ok &= jsval_to_std_string(cx, args.get(0), &arg0);
|
||||
ok &= jsval_to_std_string(cx, args.get(1), &arg1);
|
||||
ok &= JS::ToNumber( cx, args.get(2), &arg2) && !isnan(arg2);
|
||||
ok &= JS::ToNumber( cx, args.get(2), &arg2) && !std::isnan(arg2);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_extension_ControlButton_initWithTitleAndFontNameAndFontSize : Error processing arguments");
|
||||
bool ret = cobj->initWithTitleAndFontNameAndFontSize(arg0, arg1, arg2);
|
||||
jsval jsret = JSVAL_NULL;
|
||||
|
@ -986,7 +986,7 @@ bool js_cocos2dx_extension_ControlButton_setScaleRatio(JSContext *cx, uint32_t a
|
|||
JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_extension_ControlButton_setScaleRatio : Invalid Native Object");
|
||||
if (argc == 1) {
|
||||
double arg0 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_extension_ControlButton_setScaleRatio : Error processing arguments");
|
||||
cobj->setScaleRatio(arg0);
|
||||
args.rval().setUndefined();
|
||||
|
@ -1329,7 +1329,7 @@ bool js_cocos2dx_extension_ControlButton_create(JSContext *cx, uint32_t argc, js
|
|||
ok &= jsval_to_std_string(cx, args.get(1), &arg1);
|
||||
if (!ok) { ok = true; break; }
|
||||
double arg2 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(2), &arg2) && !isnan(arg2);
|
||||
ok &= JS::ToNumber( cx, args.get(2), &arg2) && !std::isnan(arg2);
|
||||
if (!ok) { ok = true; break; }
|
||||
cocos2d::extension::ControlButton* ret = cocos2d::extension::ControlButton::create(arg0, arg1, arg2);
|
||||
jsval jsret = JSVAL_NULL;
|
||||
|
@ -1547,7 +1547,7 @@ bool js_cocos2dx_extension_ControlHuePicker_setHue(JSContext *cx, uint32_t argc,
|
|||
JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_extension_ControlHuePicker_setHue : Invalid Native Object");
|
||||
if (argc == 1) {
|
||||
double arg0 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_extension_ControlHuePicker_setHue : Error processing arguments");
|
||||
cobj->setHue(arg0);
|
||||
args.rval().setUndefined();
|
||||
|
@ -1653,7 +1653,7 @@ bool js_cocos2dx_extension_ControlHuePicker_setHuePercentage(JSContext *cx, uint
|
|||
JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_extension_ControlHuePicker_setHuePercentage : Invalid Native Object");
|
||||
if (argc == 1) {
|
||||
double arg0 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_extension_ControlHuePicker_setHuePercentage : Error processing arguments");
|
||||
cobj->setHuePercentage(arg0);
|
||||
args.rval().setUndefined();
|
||||
|
@ -2461,7 +2461,7 @@ bool js_cocos2dx_extension_ControlPotentiometer_setValue(JSContext *cx, uint32_t
|
|||
JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_extension_ControlPotentiometer_setValue : Invalid Native Object");
|
||||
if (argc == 1) {
|
||||
double arg0 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_extension_ControlPotentiometer_setValue : Error processing arguments");
|
||||
cobj->setValue(arg0);
|
||||
args.rval().setUndefined();
|
||||
|
@ -2569,7 +2569,7 @@ bool js_cocos2dx_extension_ControlPotentiometer_setMaximumValue(JSContext *cx, u
|
|||
JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_extension_ControlPotentiometer_setMaximumValue : Invalid Native Object");
|
||||
if (argc == 1) {
|
||||
double arg0 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_extension_ControlPotentiometer_setMaximumValue : Error processing arguments");
|
||||
cobj->setMaximumValue(arg0);
|
||||
args.rval().setUndefined();
|
||||
|
@ -2743,7 +2743,7 @@ bool js_cocos2dx_extension_ControlPotentiometer_setMinimumValue(JSContext *cx, u
|
|||
JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_extension_ControlPotentiometer_setMinimumValue : Invalid Native Object");
|
||||
if (argc == 1) {
|
||||
double arg0 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_extension_ControlPotentiometer_setMinimumValue : Error processing arguments");
|
||||
cobj->setMinimumValue(arg0);
|
||||
args.rval().setUndefined();
|
||||
|
@ -3222,7 +3222,7 @@ bool js_cocos2dx_extension_ControlSlider_setMaximumValue(JSContext *cx, uint32_t
|
|||
JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_extension_ControlSlider_setMaximumValue : Invalid Native Object");
|
||||
if (argc == 1) {
|
||||
double arg0 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_extension_ControlSlider_setMaximumValue : Error processing arguments");
|
||||
cobj->setMaximumValue(arg0);
|
||||
args.rval().setUndefined();
|
||||
|
@ -3350,7 +3350,7 @@ bool js_cocos2dx_extension_ControlSlider_setValue(JSContext *cx, uint32_t argc,
|
|||
JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_extension_ControlSlider_setValue : Invalid Native Object");
|
||||
if (argc == 1) {
|
||||
double arg0 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_extension_ControlSlider_setValue : Error processing arguments");
|
||||
cobj->setValue(arg0);
|
||||
args.rval().setUndefined();
|
||||
|
@ -3400,7 +3400,7 @@ bool js_cocos2dx_extension_ControlSlider_setMinimumValue(JSContext *cx, uint32_t
|
|||
JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_extension_ControlSlider_setMinimumValue : Invalid Native Object");
|
||||
if (argc == 1) {
|
||||
double arg0 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_extension_ControlSlider_setMinimumValue : Error processing arguments");
|
||||
cobj->setMinimumValue(arg0);
|
||||
args.rval().setUndefined();
|
||||
|
@ -3420,7 +3420,7 @@ bool js_cocos2dx_extension_ControlSlider_setMinimumAllowedValue(JSContext *cx, u
|
|||
JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_extension_ControlSlider_setMinimumAllowedValue : Invalid Native Object");
|
||||
if (argc == 1) {
|
||||
double arg0 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_extension_ControlSlider_setMinimumAllowedValue : Error processing arguments");
|
||||
cobj->setMinimumAllowedValue(arg0);
|
||||
args.rval().setUndefined();
|
||||
|
@ -3490,7 +3490,7 @@ bool js_cocos2dx_extension_ControlSlider_setMaximumAllowedValue(JSContext *cx, u
|
|||
JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_extension_ControlSlider_setMaximumAllowedValue : Invalid Native Object");
|
||||
if (argc == 1) {
|
||||
double arg0 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_extension_ControlSlider_setMaximumAllowedValue : Error processing arguments");
|
||||
cobj->setMaximumAllowedValue(arg0);
|
||||
args.rval().setUndefined();
|
||||
|
@ -3796,7 +3796,7 @@ bool js_cocos2dx_extension_ControlStepper_setValue(JSContext *cx, uint32_t argc,
|
|||
JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_extension_ControlStepper_setValue : Invalid Native Object");
|
||||
if (argc == 1) {
|
||||
double arg0 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_extension_ControlStepper_setValue : Error processing arguments");
|
||||
cobj->setValue(arg0);
|
||||
args.rval().setUndefined();
|
||||
|
@ -3816,7 +3816,7 @@ bool js_cocos2dx_extension_ControlStepper_setStepValue(JSContext *cx, uint32_t a
|
|||
JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_extension_ControlStepper_setStepValue : Invalid Native Object");
|
||||
if (argc == 1) {
|
||||
double arg0 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_extension_ControlStepper_setStepValue : Error processing arguments");
|
||||
cobj->setStepValue(arg0);
|
||||
args.rval().setUndefined();
|
||||
|
@ -3877,7 +3877,7 @@ bool js_cocos2dx_extension_ControlStepper_setValueWithSendingEvent(JSContext *cx
|
|||
if (argc == 2) {
|
||||
double arg0 = 0;
|
||||
bool arg1;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
arg1 = JS::ToBoolean(args.get(1));
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_extension_ControlStepper_setValueWithSendingEvent : Error processing arguments");
|
||||
cobj->setValueWithSendingEvent(arg0, arg1);
|
||||
|
@ -3898,7 +3898,7 @@ bool js_cocos2dx_extension_ControlStepper_setMaximumValue(JSContext *cx, uint32_
|
|||
JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_extension_ControlStepper_setMaximumValue : Invalid Native Object");
|
||||
if (argc == 1) {
|
||||
double arg0 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_extension_ControlStepper_setMaximumValue : Error processing arguments");
|
||||
cobj->setMaximumValue(arg0);
|
||||
args.rval().setUndefined();
|
||||
|
@ -4080,7 +4080,7 @@ bool js_cocos2dx_extension_ControlStepper_setMinimumValue(JSContext *cx, uint32_
|
|||
JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_extension_ControlStepper_setMinimumValue : Invalid Native Object");
|
||||
if (argc == 1) {
|
||||
double arg0 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_extension_ControlStepper_setMinimumValue : Error processing arguments");
|
||||
cobj->setMinimumValue(arg0);
|
||||
args.rval().setUndefined();
|
||||
|
@ -4891,7 +4891,7 @@ bool js_cocos2dx_extension_ScrollView_setContentOffsetInDuration(JSContext *cx,
|
|||
cocos2d::Vec2 arg0;
|
||||
double arg1 = 0;
|
||||
ok &= jsval_to_vector2(cx, args.get(0), &arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(1), &arg1) && !isnan(arg1);
|
||||
ok &= JS::ToNumber( cx, args.get(1), &arg1) && !std::isnan(arg1);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_extension_ScrollView_setContentOffsetInDuration : Error processing arguments");
|
||||
cobj->setContentOffsetInDuration(arg0, arg1);
|
||||
args.rval().setUndefined();
|
||||
|
@ -4912,8 +4912,8 @@ bool js_cocos2dx_extension_ScrollView_setZoomScaleInDuration(JSContext *cx, uint
|
|||
if (argc == 2) {
|
||||
double arg0 = 0;
|
||||
double arg1 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(1), &arg1) && !isnan(arg1);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(1), &arg1) && !std::isnan(arg1);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_extension_ScrollView_setZoomScaleInDuration : Error processing arguments");
|
||||
cobj->setZoomScaleInDuration(arg0, arg1);
|
||||
args.rval().setUndefined();
|
||||
|
@ -4934,7 +4934,7 @@ bool js_cocos2dx_extension_ScrollView_updateTweenAction(JSContext *cx, uint32_t
|
|||
if (argc == 2) {
|
||||
double arg0 = 0;
|
||||
std::string arg1;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
ok &= jsval_to_std_string(cx, args.get(1), &arg1);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_extension_ScrollView_updateTweenAction : Error processing arguments");
|
||||
cobj->updateTweenAction(arg0, arg1);
|
||||
|
@ -4955,7 +4955,7 @@ bool js_cocos2dx_extension_ScrollView_setMaxScale(JSContext *cx, uint32_t argc,
|
|||
JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_extension_ScrollView_setMaxScale : Invalid Native Object");
|
||||
if (argc == 1) {
|
||||
double arg0 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_extension_ScrollView_setMaxScale : Error processing arguments");
|
||||
cobj->setMaxScale(arg0);
|
||||
args.rval().setUndefined();
|
||||
|
@ -5033,7 +5033,7 @@ bool js_cocos2dx_extension_ScrollView_setMinScale(JSContext *cx, uint32_t argc,
|
|||
JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_extension_ScrollView_setMinScale : Invalid Native Object");
|
||||
if (argc == 1) {
|
||||
double arg0 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_extension_ScrollView_setMinScale : Error processing arguments");
|
||||
cobj->setMinScale(arg0);
|
||||
args.rval().setUndefined();
|
||||
|
@ -5509,7 +5509,7 @@ bool js_cocos2dx_extension_ScrollView_setZoomScale(JSContext *cx, uint32_t argc,
|
|||
do {
|
||||
if (argc == 2) {
|
||||
double arg0 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
if (!ok) { ok = true; break; }
|
||||
bool arg1;
|
||||
arg1 = JS::ToBoolean(args.get(1));
|
||||
|
@ -5522,7 +5522,7 @@ bool js_cocos2dx_extension_ScrollView_setZoomScale(JSContext *cx, uint32_t argc,
|
|||
do {
|
||||
if (argc == 1) {
|
||||
double arg0 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
if (!ok) { ok = true; break; }
|
||||
cobj->setZoomScale(arg0);
|
||||
args.rval().setUndefined();
|
||||
|
|
|
@ -34,7 +34,7 @@ bool js_cocos2dx_navmesh_NavMeshAgent_setMaxSpeed(JSContext *cx, uint32_t argc,
|
|||
JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_navmesh_NavMeshAgent_setMaxSpeed : Invalid Native Object");
|
||||
if (argc == 1) {
|
||||
double arg0 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_navmesh_NavMeshAgent_setMaxSpeed : Error processing arguments");
|
||||
cobj->setMaxSpeed(arg0);
|
||||
args.rval().setUndefined();
|
||||
|
@ -176,7 +176,7 @@ bool js_cocos2dx_navmesh_NavMeshAgent_setSeparationWeight(JSContext *cx, uint32_
|
|||
JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_navmesh_NavMeshAgent_setSeparationWeight : Invalid Native Object");
|
||||
if (argc == 1) {
|
||||
double arg0 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_navmesh_NavMeshAgent_setSeparationWeight : Error processing arguments");
|
||||
cobj->setSeparationWeight(arg0);
|
||||
args.rval().setUndefined();
|
||||
|
@ -374,7 +374,7 @@ bool js_cocos2dx_navmesh_NavMeshAgent_setMaxAcceleration(JSContext *cx, uint32_t
|
|||
JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_navmesh_NavMeshAgent_setMaxAcceleration : Invalid Native Object");
|
||||
if (argc == 1) {
|
||||
double arg0 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_navmesh_NavMeshAgent_setMaxAcceleration : Error processing arguments");
|
||||
cobj->setMaxAcceleration(arg0);
|
||||
args.rval().setUndefined();
|
||||
|
@ -432,7 +432,7 @@ bool js_cocos2dx_navmesh_NavMeshAgent_setHeight(JSContext *cx, uint32_t argc, js
|
|||
JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_navmesh_NavMeshAgent_setHeight : Invalid Native Object");
|
||||
if (argc == 1) {
|
||||
double arg0 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_navmesh_NavMeshAgent_setHeight : Error processing arguments");
|
||||
cobj->setHeight(arg0);
|
||||
args.rval().setUndefined();
|
||||
|
@ -488,7 +488,7 @@ bool js_cocos2dx_navmesh_NavMeshAgent_setRadius(JSContext *cx, uint32_t argc, js
|
|||
JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_navmesh_NavMeshAgent_setRadius : Invalid Native Object");
|
||||
if (argc == 1) {
|
||||
double arg0 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_navmesh_NavMeshAgent_setRadius : Error processing arguments");
|
||||
cobj->setRadius(arg0);
|
||||
args.rval().setUndefined();
|
||||
|
@ -676,8 +676,8 @@ bool js_cocos2dx_navmesh_NavMeshObstacle_initWith(JSContext *cx, uint32_t argc,
|
|||
if (argc == 2) {
|
||||
double arg0 = 0;
|
||||
double arg1 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(1), &arg1) && !isnan(arg1);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(1), &arg1) && !std::isnan(arg1);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_navmesh_NavMeshObstacle_initWith : Error processing arguments");
|
||||
bool ret = cobj->initWith(arg0, arg1);
|
||||
jsval jsret = JSVAL_NULL;
|
||||
|
@ -784,8 +784,8 @@ bool js_cocos2dx_navmesh_NavMeshObstacle_create(JSContext *cx, uint32_t argc, js
|
|||
if (argc == 2) {
|
||||
double arg0 = 0;
|
||||
double arg1 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(1), &arg1) && !isnan(arg1);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(1), &arg1) && !std::isnan(arg1);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_navmesh_NavMeshObstacle_create : Error processing arguments");
|
||||
|
||||
auto ret = cocos2d::NavMeshObstacle::create(arg0, arg1);
|
||||
|
@ -954,7 +954,7 @@ bool js_cocos2dx_navmesh_NavMesh_update(JSContext *cx, uint32_t argc, jsval *vp)
|
|||
JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_navmesh_NavMesh_update : Invalid Native Object");
|
||||
if (argc == 1) {
|
||||
double arg0 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_navmesh_NavMesh_update : Error processing arguments");
|
||||
cobj->update(arg0);
|
||||
args.rval().setUndefined();
|
||||
|
|
|
@ -88,7 +88,7 @@ bool js_cocos2dx_physics3d_Physics3DShape_initSphere(JSContext *cx, uint32_t arg
|
|||
JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_physics3d_Physics3DShape_initSphere : Invalid Native Object");
|
||||
if (argc == 1) {
|
||||
double arg0 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_physics3d_Physics3DShape_initSphere : Error processing arguments");
|
||||
bool ret = cobj->initSphere(arg0);
|
||||
jsval jsret = JSVAL_NULL;
|
||||
|
@ -133,8 +133,8 @@ bool js_cocos2dx_physics3d_Physics3DShape_initCapsule(JSContext *cx, uint32_t ar
|
|||
if (argc == 2) {
|
||||
double arg0 = 0;
|
||||
double arg1 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(1), &arg1) && !isnan(arg1);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(1), &arg1) && !std::isnan(arg1);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_physics3d_Physics3DShape_initCapsule : Error processing arguments");
|
||||
bool ret = cobj->initCapsule(arg0, arg1);
|
||||
jsval jsret = JSVAL_NULL;
|
||||
|
@ -157,8 +157,8 @@ bool js_cocos2dx_physics3d_Physics3DShape_initCylinder(JSContext *cx, uint32_t a
|
|||
if (argc == 2) {
|
||||
double arg0 = 0;
|
||||
double arg1 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(1), &arg1) && !isnan(arg1);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(1), &arg1) && !std::isnan(arg1);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_physics3d_Physics3DShape_initCylinder : Error processing arguments");
|
||||
bool ret = cobj->initCylinder(arg0, arg1);
|
||||
jsval jsret = JSVAL_NULL;
|
||||
|
@ -214,8 +214,8 @@ bool js_cocos2dx_physics3d_Physics3DShape_createCylinder(JSContext *cx, uint32_t
|
|||
if (argc == 2) {
|
||||
double arg0 = 0;
|
||||
double arg1 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(1), &arg1) && !isnan(arg1);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(1), &arg1) && !std::isnan(arg1);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_physics3d_Physics3DShape_createCylinder : Error processing arguments");
|
||||
|
||||
auto ret = cocos2d::Physics3DShape::createCylinder(arg0, arg1);
|
||||
|
@ -264,8 +264,8 @@ bool js_cocos2dx_physics3d_Physics3DShape_createCapsule(JSContext *cx, uint32_t
|
|||
if (argc == 2) {
|
||||
double arg0 = 0;
|
||||
double arg1 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(1), &arg1) && !isnan(arg1);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(1), &arg1) && !std::isnan(arg1);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_physics3d_Physics3DShape_createCapsule : Error processing arguments");
|
||||
|
||||
auto ret = cocos2d::Physics3DShape::createCapsule(arg0, arg1);
|
||||
|
@ -284,7 +284,7 @@ bool js_cocos2dx_physics3d_Physics3DShape_createSphere(JSContext *cx, uint32_t a
|
|||
bool ok = true;
|
||||
if (argc == 1) {
|
||||
double arg0 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_physics3d_Physics3DShape_createSphere : Error processing arguments");
|
||||
|
||||
auto ret = cocos2d::Physics3DShape::createSphere(arg0);
|
||||
|
@ -678,7 +678,7 @@ bool js_cocos2dx_physics3d_Physics3DRigidBody_setAngularFactor(JSContext *cx, ui
|
|||
do {
|
||||
if (argc == 1) {
|
||||
double arg0 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
if (!ok) { ok = true; break; }
|
||||
cobj->setAngularFactor(arg0);
|
||||
args.rval().setUndefined();
|
||||
|
@ -817,7 +817,7 @@ bool js_cocos2dx_physics3d_Physics3DRigidBody_setMassProps(JSContext *cx, uint32
|
|||
if (argc == 2) {
|
||||
double arg0 = 0;
|
||||
cocos2d::Vec3 arg1;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
ok &= jsval_to_vector3(cx, args.get(1), &arg1);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_physics3d_Physics3DRigidBody_setMassProps : Error processing arguments");
|
||||
cobj->setMassProps(arg0, arg1);
|
||||
|
@ -838,7 +838,7 @@ bool js_cocos2dx_physics3d_Physics3DRigidBody_setFriction(JSContext *cx, uint32_
|
|||
JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_physics3d_Physics3DRigidBody_setFriction : Invalid Native Object");
|
||||
if (argc == 1) {
|
||||
double arg0 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_physics3d_Physics3DRigidBody_setFriction : Error processing arguments");
|
||||
cobj->setFriction(arg0);
|
||||
args.rval().setUndefined();
|
||||
|
@ -879,8 +879,8 @@ bool js_cocos2dx_physics3d_Physics3DRigidBody_setDamping(JSContext *cx, uint32_t
|
|||
if (argc == 2) {
|
||||
double arg0 = 0;
|
||||
double arg1 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(1), &arg1) && !isnan(arg1);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(1), &arg1) && !std::isnan(arg1);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_physics3d_Physics3DRigidBody_setDamping : Error processing arguments");
|
||||
cobj->setDamping(arg0, arg1);
|
||||
args.rval().setUndefined();
|
||||
|
@ -960,7 +960,7 @@ bool js_cocos2dx_physics3d_Physics3DRigidBody_setCcdMotionThreshold(JSContext *c
|
|||
JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_physics3d_Physics3DRigidBody_setCcdMotionThreshold : Invalid Native Object");
|
||||
if (argc == 1) {
|
||||
double arg0 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_physics3d_Physics3DRigidBody_setCcdMotionThreshold : Error processing arguments");
|
||||
cobj->setCcdMotionThreshold(arg0);
|
||||
args.rval().setUndefined();
|
||||
|
@ -980,7 +980,7 @@ bool js_cocos2dx_physics3d_Physics3DRigidBody_setRollingFriction(JSContext *cx,
|
|||
JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_physics3d_Physics3DRigidBody_setRollingFriction : Invalid Native Object");
|
||||
if (argc == 1) {
|
||||
double arg0 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_physics3d_Physics3DRigidBody_setRollingFriction : Error processing arguments");
|
||||
cobj->setRollingFriction(arg0);
|
||||
args.rval().setUndefined();
|
||||
|
@ -1036,7 +1036,7 @@ bool js_cocos2dx_physics3d_Physics3DRigidBody_applyDamping(JSContext *cx, uint32
|
|||
JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_physics3d_Physics3DRigidBody_applyDamping : Invalid Native Object");
|
||||
if (argc == 1) {
|
||||
double arg0 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_physics3d_Physics3DRigidBody_applyDamping : Error processing arguments");
|
||||
cobj->applyDamping(arg0);
|
||||
args.rval().setUndefined();
|
||||
|
@ -1194,7 +1194,7 @@ bool js_cocos2dx_physics3d_Physics3DRigidBody_setCcdSweptSphereRadius(JSContext
|
|||
JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_physics3d_Physics3DRigidBody_setCcdSweptSphereRadius : Invalid Native Object");
|
||||
if (argc == 1) {
|
||||
double arg0 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_physics3d_Physics3DRigidBody_setCcdSweptSphereRadius : Error processing arguments");
|
||||
cobj->setCcdSweptSphereRadius(arg0);
|
||||
args.rval().setUndefined();
|
||||
|
@ -1584,7 +1584,7 @@ bool js_cocos2dx_physics3d_Physics3DRigidBody_setRestitution(JSContext *cx, uint
|
|||
JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_physics3d_Physics3DRigidBody_setRestitution : Invalid Native Object");
|
||||
if (argc == 1) {
|
||||
double arg0 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_physics3d_Physics3DRigidBody_setRestitution : Error processing arguments");
|
||||
cobj->setRestitution(arg0);
|
||||
args.rval().setUndefined();
|
||||
|
@ -1604,7 +1604,7 @@ bool js_cocos2dx_physics3d_Physics3DRigidBody_setHitFraction(JSContext *cx, uint
|
|||
JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_physics3d_Physics3DRigidBody_setHitFraction : Invalid Native Object");
|
||||
if (argc == 1) {
|
||||
double arg0 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_physics3d_Physics3DRigidBody_setHitFraction : Error processing arguments");
|
||||
cobj->setHitFraction(arg0);
|
||||
args.rval().setUndefined();
|
||||
|
@ -2262,7 +2262,7 @@ bool js_cocos2dx_physics3d_Physics3DWorld_stepSimulate(JSContext *cx, uint32_t a
|
|||
JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_physics3d_Physics3DWorld_stepSimulate : Invalid Native Object");
|
||||
if (argc == 1) {
|
||||
double arg0 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_physics3d_Physics3DWorld_stepSimulate : Error processing arguments");
|
||||
cobj->stepSimulate(arg0);
|
||||
args.rval().setUndefined();
|
||||
|
@ -2794,7 +2794,7 @@ bool js_cocos2dx_physics3d_Physics3DConstraint_setBreakingImpulse(JSContext *cx,
|
|||
JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_physics3d_Physics3DConstraint_setBreakingImpulse : Invalid Native Object");
|
||||
if (argc == 1) {
|
||||
double arg0 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_physics3d_Physics3DConstraint_setBreakingImpulse : Error processing arguments");
|
||||
cobj->setBreakingImpulse(arg0);
|
||||
args.rval().setUndefined();
|
||||
|
@ -3463,7 +3463,7 @@ bool js_cocos2dx_physics3d_Physics3DHingeConstraint_setMaxMotorImpulse(JSContext
|
|||
JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_physics3d_Physics3DHingeConstraint_setMaxMotorImpulse : Invalid Native Object");
|
||||
if (argc == 1) {
|
||||
double arg0 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_physics3d_Physics3DHingeConstraint_setMaxMotorImpulse : Error processing arguments");
|
||||
cobj->setMaxMotorImpulse(arg0);
|
||||
args.rval().setUndefined();
|
||||
|
@ -3486,8 +3486,8 @@ bool js_cocos2dx_physics3d_Physics3DHingeConstraint_enableAngularMotor(JSContext
|
|||
double arg1 = 0;
|
||||
double arg2 = 0;
|
||||
arg0 = JS::ToBoolean(args.get(0));
|
||||
ok &= JS::ToNumber( cx, args.get(1), &arg1) && !isnan(arg1);
|
||||
ok &= JS::ToNumber( cx, args.get(2), &arg2) && !isnan(arg2);
|
||||
ok &= JS::ToNumber( cx, args.get(1), &arg1) && !std::isnan(arg1);
|
||||
ok &= JS::ToNumber( cx, args.get(2), &arg2) && !std::isnan(arg2);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_physics3d_Physics3DHingeConstraint_enableAngularMotor : Error processing arguments");
|
||||
cobj->enableAngularMotor(arg0, arg1, arg2);
|
||||
args.rval().setUndefined();
|
||||
|
@ -3698,8 +3698,8 @@ bool js_cocos2dx_physics3d_Physics3DHingeConstraint_setLimit(JSContext *cx, uint
|
|||
if (argc == 2) {
|
||||
double arg0 = 0;
|
||||
double arg1 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(1), &arg1) && !isnan(arg1);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(1), &arg1) && !std::isnan(arg1);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_physics3d_Physics3DHingeConstraint_setLimit : Error processing arguments");
|
||||
cobj->setLimit(arg0, arg1);
|
||||
args.rval().setUndefined();
|
||||
|
@ -3709,9 +3709,9 @@ bool js_cocos2dx_physics3d_Physics3DHingeConstraint_setLimit(JSContext *cx, uint
|
|||
double arg0 = 0;
|
||||
double arg1 = 0;
|
||||
double arg2 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(1), &arg1) && !isnan(arg1);
|
||||
ok &= JS::ToNumber( cx, args.get(2), &arg2) && !isnan(arg2);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(1), &arg1) && !std::isnan(arg1);
|
||||
ok &= JS::ToNumber( cx, args.get(2), &arg2) && !std::isnan(arg2);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_physics3d_Physics3DHingeConstraint_setLimit : Error processing arguments");
|
||||
cobj->setLimit(arg0, arg1, arg2);
|
||||
args.rval().setUndefined();
|
||||
|
@ -3722,10 +3722,10 @@ bool js_cocos2dx_physics3d_Physics3DHingeConstraint_setLimit(JSContext *cx, uint
|
|||
double arg1 = 0;
|
||||
double arg2 = 0;
|
||||
double arg3 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(1), &arg1) && !isnan(arg1);
|
||||
ok &= JS::ToNumber( cx, args.get(2), &arg2) && !isnan(arg2);
|
||||
ok &= JS::ToNumber( cx, args.get(3), &arg3) && !isnan(arg3);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(1), &arg1) && !std::isnan(arg1);
|
||||
ok &= JS::ToNumber( cx, args.get(2), &arg2) && !std::isnan(arg2);
|
||||
ok &= JS::ToNumber( cx, args.get(3), &arg3) && !std::isnan(arg3);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_physics3d_Physics3DHingeConstraint_setLimit : Error processing arguments");
|
||||
cobj->setLimit(arg0, arg1, arg2, arg3);
|
||||
args.rval().setUndefined();
|
||||
|
@ -3737,11 +3737,11 @@ bool js_cocos2dx_physics3d_Physics3DHingeConstraint_setLimit(JSContext *cx, uint
|
|||
double arg2 = 0;
|
||||
double arg3 = 0;
|
||||
double arg4 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(1), &arg1) && !isnan(arg1);
|
||||
ok &= JS::ToNumber( cx, args.get(2), &arg2) && !isnan(arg2);
|
||||
ok &= JS::ToNumber( cx, args.get(3), &arg3) && !isnan(arg3);
|
||||
ok &= JS::ToNumber( cx, args.get(4), &arg4) && !isnan(arg4);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(1), &arg1) && !std::isnan(arg1);
|
||||
ok &= JS::ToNumber( cx, args.get(2), &arg2) && !std::isnan(arg2);
|
||||
ok &= JS::ToNumber( cx, args.get(3), &arg3) && !std::isnan(arg3);
|
||||
ok &= JS::ToNumber( cx, args.get(4), &arg4) && !std::isnan(arg4);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_physics3d_Physics3DHingeConstraint_setLimit : Error processing arguments");
|
||||
cobj->setLimit(arg0, arg1, arg2, arg3, arg4);
|
||||
args.rval().setUndefined();
|
||||
|
@ -3765,10 +3765,10 @@ bool js_cocos2dx_physics3d_Physics3DHingeConstraint_setMotorTarget(JSContext *cx
|
|||
do {
|
||||
if (argc == 2) {
|
||||
double arg0 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
if (!ok) { ok = true; break; }
|
||||
double arg1 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(1), &arg1) && !isnan(arg1);
|
||||
ok &= JS::ToNumber( cx, args.get(1), &arg1) && !std::isnan(arg1);
|
||||
if (!ok) { ok = true; break; }
|
||||
cobj->setMotorTarget(arg0, arg1);
|
||||
args.rval().setUndefined();
|
||||
|
@ -3782,7 +3782,7 @@ bool js_cocos2dx_physics3d_Physics3DHingeConstraint_setMotorTarget(JSContext *cx
|
|||
ok &= jsval_to_quaternion(cx, args.get(0), &arg0);
|
||||
if (!ok) { ok = true; break; }
|
||||
double arg1 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(1), &arg1) && !isnan(arg1);
|
||||
ok &= JS::ToNumber( cx, args.get(1), &arg1) && !std::isnan(arg1);
|
||||
if (!ok) { ok = true; break; }
|
||||
cobj->setMotorTarget(arg0, arg1);
|
||||
args.rval().setUndefined();
|
||||
|
@ -4298,7 +4298,7 @@ bool js_cocos2dx_physics3d_Physics3DSliderConstraint_setRestitutionOrthoLin(JSCo
|
|||
JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_physics3d_Physics3DSliderConstraint_setRestitutionOrthoLin : Invalid Native Object");
|
||||
if (argc == 1) {
|
||||
double arg0 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_physics3d_Physics3DSliderConstraint_setRestitutionOrthoLin : Error processing arguments");
|
||||
cobj->setRestitutionOrthoLin(arg0);
|
||||
args.rval().setUndefined();
|
||||
|
@ -4318,7 +4318,7 @@ bool js_cocos2dx_physics3d_Physics3DSliderConstraint_setRestitutionDirLin(JSCont
|
|||
JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_physics3d_Physics3DSliderConstraint_setRestitutionDirLin : Invalid Native Object");
|
||||
if (argc == 1) {
|
||||
double arg0 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_physics3d_Physics3DSliderConstraint_setRestitutionDirLin : Error processing arguments");
|
||||
cobj->setRestitutionDirLin(arg0);
|
||||
args.rval().setUndefined();
|
||||
|
@ -4466,7 +4466,7 @@ bool js_cocos2dx_physics3d_Physics3DSliderConstraint_setSoftnessOrthoLin(JSConte
|
|||
JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_physics3d_Physics3DSliderConstraint_setSoftnessOrthoLin : Invalid Native Object");
|
||||
if (argc == 1) {
|
||||
double arg0 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_physics3d_Physics3DSliderConstraint_setSoftnessOrthoLin : Error processing arguments");
|
||||
cobj->setSoftnessOrthoLin(arg0);
|
||||
args.rval().setUndefined();
|
||||
|
@ -4486,7 +4486,7 @@ bool js_cocos2dx_physics3d_Physics3DSliderConstraint_setSoftnessLimLin(JSContext
|
|||
JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_physics3d_Physics3DSliderConstraint_setSoftnessLimLin : Invalid Native Object");
|
||||
if (argc == 1) {
|
||||
double arg0 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_physics3d_Physics3DSliderConstraint_setSoftnessLimLin : Error processing arguments");
|
||||
cobj->setSoftnessLimLin(arg0);
|
||||
args.rval().setUndefined();
|
||||
|
@ -4524,7 +4524,7 @@ bool js_cocos2dx_physics3d_Physics3DSliderConstraint_setRestitutionLimAng(JSCont
|
|||
JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_physics3d_Physics3DSliderConstraint_setRestitutionLimAng : Invalid Native Object");
|
||||
if (argc == 1) {
|
||||
double arg0 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_physics3d_Physics3DSliderConstraint_setRestitutionLimAng : Error processing arguments");
|
||||
cobj->setRestitutionLimAng(arg0);
|
||||
args.rval().setUndefined();
|
||||
|
@ -4544,7 +4544,7 @@ bool js_cocos2dx_physics3d_Physics3DSliderConstraint_setUpperLinLimit(JSContext
|
|||
JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_physics3d_Physics3DSliderConstraint_setUpperLinLimit : Invalid Native Object");
|
||||
if (argc == 1) {
|
||||
double arg0 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_physics3d_Physics3DSliderConstraint_setUpperLinLimit : Error processing arguments");
|
||||
cobj->setUpperLinLimit(arg0);
|
||||
args.rval().setUndefined();
|
||||
|
@ -4564,7 +4564,7 @@ bool js_cocos2dx_physics3d_Physics3DSliderConstraint_setDampingDirLin(JSContext
|
|||
JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_physics3d_Physics3DSliderConstraint_setDampingDirLin : Invalid Native Object");
|
||||
if (argc == 1) {
|
||||
double arg0 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_physics3d_Physics3DSliderConstraint_setDampingDirLin : Error processing arguments");
|
||||
cobj->setDampingDirLin(arg0);
|
||||
args.rval().setUndefined();
|
||||
|
@ -4656,7 +4656,7 @@ bool js_cocos2dx_physics3d_Physics3DSliderConstraint_setLowerAngLimit(JSContext
|
|||
JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_physics3d_Physics3DSliderConstraint_setLowerAngLimit : Invalid Native Object");
|
||||
if (argc == 1) {
|
||||
double arg0 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_physics3d_Physics3DSliderConstraint_setLowerAngLimit : Error processing arguments");
|
||||
cobj->setLowerAngLimit(arg0);
|
||||
args.rval().setUndefined();
|
||||
|
@ -4676,7 +4676,7 @@ bool js_cocos2dx_physics3d_Physics3DSliderConstraint_setUpperAngLimit(JSContext
|
|||
JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_physics3d_Physics3DSliderConstraint_setUpperAngLimit : Invalid Native Object");
|
||||
if (argc == 1) {
|
||||
double arg0 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_physics3d_Physics3DSliderConstraint_setUpperAngLimit : Error processing arguments");
|
||||
cobj->setUpperAngLimit(arg0);
|
||||
args.rval().setUndefined();
|
||||
|
@ -4696,7 +4696,7 @@ bool js_cocos2dx_physics3d_Physics3DSliderConstraint_setTargetLinMotorVelocity(J
|
|||
JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_physics3d_Physics3DSliderConstraint_setTargetLinMotorVelocity : Invalid Native Object");
|
||||
if (argc == 1) {
|
||||
double arg0 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_physics3d_Physics3DSliderConstraint_setTargetLinMotorVelocity : Error processing arguments");
|
||||
cobj->setTargetLinMotorVelocity(arg0);
|
||||
args.rval().setUndefined();
|
||||
|
@ -4716,7 +4716,7 @@ bool js_cocos2dx_physics3d_Physics3DSliderConstraint_setDampingLimAng(JSContext
|
|||
JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_physics3d_Physics3DSliderConstraint_setDampingLimAng : Invalid Native Object");
|
||||
if (argc == 1) {
|
||||
double arg0 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_physics3d_Physics3DSliderConstraint_setDampingLimAng : Error processing arguments");
|
||||
cobj->setDampingLimAng(arg0);
|
||||
args.rval().setUndefined();
|
||||
|
@ -4828,7 +4828,7 @@ bool js_cocos2dx_physics3d_Physics3DSliderConstraint_setLowerLinLimit(JSContext
|
|||
JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_physics3d_Physics3DSliderConstraint_setLowerLinLimit : Invalid Native Object");
|
||||
if (argc == 1) {
|
||||
double arg0 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_physics3d_Physics3DSliderConstraint_setLowerLinLimit : Error processing arguments");
|
||||
cobj->setLowerLinLimit(arg0);
|
||||
args.rval().setUndefined();
|
||||
|
@ -4920,7 +4920,7 @@ bool js_cocos2dx_physics3d_Physics3DSliderConstraint_setDampingOrthoAng(JSContex
|
|||
JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_physics3d_Physics3DSliderConstraint_setDampingOrthoAng : Invalid Native Object");
|
||||
if (argc == 1) {
|
||||
double arg0 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_physics3d_Physics3DSliderConstraint_setDampingOrthoAng : Error processing arguments");
|
||||
cobj->setDampingOrthoAng(arg0);
|
||||
args.rval().setUndefined();
|
||||
|
@ -4940,7 +4940,7 @@ bool js_cocos2dx_physics3d_Physics3DSliderConstraint_setSoftnessDirAng(JSContext
|
|||
JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_physics3d_Physics3DSliderConstraint_setSoftnessDirAng : Invalid Native Object");
|
||||
if (argc == 1) {
|
||||
double arg0 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_physics3d_Physics3DSliderConstraint_setSoftnessDirAng : Error processing arguments");
|
||||
cobj->setSoftnessDirAng(arg0);
|
||||
args.rval().setUndefined();
|
||||
|
@ -4978,7 +4978,7 @@ bool js_cocos2dx_physics3d_Physics3DSliderConstraint_setRestitutionOrthoAng(JSCo
|
|||
JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_physics3d_Physics3DSliderConstraint_setRestitutionOrthoAng : Invalid Native Object");
|
||||
if (argc == 1) {
|
||||
double arg0 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_physics3d_Physics3DSliderConstraint_setRestitutionOrthoAng : Error processing arguments");
|
||||
cobj->setRestitutionOrthoAng(arg0);
|
||||
args.rval().setUndefined();
|
||||
|
@ -4998,7 +4998,7 @@ bool js_cocos2dx_physics3d_Physics3DSliderConstraint_setDampingDirAng(JSContext
|
|||
JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_physics3d_Physics3DSliderConstraint_setDampingDirAng : Invalid Native Object");
|
||||
if (argc == 1) {
|
||||
double arg0 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_physics3d_Physics3DSliderConstraint_setDampingDirAng : Error processing arguments");
|
||||
cobj->setDampingDirAng(arg0);
|
||||
args.rval().setUndefined();
|
||||
|
@ -5112,7 +5112,7 @@ bool js_cocos2dx_physics3d_Physics3DSliderConstraint_setMaxLinMotorForce(JSConte
|
|||
JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_physics3d_Physics3DSliderConstraint_setMaxLinMotorForce : Invalid Native Object");
|
||||
if (argc == 1) {
|
||||
double arg0 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_physics3d_Physics3DSliderConstraint_setMaxLinMotorForce : Error processing arguments");
|
||||
cobj->setMaxLinMotorForce(arg0);
|
||||
args.rval().setUndefined();
|
||||
|
@ -5150,7 +5150,7 @@ bool js_cocos2dx_physics3d_Physics3DSliderConstraint_setTargetAngMotorVelocity(J
|
|||
JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_physics3d_Physics3DSliderConstraint_setTargetAngMotorVelocity : Invalid Native Object");
|
||||
if (argc == 1) {
|
||||
double arg0 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_physics3d_Physics3DSliderConstraint_setTargetAngMotorVelocity : Error processing arguments");
|
||||
cobj->setTargetAngMotorVelocity(arg0);
|
||||
args.rval().setUndefined();
|
||||
|
@ -5188,7 +5188,7 @@ bool js_cocos2dx_physics3d_Physics3DSliderConstraint_setRestitutionDirAng(JSCont
|
|||
JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_physics3d_Physics3DSliderConstraint_setRestitutionDirAng : Invalid Native Object");
|
||||
if (argc == 1) {
|
||||
double arg0 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_physics3d_Physics3DSliderConstraint_setRestitutionDirAng : Error processing arguments");
|
||||
cobj->setRestitutionDirAng(arg0);
|
||||
args.rval().setUndefined();
|
||||
|
@ -5280,7 +5280,7 @@ bool js_cocos2dx_physics3d_Physics3DSliderConstraint_setRestitutionLimLin(JSCont
|
|||
JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_physics3d_Physics3DSliderConstraint_setRestitutionLimLin : Invalid Native Object");
|
||||
if (argc == 1) {
|
||||
double arg0 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_physics3d_Physics3DSliderConstraint_setRestitutionLimLin : Error processing arguments");
|
||||
cobj->setRestitutionLimLin(arg0);
|
||||
args.rval().setUndefined();
|
||||
|
@ -5318,7 +5318,7 @@ bool js_cocos2dx_physics3d_Physics3DSliderConstraint_setDampingOrthoLin(JSContex
|
|||
JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_physics3d_Physics3DSliderConstraint_setDampingOrthoLin : Invalid Native Object");
|
||||
if (argc == 1) {
|
||||
double arg0 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_physics3d_Physics3DSliderConstraint_setDampingOrthoLin : Error processing arguments");
|
||||
cobj->setDampingOrthoLin(arg0);
|
||||
args.rval().setUndefined();
|
||||
|
@ -5338,7 +5338,7 @@ bool js_cocos2dx_physics3d_Physics3DSliderConstraint_setSoftnessOrthoAng(JSConte
|
|||
JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_physics3d_Physics3DSliderConstraint_setSoftnessOrthoAng : Invalid Native Object");
|
||||
if (argc == 1) {
|
||||
double arg0 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_physics3d_Physics3DSliderConstraint_setSoftnessOrthoAng : Error processing arguments");
|
||||
cobj->setSoftnessOrthoAng(arg0);
|
||||
args.rval().setUndefined();
|
||||
|
@ -5358,7 +5358,7 @@ bool js_cocos2dx_physics3d_Physics3DSliderConstraint_setDampingLimLin(JSContext
|
|||
JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_physics3d_Physics3DSliderConstraint_setDampingLimLin : Invalid Native Object");
|
||||
if (argc == 1) {
|
||||
double arg0 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_physics3d_Physics3DSliderConstraint_setDampingLimLin : Error processing arguments");
|
||||
cobj->setDampingLimLin(arg0);
|
||||
args.rval().setUndefined();
|
||||
|
@ -5378,7 +5378,7 @@ bool js_cocos2dx_physics3d_Physics3DSliderConstraint_setSoftnessDirLin(JSContext
|
|||
JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_physics3d_Physics3DSliderConstraint_setSoftnessDirLin : Invalid Native Object");
|
||||
if (argc == 1) {
|
||||
double arg0 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_physics3d_Physics3DSliderConstraint_setSoftnessDirLin : Error processing arguments");
|
||||
cobj->setSoftnessDirLin(arg0);
|
||||
args.rval().setUndefined();
|
||||
|
@ -5398,7 +5398,7 @@ bool js_cocos2dx_physics3d_Physics3DSliderConstraint_setMaxAngMotorForce(JSConte
|
|||
JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_physics3d_Physics3DSliderConstraint_setMaxAngMotorForce : Invalid Native Object");
|
||||
if (argc == 1) {
|
||||
double arg0 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_physics3d_Physics3DSliderConstraint_setMaxAngMotorForce : Error processing arguments");
|
||||
cobj->setMaxAngMotorForce(arg0);
|
||||
args.rval().setUndefined();
|
||||
|
@ -5436,7 +5436,7 @@ bool js_cocos2dx_physics3d_Physics3DSliderConstraint_setSoftnessLimAng(JSContext
|
|||
JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_physics3d_Physics3DSliderConstraint_setSoftnessLimAng : Invalid Native Object");
|
||||
if (argc == 1) {
|
||||
double arg0 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_physics3d_Physics3DSliderConstraint_setSoftnessLimAng : Error processing arguments");
|
||||
cobj->setSoftnessLimAng(arg0);
|
||||
args.rval().setUndefined();
|
||||
|
@ -5666,7 +5666,7 @@ bool js_cocos2dx_physics3d_Physics3DConeTwistConstraint_setFixThresh(JSContext *
|
|||
JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_physics3d_Physics3DConeTwistConstraint_setFixThresh : Invalid Native Object");
|
||||
if (argc == 1) {
|
||||
double arg0 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_physics3d_Physics3DConeTwistConstraint_setFixThresh : Error processing arguments");
|
||||
cobj->setFixThresh(arg0);
|
||||
args.rval().setUndefined();
|
||||
|
@ -5776,7 +5776,7 @@ bool js_cocos2dx_physics3d_Physics3DConeTwistConstraint_setMaxMotorImpulse(JSCon
|
|||
JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_physics3d_Physics3DConeTwistConstraint_setMaxMotorImpulse : Invalid Native Object");
|
||||
if (argc == 1) {
|
||||
double arg0 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_physics3d_Physics3DConeTwistConstraint_setMaxMotorImpulse : Error processing arguments");
|
||||
cobj->setMaxMotorImpulse(arg0);
|
||||
args.rval().setUndefined();
|
||||
|
@ -5837,8 +5837,8 @@ bool js_cocos2dx_physics3d_Physics3DConeTwistConstraint_GetPointForAngle(JSConte
|
|||
if (argc == 2) {
|
||||
double arg0 = 0;
|
||||
double arg1 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(1), &arg1) && !isnan(arg1);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(1), &arg1) && !std::isnan(arg1);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_physics3d_Physics3DConeTwistConstraint_GetPointForAngle : Error processing arguments");
|
||||
cocos2d::Vec3 ret = cobj->GetPointForAngle(arg0, arg1);
|
||||
jsval jsret = JSVAL_NULL;
|
||||
|
@ -5860,7 +5860,7 @@ bool js_cocos2dx_physics3d_Physics3DConeTwistConstraint_setMaxMotorImpulseNormal
|
|||
JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_physics3d_Physics3DConeTwistConstraint_setMaxMotorImpulseNormalized : Invalid Native Object");
|
||||
if (argc == 1) {
|
||||
double arg0 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_physics3d_Physics3DConeTwistConstraint_setMaxMotorImpulseNormalized : Error processing arguments");
|
||||
cobj->setMaxMotorImpulseNormalized(arg0);
|
||||
args.rval().setUndefined();
|
||||
|
@ -5898,7 +5898,7 @@ bool js_cocos2dx_physics3d_Physics3DConeTwistConstraint_setDamping(JSContext *cx
|
|||
JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_physics3d_Physics3DConeTwistConstraint_setDamping : Invalid Native Object");
|
||||
if (argc == 1) {
|
||||
double arg0 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_physics3d_Physics3DConeTwistConstraint_setDamping : Error processing arguments");
|
||||
cobj->setDamping(arg0);
|
||||
args.rval().setUndefined();
|
||||
|
@ -5920,9 +5920,9 @@ bool js_cocos2dx_physics3d_Physics3DConeTwistConstraint_setLimit(JSContext *cx,
|
|||
double arg0 = 0;
|
||||
double arg1 = 0;
|
||||
double arg2 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(1), &arg1) && !isnan(arg1);
|
||||
ok &= JS::ToNumber( cx, args.get(2), &arg2) && !isnan(arg2);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(1), &arg1) && !std::isnan(arg1);
|
||||
ok &= JS::ToNumber( cx, args.get(2), &arg2) && !std::isnan(arg2);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_physics3d_Physics3DConeTwistConstraint_setLimit : Error processing arguments");
|
||||
cobj->setLimit(arg0, arg1, arg2);
|
||||
args.rval().setUndefined();
|
||||
|
@ -5933,10 +5933,10 @@ bool js_cocos2dx_physics3d_Physics3DConeTwistConstraint_setLimit(JSContext *cx,
|
|||
double arg1 = 0;
|
||||
double arg2 = 0;
|
||||
double arg3 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(1), &arg1) && !isnan(arg1);
|
||||
ok &= JS::ToNumber( cx, args.get(2), &arg2) && !isnan(arg2);
|
||||
ok &= JS::ToNumber( cx, args.get(3), &arg3) && !isnan(arg3);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(1), &arg1) && !std::isnan(arg1);
|
||||
ok &= JS::ToNumber( cx, args.get(2), &arg2) && !std::isnan(arg2);
|
||||
ok &= JS::ToNumber( cx, args.get(3), &arg3) && !std::isnan(arg3);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_physics3d_Physics3DConeTwistConstraint_setLimit : Error processing arguments");
|
||||
cobj->setLimit(arg0, arg1, arg2, arg3);
|
||||
args.rval().setUndefined();
|
||||
|
@ -5948,11 +5948,11 @@ bool js_cocos2dx_physics3d_Physics3DConeTwistConstraint_setLimit(JSContext *cx,
|
|||
double arg2 = 0;
|
||||
double arg3 = 0;
|
||||
double arg4 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(1), &arg1) && !isnan(arg1);
|
||||
ok &= JS::ToNumber( cx, args.get(2), &arg2) && !isnan(arg2);
|
||||
ok &= JS::ToNumber( cx, args.get(3), &arg3) && !isnan(arg3);
|
||||
ok &= JS::ToNumber( cx, args.get(4), &arg4) && !isnan(arg4);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(1), &arg1) && !std::isnan(arg1);
|
||||
ok &= JS::ToNumber( cx, args.get(2), &arg2) && !std::isnan(arg2);
|
||||
ok &= JS::ToNumber( cx, args.get(3), &arg3) && !std::isnan(arg3);
|
||||
ok &= JS::ToNumber( cx, args.get(4), &arg4) && !std::isnan(arg4);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_physics3d_Physics3DConeTwistConstraint_setLimit : Error processing arguments");
|
||||
cobj->setLimit(arg0, arg1, arg2, arg3, arg4);
|
||||
args.rval().setUndefined();
|
||||
|
@ -5965,12 +5965,12 @@ bool js_cocos2dx_physics3d_Physics3DConeTwistConstraint_setLimit(JSContext *cx,
|
|||
double arg3 = 0;
|
||||
double arg4 = 0;
|
||||
double arg5 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(1), &arg1) && !isnan(arg1);
|
||||
ok &= JS::ToNumber( cx, args.get(2), &arg2) && !isnan(arg2);
|
||||
ok &= JS::ToNumber( cx, args.get(3), &arg3) && !isnan(arg3);
|
||||
ok &= JS::ToNumber( cx, args.get(4), &arg4) && !isnan(arg4);
|
||||
ok &= JS::ToNumber( cx, args.get(5), &arg5) && !isnan(arg5);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(1), &arg1) && !std::isnan(arg1);
|
||||
ok &= JS::ToNumber( cx, args.get(2), &arg2) && !std::isnan(arg2);
|
||||
ok &= JS::ToNumber( cx, args.get(3), &arg3) && !std::isnan(arg3);
|
||||
ok &= JS::ToNumber( cx, args.get(4), &arg4) && !std::isnan(arg4);
|
||||
ok &= JS::ToNumber( cx, args.get(5), &arg5) && !std::isnan(arg5);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_physics3d_Physics3DConeTwistConstraint_setLimit : Error processing arguments");
|
||||
cobj->setLimit(arg0, arg1, arg2, arg3, arg4, arg5);
|
||||
args.rval().setUndefined();
|
||||
|
|
|
@ -33,7 +33,7 @@ bool js_cocos2dx_spine_SkeletonRenderer_setTimeScale(JSContext *cx, uint32_t arg
|
|||
JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_spine_SkeletonRenderer_setTimeScale : Invalid Native Object");
|
||||
if (argc == 1) {
|
||||
double arg0 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_spine_SkeletonRenderer_setTimeScale : Error processing arguments");
|
||||
cobj->setTimeScale(arg0);
|
||||
args.rval().setUndefined();
|
||||
|
@ -369,7 +369,7 @@ bool js_cocos2dx_spine_SkeletonRenderer_initWithFile(JSContext *cx, uint32_t arg
|
|||
ok &= jsval_to_std_string(cx, args.get(1), &arg1);
|
||||
if (!ok) { ok = true; break; }
|
||||
double arg2 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(2), &arg2) && !isnan(arg2);
|
||||
ok &= JS::ToNumber( cx, args.get(2), &arg2) && !std::isnan(arg2);
|
||||
if (!ok) { ok = true; break; }
|
||||
cobj->initWithFile(arg0, arg1, arg2);
|
||||
args.rval().setUndefined();
|
||||
|
@ -402,7 +402,7 @@ bool js_cocos2dx_spine_SkeletonRenderer_initWithFile(JSContext *cx, uint32_t arg
|
|||
ok = false;
|
||||
if (!ok) { ok = true; break; }
|
||||
double arg2 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(2), &arg2) && !isnan(arg2);
|
||||
ok &= JS::ToNumber( cx, args.get(2), &arg2) && !std::isnan(arg2);
|
||||
if (!ok) { ok = true; break; }
|
||||
cobj->initWithFile(arg0, arg1, arg2);
|
||||
args.rval().setUndefined();
|
||||
|
@ -524,7 +524,7 @@ bool js_cocos2dx_spine_SkeletonRenderer_createWithFile(JSContext *cx, uint32_t a
|
|||
ok &= jsval_to_std_string(cx, args.get(1), &arg1);
|
||||
if (!ok) { ok = true; break; }
|
||||
double arg2 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(2), &arg2) && !isnan(arg2);
|
||||
ok &= JS::ToNumber( cx, args.get(2), &arg2) && !std::isnan(arg2);
|
||||
if (!ok) { ok = true; break; }
|
||||
spine::SkeletonRenderer* ret = spine::SkeletonRenderer::createWithFile(arg0, arg1, arg2);
|
||||
jsval jsret = JSVAL_NULL;
|
||||
|
@ -568,7 +568,7 @@ bool js_cocos2dx_spine_SkeletonRenderer_createWithFile(JSContext *cx, uint32_t a
|
|||
ok = false;
|
||||
if (!ok) { ok = true; break; }
|
||||
double arg2 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(2), &arg2) && !isnan(arg2);
|
||||
ok &= JS::ToNumber( cx, args.get(2), &arg2) && !std::isnan(arg2);
|
||||
if (!ok) { ok = true; break; }
|
||||
spine::SkeletonRenderer* ret = spine::SkeletonRenderer::createWithFile(arg0, arg1, arg2);
|
||||
jsval jsret = JSVAL_NULL;
|
||||
|
@ -670,7 +670,7 @@ bool js_cocos2dx_spine_SkeletonRenderer_constructor(JSContext *cx, uint32_t argc
|
|||
ok = false;
|
||||
if (!ok) { ok = true; break; }
|
||||
double arg2 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(2), &arg2) && !isnan(arg2);
|
||||
ok &= JS::ToNumber( cx, args.get(2), &arg2) && !std::isnan(arg2);
|
||||
if (!ok) { ok = true; break; }
|
||||
cobj = new (std::nothrow) spine::SkeletonRenderer(arg0, arg1, arg2);
|
||||
|
||||
|
@ -711,7 +711,7 @@ bool js_cocos2dx_spine_SkeletonRenderer_constructor(JSContext *cx, uint32_t argc
|
|||
ok &= jsval_to_std_string(cx, args.get(1), &arg1);
|
||||
if (!ok) { ok = true; break; }
|
||||
double arg2 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(2), &arg2) && !isnan(arg2);
|
||||
ok &= JS::ToNumber( cx, args.get(2), &arg2) && !std::isnan(arg2);
|
||||
if (!ok) { ok = true; break; }
|
||||
cobj = new (std::nothrow) spine::SkeletonRenderer(arg0, arg1, arg2);
|
||||
|
||||
|
@ -1039,7 +1039,7 @@ bool js_cocos2dx_spine_SkeletonAnimation_update(JSContext *cx, uint32_t argc, js
|
|||
JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_spine_SkeletonAnimation_update : Invalid Native Object");
|
||||
if (argc == 1) {
|
||||
double arg0 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_spine_SkeletonAnimation_update : Error processing arguments");
|
||||
cobj->update(arg0);
|
||||
args.rval().setUndefined();
|
||||
|
@ -1194,7 +1194,7 @@ bool js_cocos2dx_spine_SkeletonAnimation_setMix(JSContext *cx, uint32_t argc, js
|
|||
double arg2 = 0;
|
||||
ok &= jsval_to_std_string(cx, args.get(0), &arg0);
|
||||
ok &= jsval_to_std_string(cx, args.get(1), &arg1);
|
||||
ok &= JS::ToNumber( cx, args.get(2), &arg2) && !isnan(arg2);
|
||||
ok &= JS::ToNumber( cx, args.get(2), &arg2) && !std::isnan(arg2);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_spine_SkeletonAnimation_setMix : Error processing arguments");
|
||||
cobj->setMix(arg0, arg1, arg2);
|
||||
args.rval().setUndefined();
|
||||
|
@ -1363,7 +1363,7 @@ bool js_cocos2dx_spine_SkeletonAnimation_createWithFile(JSContext *cx, uint32_t
|
|||
ok &= jsval_to_std_string(cx, args.get(1), &arg1);
|
||||
if (!ok) { ok = true; break; }
|
||||
double arg2 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(2), &arg2) && !isnan(arg2);
|
||||
ok &= JS::ToNumber( cx, args.get(2), &arg2) && !std::isnan(arg2);
|
||||
if (!ok) { ok = true; break; }
|
||||
spine::SkeletonAnimation* ret = spine::SkeletonAnimation::createWithFile(arg0, arg1, arg2);
|
||||
jsval jsret = JSVAL_NULL;
|
||||
|
@ -1407,7 +1407,7 @@ bool js_cocos2dx_spine_SkeletonAnimation_createWithFile(JSContext *cx, uint32_t
|
|||
ok = false;
|
||||
if (!ok) { ok = true; break; }
|
||||
double arg2 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(2), &arg2) && !isnan(arg2);
|
||||
ok &= JS::ToNumber( cx, args.get(2), &arg2) && !std::isnan(arg2);
|
||||
if (!ok) { ok = true; break; }
|
||||
spine::SkeletonAnimation* ret = spine::SkeletonAnimation::createWithFile(arg0, arg1, arg2);
|
||||
jsval jsret = JSVAL_NULL;
|
||||
|
@ -1509,7 +1509,7 @@ bool js_cocos2dx_spine_SkeletonAnimation_constructor(JSContext *cx, uint32_t arg
|
|||
ok = false;
|
||||
if (!ok) { ok = true; break; }
|
||||
double arg2 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(2), &arg2) && !isnan(arg2);
|
||||
ok &= JS::ToNumber( cx, args.get(2), &arg2) && !std::isnan(arg2);
|
||||
if (!ok) { ok = true; break; }
|
||||
cobj = new (std::nothrow) spine::SkeletonAnimation(arg0, arg1, arg2);
|
||||
|
||||
|
@ -1550,7 +1550,7 @@ bool js_cocos2dx_spine_SkeletonAnimation_constructor(JSContext *cx, uint32_t arg
|
|||
ok &= jsval_to_std_string(cx, args.get(1), &arg1);
|
||||
if (!ok) { ok = true; break; }
|
||||
double arg2 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(2), &arg2) && !isnan(arg2);
|
||||
ok &= JS::ToNumber( cx, args.get(2), &arg2) && !std::isnan(arg2);
|
||||
if (!ok) { ok = true; break; }
|
||||
cobj = new (std::nothrow) spine::SkeletonAnimation(arg0, arg1, arg2);
|
||||
|
||||
|
@ -1643,7 +1643,7 @@ bool js_cocos2dx_spine_SkeletonAnimation_ctor(JSContext *cx, uint32_t argc, jsva
|
|||
ok = false;
|
||||
if (!ok) { ok = true; break; }
|
||||
double arg2 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(2), &arg2) && !isnan(arg2);
|
||||
ok &= JS::ToNumber( cx, args.get(2), &arg2) && !std::isnan(arg2);
|
||||
if (!ok) { ok = true; break; }
|
||||
cobj = new (std::nothrow) spine::SkeletonAnimation(arg0, arg1, arg2);
|
||||
|
||||
|
@ -1676,7 +1676,7 @@ bool js_cocos2dx_spine_SkeletonAnimation_ctor(JSContext *cx, uint32_t argc, jsva
|
|||
ok &= jsval_to_std_string(cx, args.get(1), &arg1);
|
||||
if (!ok) { ok = true; break; }
|
||||
double arg2 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(2), &arg2) && !isnan(arg2);
|
||||
ok &= JS::ToNumber( cx, args.get(2), &arg2) && !std::isnan(arg2);
|
||||
if (!ok) { ok = true; break; }
|
||||
cobj = new (std::nothrow) spine::SkeletonAnimation(arg0, arg1, arg2);
|
||||
|
||||
|
|
|
@ -34,7 +34,7 @@ bool js_cocos2dx_studio_ActionObject_setCurrentTime(JSContext *cx, uint32_t argc
|
|||
JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_studio_ActionObject_setCurrentTime : Invalid Native Object");
|
||||
if (argc == 1) {
|
||||
double arg0 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_studio_ActionObject_setCurrentTime : Error processing arguments");
|
||||
cobj->setCurrentTime(arg0);
|
||||
args.rval().setUndefined();
|
||||
|
@ -90,7 +90,7 @@ bool js_cocos2dx_studio_ActionObject_setUnitTime(JSContext *cx, uint32_t argc, j
|
|||
JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_studio_ActionObject_setUnitTime : Invalid Native Object");
|
||||
if (argc == 1) {
|
||||
double arg0 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_studio_ActionObject_setUnitTime : Error processing arguments");
|
||||
cobj->setUnitTime(arg0);
|
||||
args.rval().setUndefined();
|
||||
|
@ -372,7 +372,7 @@ bool js_cocos2dx_studio_ActionObject_updateToFrameByTime(JSContext *cx, uint32_t
|
|||
JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_studio_ActionObject_updateToFrameByTime : Invalid Native Object");
|
||||
if (argc == 1) {
|
||||
double arg0 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_studio_ActionObject_updateToFrameByTime : Error processing arguments");
|
||||
cobj->updateToFrameByTime(arg0);
|
||||
args.rval().setUndefined();
|
||||
|
@ -412,7 +412,7 @@ bool js_cocos2dx_studio_ActionObject_simulationActionUpdate(JSContext *cx, uint3
|
|||
JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_studio_ActionObject_simulationActionUpdate : Invalid Native Object");
|
||||
if (argc == 1) {
|
||||
double arg0 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_studio_ActionObject_simulationActionUpdate : Error processing arguments");
|
||||
cobj->simulationActionUpdate(arg0);
|
||||
args.rval().setUndefined();
|
||||
|
@ -557,6 +557,24 @@ bool js_cocos2dx_studio_ActionManagerEx_getActionByName(JSContext *cx, uint32_t
|
|||
JS_ReportError(cx, "js_cocos2dx_studio_ActionManagerEx_getActionByName : wrong number of arguments: %d, was expecting %d", argc, 2);
|
||||
return false;
|
||||
}
|
||||
bool js_cocos2dx_studio_ActionManagerEx_getStudioVersionNumber(JSContext *cx, uint32_t argc, jsval *vp)
|
||||
{
|
||||
JS::CallArgs args = JS::CallArgsFromVp(argc, vp);
|
||||
JS::RootedObject obj(cx, args.thisv().toObjectOrNull());
|
||||
js_proxy_t *proxy = jsb_get_js_proxy(obj);
|
||||
cocostudio::ActionManagerEx* cobj = (cocostudio::ActionManagerEx *)(proxy ? proxy->ptr : NULL);
|
||||
JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_studio_ActionManagerEx_getStudioVersionNumber : Invalid Native Object");
|
||||
if (argc == 0) {
|
||||
int ret = cobj->getStudioVersionNumber();
|
||||
jsval jsret = JSVAL_NULL;
|
||||
jsret = int32_to_jsval(cx, ret);
|
||||
args.rval().set(jsret);
|
||||
return true;
|
||||
}
|
||||
|
||||
JS_ReportError(cx, "js_cocos2dx_studio_ActionManagerEx_getStudioVersionNumber : wrong number of arguments: %d, was expecting %d", argc, 0);
|
||||
return false;
|
||||
}
|
||||
bool js_cocos2dx_studio_ActionManagerEx_initWithBinary(JSContext *cx, uint32_t argc, jsval *vp)
|
||||
{
|
||||
JS::CallArgs args = JS::CallArgsFromVp(argc, vp);
|
||||
|
@ -728,6 +746,7 @@ void js_register_cocos2dx_studio_ActionManagerEx(JSContext *cx, JS::HandleObject
|
|||
static JSFunctionSpec funcs[] = {
|
||||
JS_FN("stopActionByName", js_cocos2dx_studio_ActionManagerEx_stopActionByName, 2, JSPROP_PERMANENT | JSPROP_ENUMERATE),
|
||||
JS_FN("getActionByName", js_cocos2dx_studio_ActionManagerEx_getActionByName, 2, JSPROP_PERMANENT | JSPROP_ENUMERATE),
|
||||
JS_FN("getStudioVersionNumber", js_cocos2dx_studio_ActionManagerEx_getStudioVersionNumber, 0, JSPROP_PERMANENT | JSPROP_ENUMERATE),
|
||||
JS_FN("initWithBinary", js_cocos2dx_studio_ActionManagerEx_initWithBinary, 4, JSPROP_PERMANENT | JSPROP_ENUMERATE),
|
||||
JS_FN("playActionByName", js_cocos2dx_studio_ActionManagerEx_playActionByName, 2, JSPROP_PERMANENT | JSPROP_ENUMERATE),
|
||||
JS_FN("releaseActions", js_cocos2dx_studio_ActionManagerEx_releaseActions, 0, JSPROP_PERMANENT | JSPROP_ENUMERATE),
|
||||
|
@ -1565,7 +1584,7 @@ bool js_cocos2dx_studio_ProcessBase_update(JSContext *cx, uint32_t argc, jsval *
|
|||
JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_studio_ProcessBase_update : Invalid Native Object");
|
||||
if (argc == 1) {
|
||||
double arg0 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_studio_ProcessBase_update : Error processing arguments");
|
||||
cobj->update(arg0);
|
||||
args.rval().setUndefined();
|
||||
|
@ -1713,7 +1732,7 @@ bool js_cocos2dx_studio_ProcessBase_setProcessScale(JSContext *cx, uint32_t argc
|
|||
JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_studio_ProcessBase_setProcessScale : Invalid Native Object");
|
||||
if (argc == 1) {
|
||||
double arg0 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_studio_ProcessBase_setProcessScale : Error processing arguments");
|
||||
cobj->setProcessScale(arg0);
|
||||
args.rval().setUndefined();
|
||||
|
@ -2979,10 +2998,10 @@ bool js_cocos2dx_studio_DisplayManager_containPoint(JSContext *cx, uint32_t argc
|
|||
do {
|
||||
if (argc == 2) {
|
||||
double arg0 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
if (!ok) { ok = true; break; }
|
||||
double arg1 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(1), &arg1) && !isnan(arg1);
|
||||
ok &= JS::ToNumber( cx, args.get(1), &arg1) && !std::isnan(arg1);
|
||||
if (!ok) { ok = true; break; }
|
||||
bool ret = cobj->containPoint(arg0, arg1);
|
||||
jsval jsret = JSVAL_NULL;
|
||||
|
@ -4422,7 +4441,7 @@ bool js_cocos2dx_studio_ArmatureAnimation_setSpeedScale(JSContext *cx, uint32_t
|
|||
JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_studio_ArmatureAnimation_setSpeedScale : Invalid Native Object");
|
||||
if (argc == 1) {
|
||||
double arg0 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_studio_ArmatureAnimation_setSpeedScale : Error processing arguments");
|
||||
cobj->setSpeedScale(arg0);
|
||||
args.rval().setUndefined();
|
||||
|
@ -5374,8 +5393,8 @@ bool js_cocos2dx_studio_Armature_getBoneAtPoint(JSContext *cx, uint32_t argc, js
|
|||
if (argc == 2) {
|
||||
double arg0 = 0;
|
||||
double arg1 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(1), &arg1) && !isnan(arg1);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(1), &arg1) && !std::isnan(arg1);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_studio_Armature_getBoneAtPoint : Error processing arguments");
|
||||
cocostudio::Bone* ret = cobj->getBoneAtPoint(arg0, arg1);
|
||||
jsval jsret = JSVAL_NULL;
|
||||
|
@ -5419,7 +5438,7 @@ bool js_cocos2dx_studio_Armature_setVersion(JSContext *cx, uint32_t argc, jsval
|
|||
JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_studio_Armature_setVersion : Invalid Native Object");
|
||||
if (argc == 1) {
|
||||
double arg0 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_studio_Armature_setVersion : Error processing arguments");
|
||||
cobj->setVersion(arg0);
|
||||
args.rval().setUndefined();
|
||||
|
@ -6264,7 +6283,7 @@ bool js_cocos2dx_studio_ComAttribute_getFloat(JSContext *cx, uint32_t argc, jsva
|
|||
std::string arg0;
|
||||
double arg1 = 0;
|
||||
ok &= jsval_to_std_string(cx, args.get(0), &arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(1), &arg1) && !isnan(arg1);
|
||||
ok &= JS::ToNumber( cx, args.get(1), &arg1) && !std::isnan(arg1);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_studio_ComAttribute_getFloat : Error processing arguments");
|
||||
double ret = cobj->getFloat(arg0, arg1);
|
||||
jsval jsret = JSVAL_NULL;
|
||||
|
@ -6356,7 +6375,7 @@ bool js_cocos2dx_studio_ComAttribute_setFloat(JSContext *cx, uint32_t argc, jsva
|
|||
std::string arg0;
|
||||
double arg1 = 0;
|
||||
ok &= jsval_to_std_string(cx, args.get(0), &arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(1), &arg1) && !isnan(arg1);
|
||||
ok &= JS::ToNumber( cx, args.get(1), &arg1) && !std::isnan(arg1);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_studio_ComAttribute_setFloat : Error processing arguments");
|
||||
cobj->setFloat(arg0, arg1);
|
||||
args.rval().setUndefined();
|
||||
|
@ -6679,7 +6698,7 @@ bool js_cocos2dx_studio_ComAudio_setBackgroundMusicVolume(JSContext *cx, uint32_
|
|||
JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_studio_ComAudio_setBackgroundMusicVolume : Invalid Native Object");
|
||||
if (argc == 1) {
|
||||
double arg0 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_studio_ComAudio_setBackgroundMusicVolume : Error processing arguments");
|
||||
cobj->setBackgroundMusicVolume(arg0);
|
||||
args.rval().setUndefined();
|
||||
|
@ -7113,7 +7132,7 @@ bool js_cocos2dx_studio_ComAudio_setEffectsVolume(JSContext *cx, uint32_t argc,
|
|||
JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_studio_ComAudio_setEffectsVolume : Invalid Native Object");
|
||||
if (argc == 1) {
|
||||
double arg0 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_studio_ComAudio_setEffectsVolume : Error processing arguments");
|
||||
cobj->setEffectsVolume(arg0);
|
||||
args.rval().setUndefined();
|
||||
|
@ -7986,7 +8005,7 @@ bool js_cocos2dx_studio_Frame_apply(JSContext *cx, uint32_t argc, jsval *vp)
|
|||
JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_studio_Frame_apply : Invalid Native Object");
|
||||
if (argc == 1) {
|
||||
double arg0 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_studio_Frame_apply : Error processing arguments");
|
||||
cobj->apply(arg0);
|
||||
args.rval().setUndefined();
|
||||
|
@ -8410,7 +8429,7 @@ bool js_cocos2dx_studio_RotationFrame_setRotation(JSContext *cx, uint32_t argc,
|
|||
JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_studio_RotationFrame_setRotation : Invalid Native Object");
|
||||
if (argc == 1) {
|
||||
double arg0 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_studio_RotationFrame_setRotation : Error processing arguments");
|
||||
cobj->setRotation(arg0);
|
||||
args.rval().setUndefined();
|
||||
|
@ -8550,7 +8569,7 @@ bool js_cocos2dx_studio_SkewFrame_setSkewX(JSContext *cx, uint32_t argc, jsval *
|
|||
JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_studio_SkewFrame_setSkewX : Invalid Native Object");
|
||||
if (argc == 1) {
|
||||
double arg0 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_studio_SkewFrame_setSkewX : Error processing arguments");
|
||||
cobj->setSkewX(arg0);
|
||||
args.rval().setUndefined();
|
||||
|
@ -8570,7 +8589,7 @@ bool js_cocos2dx_studio_SkewFrame_setSkewY(JSContext *cx, uint32_t argc, jsval *
|
|||
JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_studio_SkewFrame_setSkewY : Invalid Native Object");
|
||||
if (argc == 1) {
|
||||
double arg0 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_studio_SkewFrame_setSkewY : Error processing arguments");
|
||||
cobj->setSkewY(arg0);
|
||||
args.rval().setUndefined();
|
||||
|
@ -8832,7 +8851,7 @@ bool js_cocos2dx_studio_PositionFrame_setX(JSContext *cx, uint32_t argc, jsval *
|
|||
JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_studio_PositionFrame_setX : Invalid Native Object");
|
||||
if (argc == 1) {
|
||||
double arg0 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_studio_PositionFrame_setX : Error processing arguments");
|
||||
cobj->setX(arg0);
|
||||
args.rval().setUndefined();
|
||||
|
@ -8852,7 +8871,7 @@ bool js_cocos2dx_studio_PositionFrame_setY(JSContext *cx, uint32_t argc, jsval *
|
|||
JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_studio_PositionFrame_setY : Invalid Native Object");
|
||||
if (argc == 1) {
|
||||
double arg0 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_studio_PositionFrame_setY : Error processing arguments");
|
||||
cobj->setY(arg0);
|
||||
args.rval().setUndefined();
|
||||
|
@ -8978,7 +8997,7 @@ bool js_cocos2dx_studio_ScaleFrame_setScaleY(JSContext *cx, uint32_t argc, jsval
|
|||
JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_studio_ScaleFrame_setScaleY : Invalid Native Object");
|
||||
if (argc == 1) {
|
||||
double arg0 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_studio_ScaleFrame_setScaleY : Error processing arguments");
|
||||
cobj->setScaleY(arg0);
|
||||
args.rval().setUndefined();
|
||||
|
@ -8998,7 +9017,7 @@ bool js_cocos2dx_studio_ScaleFrame_setScaleX(JSContext *cx, uint32_t argc, jsval
|
|||
JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_studio_ScaleFrame_setScaleX : Invalid Native Object");
|
||||
if (argc == 1) {
|
||||
double arg0 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_studio_ScaleFrame_setScaleX : Error processing arguments");
|
||||
cobj->setScaleX(arg0);
|
||||
args.rval().setUndefined();
|
||||
|
@ -9054,7 +9073,7 @@ bool js_cocos2dx_studio_ScaleFrame_setScale(JSContext *cx, uint32_t argc, jsval
|
|||
JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_studio_ScaleFrame_setScale : Invalid Native Object");
|
||||
if (argc == 1) {
|
||||
double arg0 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_studio_ScaleFrame_setScale : Error processing arguments");
|
||||
cobj->setScale(arg0);
|
||||
args.rval().setUndefined();
|
||||
|
@ -11407,7 +11426,7 @@ bool js_cocos2dx_studio_ActionTimeline_setTimeSpeed(JSContext *cx, uint32_t argc
|
|||
JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_studio_ActionTimeline_setTimeSpeed : Invalid Native Object");
|
||||
if (argc == 1) {
|
||||
double arg0 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_studio_ActionTimeline_setTimeSpeed : Error processing arguments");
|
||||
cobj->setTimeSpeed(arg0);
|
||||
args.rval().setUndefined();
|
||||
|
@ -11929,7 +11948,7 @@ bool js_cocos2dx_studio_BoneNode_setDebugDrawLength(JSContext *cx, uint32_t argc
|
|||
JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_studio_BoneNode_setDebugDrawLength : Invalid Native Object");
|
||||
if (argc == 1) {
|
||||
double arg0 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_studio_BoneNode_setDebugDrawLength : Error processing arguments");
|
||||
cobj->setDebugDrawLength(arg0);
|
||||
args.rval().setUndefined();
|
||||
|
@ -12001,7 +12020,7 @@ bool js_cocos2dx_studio_BoneNode_setDebugDrawWidth(JSContext *cx, uint32_t argc,
|
|||
JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_studio_BoneNode_setDebugDrawWidth : Invalid Native Object");
|
||||
if (argc == 1) {
|
||||
double arg0 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_studio_BoneNode_setDebugDrawWidth : Error processing arguments");
|
||||
cobj->setDebugDrawWidth(arg0);
|
||||
args.rval().setUndefined();
|
||||
|
|
|
@ -41,6 +41,7 @@ void js_register_cocos2dx_studio_ActionManagerEx(JSContext *cx, JS::HandleObject
|
|||
void register_all_cocos2dx_studio(JSContext* cx, JS::HandleObject obj);
|
||||
bool js_cocos2dx_studio_ActionManagerEx_stopActionByName(JSContext *cx, uint32_t argc, jsval *vp);
|
||||
bool js_cocos2dx_studio_ActionManagerEx_getActionByName(JSContext *cx, uint32_t argc, jsval *vp);
|
||||
bool js_cocos2dx_studio_ActionManagerEx_getStudioVersionNumber(JSContext *cx, uint32_t argc, jsval *vp);
|
||||
bool js_cocos2dx_studio_ActionManagerEx_initWithBinary(JSContext *cx, uint32_t argc, jsval *vp);
|
||||
bool js_cocos2dx_studio_ActionManagerEx_playActionByName(JSContext *cx, uint32_t argc, jsval *vp);
|
||||
bool js_cocos2dx_studio_ActionManagerEx_releaseActions(JSContext *cx, uint32_t argc, jsval *vp);
|
||||
|
|
|
@ -3100,7 +3100,7 @@ bool js_cocos2dx_ui_Button_setTitleFontSize(JSContext *cx, uint32_t argc, jsval
|
|||
JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_ui_Button_setTitleFontSize : Invalid Native Object");
|
||||
if (argc == 1) {
|
||||
double arg0 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_ui_Button_setTitleFontSize : Error processing arguments");
|
||||
cobj->setTitleFontSize(arg0);
|
||||
args.rval().setUndefined();
|
||||
|
@ -3875,7 +3875,7 @@ bool js_cocos2dx_ui_Button_setZoomScale(JSContext *cx, uint32_t argc, jsval *vp)
|
|||
JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_ui_Button_setZoomScale : Invalid Native Object");
|
||||
if (argc == 1) {
|
||||
double arg0 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_ui_Button_setZoomScale : Error processing arguments");
|
||||
cobj->setZoomScale(arg0);
|
||||
args.rval().setUndefined();
|
||||
|
@ -4591,7 +4591,7 @@ bool js_cocos2dx_ui_AbstractCheckButton_setZoomScale(JSContext *cx, uint32_t arg
|
|||
JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_ui_AbstractCheckButton_setZoomScale : Invalid Native Object");
|
||||
if (argc == 1) {
|
||||
double arg0 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_ui_AbstractCheckButton_setZoomScale : Error processing arguments");
|
||||
cobj->setZoomScale(arg0);
|
||||
args.rval().setUndefined();
|
||||
|
@ -6233,7 +6233,7 @@ bool js_cocos2dx_ui_Text_init(JSContext *cx, uint32_t argc, jsval *vp)
|
|||
double arg2 = 0;
|
||||
ok &= jsval_to_std_string(cx, args.get(0), &arg0);
|
||||
ok &= jsval_to_std_string(cx, args.get(1), &arg1);
|
||||
ok &= JS::ToNumber( cx, args.get(2), &arg2) && !isnan(arg2);
|
||||
ok &= JS::ToNumber( cx, args.get(2), &arg2) && !std::isnan(arg2);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_ui_Text_init : Error processing arguments");
|
||||
bool ret = cobj->init(arg0, arg1, arg2);
|
||||
jsval jsret = JSVAL_NULL;
|
||||
|
@ -6467,7 +6467,7 @@ bool js_cocos2dx_ui_Text_setFontSize(JSContext *cx, uint32_t argc, jsval *vp)
|
|||
JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_ui_Text_setFontSize : Invalid Native Object");
|
||||
if (argc == 1) {
|
||||
double arg0 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_ui_Text_setFontSize : Error processing arguments");
|
||||
cobj->setFontSize(arg0);
|
||||
args.rval().setUndefined();
|
||||
|
@ -6605,7 +6605,7 @@ bool js_cocos2dx_ui_Text_create(JSContext *cx, uint32_t argc, jsval *vp)
|
|||
ok &= jsval_to_std_string(cx, args.get(1), &arg1);
|
||||
if (!ok) { ok = true; break; }
|
||||
double arg2 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(2), &arg2) && !isnan(arg2);
|
||||
ok &= JS::ToNumber( cx, args.get(2), &arg2) && !std::isnan(arg2);
|
||||
if (!ok) { ok = true; break; }
|
||||
cocos2d::ui::Text* ret = cocos2d::ui::Text::create(arg0, arg1, arg2);
|
||||
jsval jsret = JSVAL_NULL;
|
||||
|
@ -7016,7 +7016,7 @@ bool js_cocos2dx_ui_LoadingBar_setPercent(JSContext *cx, uint32_t argc, jsval *v
|
|||
JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_ui_LoadingBar_setPercent : Invalid Native Object");
|
||||
if (argc == 1) {
|
||||
double arg0 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_ui_LoadingBar_setPercent : Error processing arguments");
|
||||
cobj->setPercent(arg0);
|
||||
args.rval().setUndefined();
|
||||
|
@ -7233,7 +7233,7 @@ bool js_cocos2dx_ui_LoadingBar_create(JSContext *cx, uint32_t argc, jsval *vp)
|
|||
ok &= jsval_to_std_string(cx, args.get(0), &arg0);
|
||||
if (!ok) { ok = true; break; }
|
||||
double arg1 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(1), &arg1) && !isnan(arg1);
|
||||
ok &= JS::ToNumber( cx, args.get(1), &arg1) && !std::isnan(arg1);
|
||||
if (!ok) { ok = true; break; }
|
||||
cocos2d::ui::LoadingBar* ret = cocos2d::ui::LoadingBar::create(arg0, arg1);
|
||||
jsval jsret = JSVAL_NULL;
|
||||
|
@ -7289,7 +7289,7 @@ bool js_cocos2dx_ui_LoadingBar_create(JSContext *cx, uint32_t argc, jsval *vp)
|
|||
ok &= jsval_to_int32(cx, args.get(1), (int32_t *)&arg1);
|
||||
if (!ok) { ok = true; break; }
|
||||
double arg2 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(2), &arg2) && !isnan(arg2);
|
||||
ok &= JS::ToNumber( cx, args.get(2), &arg2) && !std::isnan(arg2);
|
||||
if (!ok) { ok = true; break; }
|
||||
cocos2d::ui::LoadingBar* ret = cocos2d::ui::LoadingBar::create(arg0, arg1, arg2);
|
||||
jsval jsret = JSVAL_NULL;
|
||||
|
@ -7409,7 +7409,7 @@ bool js_cocos2dx_ui_ScrollView_scrollToTop(JSContext *cx, uint32_t argc, jsval *
|
|||
if (argc == 2) {
|
||||
double arg0 = 0;
|
||||
bool arg1;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
arg1 = JS::ToBoolean(args.get(1));
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_ui_ScrollView_scrollToTop : Error processing arguments");
|
||||
cobj->scrollToTop(arg0, arg1);
|
||||
|
@ -7432,8 +7432,8 @@ bool js_cocos2dx_ui_ScrollView_scrollToPercentHorizontal(JSContext *cx, uint32_t
|
|||
double arg0 = 0;
|
||||
double arg1 = 0;
|
||||
bool arg2;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(1), &arg1) && !isnan(arg1);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(1), &arg1) && !std::isnan(arg1);
|
||||
arg2 = JS::ToBoolean(args.get(2));
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_ui_ScrollView_scrollToPercentHorizontal : Error processing arguments");
|
||||
cobj->scrollToPercentHorizontal(arg0, arg1, arg2);
|
||||
|
@ -7513,7 +7513,7 @@ bool js_cocos2dx_ui_ScrollView_scrollToBottom(JSContext *cx, uint32_t argc, jsva
|
|||
if (argc == 2) {
|
||||
double arg0 = 0;
|
||||
bool arg1;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
arg1 = JS::ToBoolean(args.get(1));
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_ui_ScrollView_scrollToBottom : Error processing arguments");
|
||||
cobj->scrollToBottom(arg0, arg1);
|
||||
|
@ -7573,7 +7573,7 @@ bool js_cocos2dx_ui_ScrollView_scrollToBottomLeft(JSContext *cx, uint32_t argc,
|
|||
if (argc == 2) {
|
||||
double arg0 = 0;
|
||||
bool arg1;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
arg1 = JS::ToBoolean(args.get(1));
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_ui_ScrollView_scrollToBottomLeft : Error processing arguments");
|
||||
cobj->scrollToBottomLeft(arg0, arg1);
|
||||
|
@ -7673,7 +7673,7 @@ bool js_cocos2dx_ui_ScrollView_scrollToTopLeft(JSContext *cx, uint32_t argc, jsv
|
|||
if (argc == 2) {
|
||||
double arg0 = 0;
|
||||
bool arg1;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
arg1 = JS::ToBoolean(args.get(1));
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_ui_ScrollView_scrollToTopLeft : Error processing arguments");
|
||||
cobj->scrollToTopLeft(arg0, arg1);
|
||||
|
@ -7713,7 +7713,7 @@ bool js_cocos2dx_ui_ScrollView_scrollToPercentBothDirection(JSContext *cx, uint3
|
|||
double arg1 = 0;
|
||||
bool arg2;
|
||||
ok &= jsval_to_vector2(cx, args.get(0), &arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(1), &arg1) && !isnan(arg1);
|
||||
ok &= JS::ToNumber( cx, args.get(1), &arg1) && !std::isnan(arg1);
|
||||
arg2 = JS::ToBoolean(args.get(2));
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_ui_ScrollView_scrollToPercentBothDirection : Error processing arguments");
|
||||
cobj->scrollToPercentBothDirection(arg0, arg1, arg2);
|
||||
|
@ -7808,7 +7808,7 @@ bool js_cocos2dx_ui_ScrollView_jumpToPercentVertical(JSContext *cx, uint32_t arg
|
|||
JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_ui_ScrollView_jumpToPercentVertical : Invalid Native Object");
|
||||
if (argc == 1) {
|
||||
double arg0 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_ui_ScrollView_jumpToPercentVertical : Error processing arguments");
|
||||
cobj->jumpToPercentVertical(arg0);
|
||||
args.rval().setUndefined();
|
||||
|
@ -7875,7 +7875,7 @@ bool js_cocos2dx_ui_ScrollView_setScrollBarAutoHideTime(JSContext *cx, uint32_t
|
|||
JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_ui_ScrollView_setScrollBarAutoHideTime : Invalid Native Object");
|
||||
if (argc == 1) {
|
||||
double arg0 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_ui_ScrollView_setScrollBarAutoHideTime : Error processing arguments");
|
||||
cobj->setScrollBarAutoHideTime(arg0);
|
||||
args.rval().setUndefined();
|
||||
|
@ -7989,7 +7989,7 @@ bool js_cocos2dx_ui_ScrollView_jumpToPercentHorizontal(JSContext *cx, uint32_t a
|
|||
JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_ui_ScrollView_jumpToPercentHorizontal : Invalid Native Object");
|
||||
if (argc == 1) {
|
||||
double arg0 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_ui_ScrollView_jumpToPercentHorizontal : Error processing arguments");
|
||||
cobj->jumpToPercentHorizontal(arg0);
|
||||
args.rval().setUndefined();
|
||||
|
@ -8025,7 +8025,7 @@ bool js_cocos2dx_ui_ScrollView_setTouchTotalTimeThreshold(JSContext *cx, uint32_
|
|||
JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_ui_ScrollView_setTouchTotalTimeThreshold : Invalid Native Object");
|
||||
if (argc == 1) {
|
||||
double arg0 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_ui_ScrollView_setTouchTotalTimeThreshold : Error processing arguments");
|
||||
cobj->setTouchTotalTimeThreshold(arg0);
|
||||
args.rval().setUndefined();
|
||||
|
@ -8081,7 +8081,7 @@ bool js_cocos2dx_ui_ScrollView_setScrollBarWidth(JSContext *cx, uint32_t argc, j
|
|||
JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_ui_ScrollView_setScrollBarWidth : Invalid Native Object");
|
||||
if (argc == 1) {
|
||||
double arg0 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_ui_ScrollView_setScrollBarWidth : Error processing arguments");
|
||||
cobj->setScrollBarWidth(arg0);
|
||||
args.rval().setUndefined();
|
||||
|
@ -8154,7 +8154,7 @@ bool js_cocos2dx_ui_ScrollView_scrollToLeft(JSContext *cx, uint32_t argc, jsval
|
|||
if (argc == 2) {
|
||||
double arg0 = 0;
|
||||
bool arg1;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
arg1 = JS::ToBoolean(args.get(1));
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_ui_ScrollView_scrollToLeft : Error processing arguments");
|
||||
cobj->scrollToLeft(arg0, arg1);
|
||||
|
@ -8215,8 +8215,8 @@ bool js_cocos2dx_ui_ScrollView_scrollToPercentVertical(JSContext *cx, uint32_t a
|
|||
double arg0 = 0;
|
||||
double arg1 = 0;
|
||||
bool arg2;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(1), &arg1) && !isnan(arg1);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(1), &arg1) && !std::isnan(arg1);
|
||||
arg2 = JS::ToBoolean(args.get(2));
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_ui_ScrollView_scrollToPercentVertical : Error processing arguments");
|
||||
cobj->scrollToPercentVertical(arg0, arg1, arg2);
|
||||
|
@ -8256,7 +8256,7 @@ bool js_cocos2dx_ui_ScrollView_scrollToBottomRight(JSContext *cx, uint32_t argc,
|
|||
if (argc == 2) {
|
||||
double arg0 = 0;
|
||||
bool arg1;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
arg1 = JS::ToBoolean(args.get(1));
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_ui_ScrollView_scrollToBottomRight : Error processing arguments");
|
||||
cobj->scrollToBottomRight(arg0, arg1);
|
||||
|
@ -8352,7 +8352,7 @@ bool js_cocos2dx_ui_ScrollView_scrollToRight(JSContext *cx, uint32_t argc, jsval
|
|||
if (argc == 2) {
|
||||
double arg0 = 0;
|
||||
bool arg1;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
arg1 = JS::ToBoolean(args.get(1));
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_ui_ScrollView_scrollToRight : Error processing arguments");
|
||||
cobj->scrollToRight(arg0, arg1);
|
||||
|
@ -8460,7 +8460,7 @@ bool js_cocos2dx_ui_ScrollView_scrollToTopRight(JSContext *cx, uint32_t argc, js
|
|||
if (argc == 2) {
|
||||
double arg0 = 0;
|
||||
bool arg1;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
arg1 = JS::ToBoolean(args.get(1));
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_ui_ScrollView_scrollToTopRight : Error processing arguments");
|
||||
cobj->scrollToTopRight(arg0, arg1);
|
||||
|
@ -9032,7 +9032,7 @@ bool js_cocos2dx_ui_ListView_setItemsMargin(JSContext *cx, uint32_t argc, jsval
|
|||
JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_ui_ListView_setItemsMargin : Invalid Native Object");
|
||||
if (argc == 1) {
|
||||
double arg0 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_ui_ListView_setItemsMargin : Error processing arguments");
|
||||
cobj->setItemsMargin(arg0);
|
||||
args.rval().setUndefined();
|
||||
|
@ -9129,7 +9129,7 @@ bool js_cocos2dx_ui_ListView_scrollToItem(JSContext *cx, uint32_t argc, jsval *v
|
|||
ok &= jsval_to_vector2(cx, args.get(2), &arg2);
|
||||
if (!ok) { ok = true; break; }
|
||||
double arg3 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(3), &arg3) && !isnan(arg3);
|
||||
ok &= JS::ToNumber( cx, args.get(3), &arg3) && !std::isnan(arg3);
|
||||
if (!ok) { ok = true; break; }
|
||||
cobj->scrollToItem(arg0, arg1, arg2, arg3);
|
||||
args.rval().setUndefined();
|
||||
|
@ -10036,7 +10036,7 @@ bool js_cocos2dx_ui_Slider_setZoomScale(JSContext *cx, uint32_t argc, jsval *vp)
|
|||
JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_ui_Slider_setZoomScale : Invalid Native Object");
|
||||
if (argc == 1) {
|
||||
double arg0 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_ui_Slider_setZoomScale : Error processing arguments");
|
||||
cobj->setZoomScale(arg0);
|
||||
args.rval().setUndefined();
|
||||
|
@ -10749,7 +10749,7 @@ bool js_cocos2dx_ui_UICCTextField_create(JSContext *cx, uint32_t argc, jsval *vp
|
|||
double arg2 = 0;
|
||||
ok &= jsval_to_std_string(cx, args.get(0), &arg0);
|
||||
ok &= jsval_to_std_string(cx, args.get(1), &arg1);
|
||||
ok &= JS::ToNumber( cx, args.get(2), &arg2) && !isnan(arg2);
|
||||
ok &= JS::ToNumber( cx, args.get(2), &arg2) && !std::isnan(arg2);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_ui_UICCTextField_create : Error processing arguments");
|
||||
|
||||
auto ret = cocos2d::ui::UICCTextField::create(arg0, arg1, arg2);
|
||||
|
@ -12183,7 +12183,7 @@ bool js_cocos2dx_ui_PageView_setIndicatorSpaceBetweenIndexNodes(JSContext *cx, u
|
|||
JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_ui_PageView_setIndicatorSpaceBetweenIndexNodes : Invalid Native Object");
|
||||
if (argc == 1) {
|
||||
double arg0 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_ui_PageView_setIndicatorSpaceBetweenIndexNodes : Error processing arguments");
|
||||
cobj->setIndicatorSpaceBetweenIndexNodes(arg0);
|
||||
args.rval().setUndefined();
|
||||
|
@ -12223,6 +12223,22 @@ bool js_cocos2dx_ui_PageView_insertPage(JSContext *cx, uint32_t argc, jsval *vp)
|
|||
JS_ReportError(cx, "js_cocos2dx_ui_PageView_insertPage : wrong number of arguments: %d, was expecting %d", argc, 2);
|
||||
return false;
|
||||
}
|
||||
bool js_cocos2dx_ui_PageView_removeAllPages(JSContext *cx, uint32_t argc, jsval *vp)
|
||||
{
|
||||
JS::CallArgs args = JS::CallArgsFromVp(argc, vp);
|
||||
JS::RootedObject obj(cx, args.thisv().toObjectOrNull());
|
||||
js_proxy_t *proxy = jsb_get_js_proxy(obj);
|
||||
cocos2d::ui::PageView* cobj = (cocos2d::ui::PageView *)(proxy ? proxy->ptr : NULL);
|
||||
JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_ui_PageView_removeAllPages : Invalid Native Object");
|
||||
if (argc == 0) {
|
||||
cobj->removeAllPages();
|
||||
args.rval().setUndefined();
|
||||
return true;
|
||||
}
|
||||
|
||||
JS_ReportError(cx, "js_cocos2dx_ui_PageView_removeAllPages : wrong number of arguments: %d, was expecting %d", argc, 0);
|
||||
return false;
|
||||
}
|
||||
bool js_cocos2dx_ui_PageView_setAutoScrollStopEpsilon(JSContext *cx, uint32_t argc, jsval *vp)
|
||||
{
|
||||
JS::CallArgs args = JS::CallArgsFromVp(argc, vp);
|
||||
|
@ -12233,7 +12249,7 @@ bool js_cocos2dx_ui_PageView_setAutoScrollStopEpsilon(JSContext *cx, uint32_t ar
|
|||
JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_ui_PageView_setAutoScrollStopEpsilon : Invalid Native Object");
|
||||
if (argc == 1) {
|
||||
double arg0 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_ui_PageView_setAutoScrollStopEpsilon : Error processing arguments");
|
||||
cobj->setAutoScrollStopEpsilon(arg0);
|
||||
args.rval().setUndefined();
|
||||
|
@ -12243,6 +12259,26 @@ bool js_cocos2dx_ui_PageView_setAutoScrollStopEpsilon(JSContext *cx, uint32_t ar
|
|||
JS_ReportError(cx, "js_cocos2dx_ui_PageView_setAutoScrollStopEpsilon : wrong number of arguments: %d, was expecting %d", argc, 1);
|
||||
return false;
|
||||
}
|
||||
bool js_cocos2dx_ui_PageView_setIndicatorIndexNodesScale(JSContext *cx, uint32_t argc, jsval *vp)
|
||||
{
|
||||
JS::CallArgs args = JS::CallArgsFromVp(argc, vp);
|
||||
bool ok = true;
|
||||
JS::RootedObject obj(cx, args.thisv().toObjectOrNull());
|
||||
js_proxy_t *proxy = jsb_get_js_proxy(obj);
|
||||
cocos2d::ui::PageView* cobj = (cocos2d::ui::PageView *)(proxy ? proxy->ptr : NULL);
|
||||
JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_ui_PageView_setIndicatorIndexNodesScale : Invalid Native Object");
|
||||
if (argc == 1) {
|
||||
double arg0 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_ui_PageView_setIndicatorIndexNodesScale : Error processing arguments");
|
||||
cobj->setIndicatorIndexNodesScale(arg0);
|
||||
args.rval().setUndefined();
|
||||
return true;
|
||||
}
|
||||
|
||||
JS_ReportError(cx, "js_cocos2dx_ui_PageView_setIndicatorIndexNodesScale : wrong number of arguments: %d, was expecting %d", argc, 1);
|
||||
return false;
|
||||
}
|
||||
bool js_cocos2dx_ui_PageView_setIndicatorEnabled(JSContext *cx, uint32_t argc, jsval *vp)
|
||||
{
|
||||
JS::CallArgs args = JS::CallArgsFromVp(argc, vp);
|
||||
|
@ -12368,6 +12404,24 @@ bool js_cocos2dx_ui_PageView_setCurrentPageIndex(JSContext *cx, uint32_t argc, j
|
|||
JS_ReportError(cx, "js_cocos2dx_ui_PageView_setCurrentPageIndex : wrong number of arguments: %d, was expecting %d", argc, 1);
|
||||
return false;
|
||||
}
|
||||
bool js_cocos2dx_ui_PageView_getIndicatorIndexNodesColor(JSContext *cx, uint32_t argc, jsval *vp)
|
||||
{
|
||||
JS::CallArgs args = JS::CallArgsFromVp(argc, vp);
|
||||
JS::RootedObject obj(cx, args.thisv().toObjectOrNull());
|
||||
js_proxy_t *proxy = jsb_get_js_proxy(obj);
|
||||
cocos2d::ui::PageView* cobj = (cocos2d::ui::PageView *)(proxy ? proxy->ptr : NULL);
|
||||
JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_ui_PageView_getIndicatorIndexNodesColor : Invalid Native Object");
|
||||
if (argc == 0) {
|
||||
const cocos2d::Color3B& ret = cobj->getIndicatorIndexNodesColor();
|
||||
jsval jsret = JSVAL_NULL;
|
||||
jsret = cccolor3b_to_jsval(cx, ret);
|
||||
args.rval().set(jsret);
|
||||
return true;
|
||||
}
|
||||
|
||||
JS_ReportError(cx, "js_cocos2dx_ui_PageView_getIndicatorIndexNodesColor : wrong number of arguments: %d, was expecting %d", argc, 0);
|
||||
return false;
|
||||
}
|
||||
bool js_cocos2dx_ui_PageView_getIndicatorSelectedIndexColor(JSContext *cx, uint32_t argc, jsval *vp)
|
||||
{
|
||||
JS::CallArgs args = JS::CallArgsFromVp(argc, vp);
|
||||
|
@ -12386,6 +12440,24 @@ bool js_cocos2dx_ui_PageView_getIndicatorSelectedIndexColor(JSContext *cx, uint3
|
|||
JS_ReportError(cx, "js_cocos2dx_ui_PageView_getIndicatorSelectedIndexColor : wrong number of arguments: %d, was expecting %d", argc, 0);
|
||||
return false;
|
||||
}
|
||||
bool js_cocos2dx_ui_PageView_getIndicatorIndexNodesScale(JSContext *cx, uint32_t argc, jsval *vp)
|
||||
{
|
||||
JS::CallArgs args = JS::CallArgsFromVp(argc, vp);
|
||||
JS::RootedObject obj(cx, args.thisv().toObjectOrNull());
|
||||
js_proxy_t *proxy = jsb_get_js_proxy(obj);
|
||||
cocos2d::ui::PageView* cobj = (cocos2d::ui::PageView *)(proxy ? proxy->ptr : NULL);
|
||||
JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_ui_PageView_getIndicatorIndexNodesScale : Invalid Native Object");
|
||||
if (argc == 0) {
|
||||
double ret = cobj->getIndicatorIndexNodesScale();
|
||||
jsval jsret = JSVAL_NULL;
|
||||
jsret = DOUBLE_TO_JSVAL(ret);
|
||||
args.rval().set(jsret);
|
||||
return true;
|
||||
}
|
||||
|
||||
JS_ReportError(cx, "js_cocos2dx_ui_PageView_getIndicatorIndexNodesScale : wrong number of arguments: %d, was expecting %d", argc, 0);
|
||||
return false;
|
||||
}
|
||||
bool js_cocos2dx_ui_PageView_setIndicatorPosition(JSContext *cx, uint32_t argc, jsval *vp)
|
||||
{
|
||||
JS::CallArgs args = JS::CallArgsFromVp(argc, vp);
|
||||
|
@ -12466,20 +12538,24 @@ bool js_cocos2dx_ui_PageView_scrollToItem(JSContext *cx, uint32_t argc, jsval *v
|
|||
JS_ReportError(cx, "js_cocos2dx_ui_PageView_scrollToItem : wrong number of arguments: %d, was expecting %d", argc, 1);
|
||||
return false;
|
||||
}
|
||||
bool js_cocos2dx_ui_PageView_removeAllPages(JSContext *cx, uint32_t argc, jsval *vp)
|
||||
bool js_cocos2dx_ui_PageView_setIndicatorIndexNodesColor(JSContext *cx, uint32_t argc, jsval *vp)
|
||||
{
|
||||
JS::CallArgs args = JS::CallArgsFromVp(argc, vp);
|
||||
bool ok = true;
|
||||
JS::RootedObject obj(cx, args.thisv().toObjectOrNull());
|
||||
js_proxy_t *proxy = jsb_get_js_proxy(obj);
|
||||
cocos2d::ui::PageView* cobj = (cocos2d::ui::PageView *)(proxy ? proxy->ptr : NULL);
|
||||
JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_ui_PageView_removeAllPages : Invalid Native Object");
|
||||
if (argc == 0) {
|
||||
cobj->removeAllPages();
|
||||
JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_ui_PageView_setIndicatorIndexNodesColor : Invalid Native Object");
|
||||
if (argc == 1) {
|
||||
cocos2d::Color3B arg0;
|
||||
ok &= jsval_to_cccolor3b(cx, args.get(0), &arg0);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_ui_PageView_setIndicatorIndexNodesColor : Error processing arguments");
|
||||
cobj->setIndicatorIndexNodesColor(arg0);
|
||||
args.rval().setUndefined();
|
||||
return true;
|
||||
}
|
||||
|
||||
JS_ReportError(cx, "js_cocos2dx_ui_PageView_removeAllPages : wrong number of arguments: %d, was expecting %d", argc, 0);
|
||||
JS_ReportError(cx, "js_cocos2dx_ui_PageView_setIndicatorIndexNodesColor : wrong number of arguments: %d, was expecting %d", argc, 1);
|
||||
return false;
|
||||
}
|
||||
bool js_cocos2dx_ui_PageView_getIndicatorPositionAsAnchorPoint(JSContext *cx, uint32_t argc, jsval *vp)
|
||||
|
@ -12546,6 +12622,36 @@ bool js_cocos2dx_ui_PageView_removePage(JSContext *cx, uint32_t argc, jsval *vp)
|
|||
JS_ReportError(cx, "js_cocos2dx_ui_PageView_removePage : wrong number of arguments: %d, was expecting %d", argc, 1);
|
||||
return false;
|
||||
}
|
||||
bool js_cocos2dx_ui_PageView_setIndicatorIndexNodesTexture(JSContext *cx, uint32_t argc, jsval *vp)
|
||||
{
|
||||
JS::CallArgs args = JS::CallArgsFromVp(argc, vp);
|
||||
bool ok = true;
|
||||
JS::RootedObject obj(cx, args.thisv().toObjectOrNull());
|
||||
js_proxy_t *proxy = jsb_get_js_proxy(obj);
|
||||
cocos2d::ui::PageView* cobj = (cocos2d::ui::PageView *)(proxy ? proxy->ptr : NULL);
|
||||
JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_ui_PageView_setIndicatorIndexNodesTexture : Invalid Native Object");
|
||||
if (argc == 1) {
|
||||
std::string arg0;
|
||||
ok &= jsval_to_std_string(cx, args.get(0), &arg0);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_ui_PageView_setIndicatorIndexNodesTexture : Error processing arguments");
|
||||
cobj->setIndicatorIndexNodesTexture(arg0);
|
||||
args.rval().setUndefined();
|
||||
return true;
|
||||
}
|
||||
if (argc == 2) {
|
||||
std::string arg0;
|
||||
cocos2d::ui::Widget::TextureResType arg1;
|
||||
ok &= jsval_to_std_string(cx, args.get(0), &arg0);
|
||||
ok &= jsval_to_int32(cx, args.get(1), (int32_t *)&arg1);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_ui_PageView_setIndicatorIndexNodesTexture : Error processing arguments");
|
||||
cobj->setIndicatorIndexNodesTexture(arg0, arg1);
|
||||
args.rval().setUndefined();
|
||||
return true;
|
||||
}
|
||||
|
||||
JS_ReportError(cx, "js_cocos2dx_ui_PageView_setIndicatorIndexNodesTexture : wrong number of arguments: %d, was expecting %d", argc, 1);
|
||||
return false;
|
||||
}
|
||||
bool js_cocos2dx_ui_PageView_getIndicatorEnabled(JSContext *cx, uint32_t argc, jsval *vp)
|
||||
{
|
||||
JS::CallArgs args = JS::CallArgsFromVp(argc, vp);
|
||||
|
@ -12697,21 +12803,26 @@ void js_register_cocos2dx_ui_PageView(JSContext *cx, JS::HandleObject global) {
|
|||
static JSFunctionSpec funcs[] = {
|
||||
JS_FN("setIndicatorSpaceBetweenIndexNodes", js_cocos2dx_ui_PageView_setIndicatorSpaceBetweenIndexNodes, 1, JSPROP_PERMANENT | JSPROP_ENUMERATE),
|
||||
JS_FN("insertPage", js_cocos2dx_ui_PageView_insertPage, 2, JSPROP_PERMANENT | JSPROP_ENUMERATE),
|
||||
JS_FN("removeAllPages", js_cocos2dx_ui_PageView_removeAllPages, 0, JSPROP_PERMANENT | JSPROP_ENUMERATE),
|
||||
JS_FN("setAutoScrollStopEpsilon", js_cocos2dx_ui_PageView_setAutoScrollStopEpsilon, 1, JSPROP_PERMANENT | JSPROP_ENUMERATE),
|
||||
JS_FN("setIndicatorIndexNodesScale", js_cocos2dx_ui_PageView_setIndicatorIndexNodesScale, 1, JSPROP_PERMANENT | JSPROP_ENUMERATE),
|
||||
JS_FN("setIndicatorEnabled", js_cocos2dx_ui_PageView_setIndicatorEnabled, 1, JSPROP_PERMANENT | JSPROP_ENUMERATE),
|
||||
JS_FN("setIndicatorSelectedIndexColor", js_cocos2dx_ui_PageView_setIndicatorSelectedIndexColor, 1, JSPROP_PERMANENT | JSPROP_ENUMERATE),
|
||||
JS_FN("addEventListener", js_cocos2dx_ui_PageView_addEventListener, 1, JSPROP_PERMANENT | JSPROP_ENUMERATE),
|
||||
JS_FN("getIndicatorPosition", js_cocos2dx_ui_PageView_getIndicatorPosition, 0, JSPROP_PERMANENT | JSPROP_ENUMERATE),
|
||||
JS_FN("setCurrentPageIndex", js_cocos2dx_ui_PageView_setCurrentPageIndex, 1, JSPROP_PERMANENT | JSPROP_ENUMERATE),
|
||||
JS_FN("getIndicatorIndexNodesColor", js_cocos2dx_ui_PageView_getIndicatorIndexNodesColor, 0, JSPROP_PERMANENT | JSPROP_ENUMERATE),
|
||||
JS_FN("getIndicatorSelectedIndexColor", js_cocos2dx_ui_PageView_getIndicatorSelectedIndexColor, 0, JSPROP_PERMANENT | JSPROP_ENUMERATE),
|
||||
JS_FN("getIndicatorIndexNodesScale", js_cocos2dx_ui_PageView_getIndicatorIndexNodesScale, 0, JSPROP_PERMANENT | JSPROP_ENUMERATE),
|
||||
JS_FN("setIndicatorPosition", js_cocos2dx_ui_PageView_setIndicatorPosition, 1, JSPROP_PERMANENT | JSPROP_ENUMERATE),
|
||||
JS_FN("scrollToPage", js_cocos2dx_ui_PageView_scrollToPage, 1, JSPROP_PERMANENT | JSPROP_ENUMERATE),
|
||||
JS_FN("setIndicatorPositionAsAnchorPoint", js_cocos2dx_ui_PageView_setIndicatorPositionAsAnchorPoint, 1, JSPROP_PERMANENT | JSPROP_ENUMERATE),
|
||||
JS_FN("scrollToItem", js_cocos2dx_ui_PageView_scrollToItem, 1, JSPROP_PERMANENT | JSPROP_ENUMERATE),
|
||||
JS_FN("removeAllPages", js_cocos2dx_ui_PageView_removeAllPages, 0, JSPROP_PERMANENT | JSPROP_ENUMERATE),
|
||||
JS_FN("setIndicatorIndexNodesColor", js_cocos2dx_ui_PageView_setIndicatorIndexNodesColor, 1, JSPROP_PERMANENT | JSPROP_ENUMERATE),
|
||||
JS_FN("getIndicatorPositionAsAnchorPoint", js_cocos2dx_ui_PageView_getIndicatorPositionAsAnchorPoint, 0, JSPROP_PERMANENT | JSPROP_ENUMERATE),
|
||||
JS_FN("getCurrentPageIndex", js_cocos2dx_ui_PageView_getCurrentPageIndex, 0, JSPROP_PERMANENT | JSPROP_ENUMERATE),
|
||||
JS_FN("removePage", js_cocos2dx_ui_PageView_removePage, 1, JSPROP_PERMANENT | JSPROP_ENUMERATE),
|
||||
JS_FN("setIndicatorIndexNodesTexture", js_cocos2dx_ui_PageView_setIndicatorIndexNodesTexture, 1, JSPROP_PERMANENT | JSPROP_ENUMERATE),
|
||||
JS_FN("getIndicatorEnabled", js_cocos2dx_ui_PageView_getIndicatorEnabled, 0, JSPROP_PERMANENT | JSPROP_ENUMERATE),
|
||||
JS_FN("removePageAtIndex", js_cocos2dx_ui_PageView_removePageAtIndex, 1, JSPROP_PERMANENT | JSPROP_ENUMERATE),
|
||||
JS_FN("getIndicatorSpaceBetweenIndexNodes", js_cocos2dx_ui_PageView_getIndicatorSpaceBetweenIndexNodes, 0, JSPROP_PERMANENT | JSPROP_ENUMERATE),
|
||||
|
@ -13184,7 +13295,7 @@ bool js_cocos2dx_ui_RichElementText_init(JSContext *cx, uint32_t argc, jsval *vp
|
|||
ok &= jsval_to_uint16(cx, args.get(2), &arg2);
|
||||
ok &= jsval_to_std_string(cx, args.get(3), &arg3);
|
||||
ok &= jsval_to_std_string(cx, args.get(4), &arg4);
|
||||
ok &= JS::ToNumber( cx, args.get(5), &arg5) && !isnan(arg5);
|
||||
ok &= JS::ToNumber( cx, args.get(5), &arg5) && !std::isnan(arg5);
|
||||
ok &= jsval_to_uint32(cx, args.get(6), &arg6);
|
||||
ok &= jsval_to_std_string(cx, args.get(7), &arg7);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_ui_RichElementText_init : Error processing arguments");
|
||||
|
@ -13209,7 +13320,7 @@ bool js_cocos2dx_ui_RichElementText_init(JSContext *cx, uint32_t argc, jsval *vp
|
|||
ok &= jsval_to_uint16(cx, args.get(2), &arg2);
|
||||
ok &= jsval_to_std_string(cx, args.get(3), &arg3);
|
||||
ok &= jsval_to_std_string(cx, args.get(4), &arg4);
|
||||
ok &= JS::ToNumber( cx, args.get(5), &arg5) && !isnan(arg5);
|
||||
ok &= JS::ToNumber( cx, args.get(5), &arg5) && !std::isnan(arg5);
|
||||
ok &= jsval_to_uint32(cx, args.get(6), &arg6);
|
||||
ok &= jsval_to_std_string(cx, args.get(7), &arg7);
|
||||
ok &= jsval_to_cccolor3b(cx, args.get(8), &arg8);
|
||||
|
@ -13236,7 +13347,7 @@ bool js_cocos2dx_ui_RichElementText_init(JSContext *cx, uint32_t argc, jsval *vp
|
|||
ok &= jsval_to_uint16(cx, args.get(2), &arg2);
|
||||
ok &= jsval_to_std_string(cx, args.get(3), &arg3);
|
||||
ok &= jsval_to_std_string(cx, args.get(4), &arg4);
|
||||
ok &= JS::ToNumber( cx, args.get(5), &arg5) && !isnan(arg5);
|
||||
ok &= JS::ToNumber( cx, args.get(5), &arg5) && !std::isnan(arg5);
|
||||
ok &= jsval_to_uint32(cx, args.get(6), &arg6);
|
||||
ok &= jsval_to_std_string(cx, args.get(7), &arg7);
|
||||
ok &= jsval_to_cccolor3b(cx, args.get(8), &arg8);
|
||||
|
@ -13265,7 +13376,7 @@ bool js_cocos2dx_ui_RichElementText_init(JSContext *cx, uint32_t argc, jsval *vp
|
|||
ok &= jsval_to_uint16(cx, args.get(2), &arg2);
|
||||
ok &= jsval_to_std_string(cx, args.get(3), &arg3);
|
||||
ok &= jsval_to_std_string(cx, args.get(4), &arg4);
|
||||
ok &= JS::ToNumber( cx, args.get(5), &arg5) && !isnan(arg5);
|
||||
ok &= JS::ToNumber( cx, args.get(5), &arg5) && !std::isnan(arg5);
|
||||
ok &= jsval_to_uint32(cx, args.get(6), &arg6);
|
||||
ok &= jsval_to_std_string(cx, args.get(7), &arg7);
|
||||
ok &= jsval_to_cccolor3b(cx, args.get(8), &arg8);
|
||||
|
@ -13296,7 +13407,7 @@ bool js_cocos2dx_ui_RichElementText_init(JSContext *cx, uint32_t argc, jsval *vp
|
|||
ok &= jsval_to_uint16(cx, args.get(2), &arg2);
|
||||
ok &= jsval_to_std_string(cx, args.get(3), &arg3);
|
||||
ok &= jsval_to_std_string(cx, args.get(4), &arg4);
|
||||
ok &= JS::ToNumber( cx, args.get(5), &arg5) && !isnan(arg5);
|
||||
ok &= JS::ToNumber( cx, args.get(5), &arg5) && !std::isnan(arg5);
|
||||
ok &= jsval_to_uint32(cx, args.get(6), &arg6);
|
||||
ok &= jsval_to_std_string(cx, args.get(7), &arg7);
|
||||
ok &= jsval_to_cccolor3b(cx, args.get(8), &arg8);
|
||||
|
@ -13329,7 +13440,7 @@ bool js_cocos2dx_ui_RichElementText_init(JSContext *cx, uint32_t argc, jsval *vp
|
|||
ok &= jsval_to_uint16(cx, args.get(2), &arg2);
|
||||
ok &= jsval_to_std_string(cx, args.get(3), &arg3);
|
||||
ok &= jsval_to_std_string(cx, args.get(4), &arg4);
|
||||
ok &= JS::ToNumber( cx, args.get(5), &arg5) && !isnan(arg5);
|
||||
ok &= JS::ToNumber( cx, args.get(5), &arg5) && !std::isnan(arg5);
|
||||
ok &= jsval_to_uint32(cx, args.get(6), &arg6);
|
||||
ok &= jsval_to_std_string(cx, args.get(7), &arg7);
|
||||
ok &= jsval_to_cccolor3b(cx, args.get(8), &arg8);
|
||||
|
@ -13364,7 +13475,7 @@ bool js_cocos2dx_ui_RichElementText_init(JSContext *cx, uint32_t argc, jsval *vp
|
|||
ok &= jsval_to_uint16(cx, args.get(2), &arg2);
|
||||
ok &= jsval_to_std_string(cx, args.get(3), &arg3);
|
||||
ok &= jsval_to_std_string(cx, args.get(4), &arg4);
|
||||
ok &= JS::ToNumber( cx, args.get(5), &arg5) && !isnan(arg5);
|
||||
ok &= JS::ToNumber( cx, args.get(5), &arg5) && !std::isnan(arg5);
|
||||
ok &= jsval_to_uint32(cx, args.get(6), &arg6);
|
||||
ok &= jsval_to_std_string(cx, args.get(7), &arg7);
|
||||
ok &= jsval_to_cccolor3b(cx, args.get(8), &arg8);
|
||||
|
@ -13400,7 +13511,7 @@ bool js_cocos2dx_ui_RichElementText_create(JSContext *cx, uint32_t argc, jsval *
|
|||
ok &= jsval_to_uint16(cx, args.get(2), &arg2);
|
||||
ok &= jsval_to_std_string(cx, args.get(3), &arg3);
|
||||
ok &= jsval_to_std_string(cx, args.get(4), &arg4);
|
||||
ok &= JS::ToNumber( cx, args.get(5), &arg5) && !isnan(arg5);
|
||||
ok &= JS::ToNumber( cx, args.get(5), &arg5) && !std::isnan(arg5);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_ui_RichElementText_create : Error processing arguments");
|
||||
|
||||
auto ret = cocos2d::ui::RichElementText::create(arg0, arg1, arg2, arg3, arg4, arg5);
|
||||
|
@ -13422,7 +13533,7 @@ bool js_cocos2dx_ui_RichElementText_create(JSContext *cx, uint32_t argc, jsval *
|
|||
ok &= jsval_to_uint16(cx, args.get(2), &arg2);
|
||||
ok &= jsval_to_std_string(cx, args.get(3), &arg3);
|
||||
ok &= jsval_to_std_string(cx, args.get(4), &arg4);
|
||||
ok &= JS::ToNumber( cx, args.get(5), &arg5) && !isnan(arg5);
|
||||
ok &= JS::ToNumber( cx, args.get(5), &arg5) && !std::isnan(arg5);
|
||||
ok &= jsval_to_uint32(cx, args.get(6), &arg6);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_ui_RichElementText_create : Error processing arguments");
|
||||
|
||||
|
@ -13446,7 +13557,7 @@ bool js_cocos2dx_ui_RichElementText_create(JSContext *cx, uint32_t argc, jsval *
|
|||
ok &= jsval_to_uint16(cx, args.get(2), &arg2);
|
||||
ok &= jsval_to_std_string(cx, args.get(3), &arg3);
|
||||
ok &= jsval_to_std_string(cx, args.get(4), &arg4);
|
||||
ok &= JS::ToNumber( cx, args.get(5), &arg5) && !isnan(arg5);
|
||||
ok &= JS::ToNumber( cx, args.get(5), &arg5) && !std::isnan(arg5);
|
||||
ok &= jsval_to_uint32(cx, args.get(6), &arg6);
|
||||
ok &= jsval_to_std_string(cx, args.get(7), &arg7);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_ui_RichElementText_create : Error processing arguments");
|
||||
|
@ -13472,7 +13583,7 @@ bool js_cocos2dx_ui_RichElementText_create(JSContext *cx, uint32_t argc, jsval *
|
|||
ok &= jsval_to_uint16(cx, args.get(2), &arg2);
|
||||
ok &= jsval_to_std_string(cx, args.get(3), &arg3);
|
||||
ok &= jsval_to_std_string(cx, args.get(4), &arg4);
|
||||
ok &= JS::ToNumber( cx, args.get(5), &arg5) && !isnan(arg5);
|
||||
ok &= JS::ToNumber( cx, args.get(5), &arg5) && !std::isnan(arg5);
|
||||
ok &= jsval_to_uint32(cx, args.get(6), &arg6);
|
||||
ok &= jsval_to_std_string(cx, args.get(7), &arg7);
|
||||
ok &= jsval_to_cccolor3b(cx, args.get(8), &arg8);
|
||||
|
@ -13500,7 +13611,7 @@ bool js_cocos2dx_ui_RichElementText_create(JSContext *cx, uint32_t argc, jsval *
|
|||
ok &= jsval_to_uint16(cx, args.get(2), &arg2);
|
||||
ok &= jsval_to_std_string(cx, args.get(3), &arg3);
|
||||
ok &= jsval_to_std_string(cx, args.get(4), &arg4);
|
||||
ok &= JS::ToNumber( cx, args.get(5), &arg5) && !isnan(arg5);
|
||||
ok &= JS::ToNumber( cx, args.get(5), &arg5) && !std::isnan(arg5);
|
||||
ok &= jsval_to_uint32(cx, args.get(6), &arg6);
|
||||
ok &= jsval_to_std_string(cx, args.get(7), &arg7);
|
||||
ok &= jsval_to_cccolor3b(cx, args.get(8), &arg8);
|
||||
|
@ -13530,7 +13641,7 @@ bool js_cocos2dx_ui_RichElementText_create(JSContext *cx, uint32_t argc, jsval *
|
|||
ok &= jsval_to_uint16(cx, args.get(2), &arg2);
|
||||
ok &= jsval_to_std_string(cx, args.get(3), &arg3);
|
||||
ok &= jsval_to_std_string(cx, args.get(4), &arg4);
|
||||
ok &= JS::ToNumber( cx, args.get(5), &arg5) && !isnan(arg5);
|
||||
ok &= JS::ToNumber( cx, args.get(5), &arg5) && !std::isnan(arg5);
|
||||
ok &= jsval_to_uint32(cx, args.get(6), &arg6);
|
||||
ok &= jsval_to_std_string(cx, args.get(7), &arg7);
|
||||
ok &= jsval_to_cccolor3b(cx, args.get(8), &arg8);
|
||||
|
@ -13562,7 +13673,7 @@ bool js_cocos2dx_ui_RichElementText_create(JSContext *cx, uint32_t argc, jsval *
|
|||
ok &= jsval_to_uint16(cx, args.get(2), &arg2);
|
||||
ok &= jsval_to_std_string(cx, args.get(3), &arg3);
|
||||
ok &= jsval_to_std_string(cx, args.get(4), &arg4);
|
||||
ok &= JS::ToNumber( cx, args.get(5), &arg5) && !isnan(arg5);
|
||||
ok &= JS::ToNumber( cx, args.get(5), &arg5) && !std::isnan(arg5);
|
||||
ok &= jsval_to_uint32(cx, args.get(6), &arg6);
|
||||
ok &= jsval_to_std_string(cx, args.get(7), &arg7);
|
||||
ok &= jsval_to_cccolor3b(cx, args.get(8), &arg8);
|
||||
|
@ -13596,7 +13707,7 @@ bool js_cocos2dx_ui_RichElementText_create(JSContext *cx, uint32_t argc, jsval *
|
|||
ok &= jsval_to_uint16(cx, args.get(2), &arg2);
|
||||
ok &= jsval_to_std_string(cx, args.get(3), &arg3);
|
||||
ok &= jsval_to_std_string(cx, args.get(4), &arg4);
|
||||
ok &= JS::ToNumber( cx, args.get(5), &arg5) && !isnan(arg5);
|
||||
ok &= JS::ToNumber( cx, args.get(5), &arg5) && !std::isnan(arg5);
|
||||
ok &= jsval_to_uint32(cx, args.get(6), &arg6);
|
||||
ok &= jsval_to_std_string(cx, args.get(7), &arg7);
|
||||
ok &= jsval_to_cccolor3b(cx, args.get(8), &arg8);
|
||||
|
@ -13632,7 +13743,7 @@ bool js_cocos2dx_ui_RichElementText_create(JSContext *cx, uint32_t argc, jsval *
|
|||
ok &= jsval_to_uint16(cx, args.get(2), &arg2);
|
||||
ok &= jsval_to_std_string(cx, args.get(3), &arg3);
|
||||
ok &= jsval_to_std_string(cx, args.get(4), &arg4);
|
||||
ok &= JS::ToNumber( cx, args.get(5), &arg5) && !isnan(arg5);
|
||||
ok &= JS::ToNumber( cx, args.get(5), &arg5) && !std::isnan(arg5);
|
||||
ok &= jsval_to_uint32(cx, args.get(6), &arg6);
|
||||
ok &= jsval_to_std_string(cx, args.get(7), &arg7);
|
||||
ok &= jsval_to_cccolor3b(cx, args.get(8), &arg8);
|
||||
|
@ -14899,7 +15010,7 @@ bool js_cocos2dx_ui_RichText_setVerticalSpace(JSContext *cx, uint32_t argc, jsva
|
|||
JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_ui_RichText_setVerticalSpace : Invalid Native Object");
|
||||
if (argc == 1) {
|
||||
double arg0 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_ui_RichText_setVerticalSpace : Error processing arguments");
|
||||
cobj->setVerticalSpace(arg0);
|
||||
args.rval().setUndefined();
|
||||
|
@ -14977,7 +15088,7 @@ bool js_cocos2dx_ui_RichText_setFontSize(JSContext *cx, uint32_t argc, jsval *vp
|
|||
JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_ui_RichText_setFontSize : Invalid Native Object");
|
||||
if (argc == 1) {
|
||||
double arg0 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_ui_RichText_setFontSize : Error processing arguments");
|
||||
cobj->setFontSize(arg0);
|
||||
args.rval().setUndefined();
|
||||
|
@ -16118,7 +16229,7 @@ bool js_cocos2dx_ui_Scale9Sprite_setInsetBottom(JSContext *cx, uint32_t argc, js
|
|||
JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_ui_Scale9Sprite_setInsetBottom : Invalid Native Object");
|
||||
if (argc == 1) {
|
||||
double arg0 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_ui_Scale9Sprite_setInsetBottom : Error processing arguments");
|
||||
cobj->setInsetBottom(arg0);
|
||||
args.rval().setUndefined();
|
||||
|
@ -16203,7 +16314,7 @@ bool js_cocos2dx_ui_Scale9Sprite_setInsetTop(JSContext *cx, uint32_t argc, jsval
|
|||
JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_ui_Scale9Sprite_setInsetTop : Invalid Native Object");
|
||||
if (argc == 1) {
|
||||
double arg0 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_ui_Scale9Sprite_setInsetTop : Error processing arguments");
|
||||
cobj->setInsetTop(arg0);
|
||||
args.rval().setUndefined();
|
||||
|
@ -16672,7 +16783,7 @@ bool js_cocos2dx_ui_Scale9Sprite_setInsetLeft(JSContext *cx, uint32_t argc, jsva
|
|||
JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_ui_Scale9Sprite_setInsetLeft : Invalid Native Object");
|
||||
if (argc == 1) {
|
||||
double arg0 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_ui_Scale9Sprite_setInsetLeft : Error processing arguments");
|
||||
cobj->setInsetLeft(arg0);
|
||||
args.rval().setUndefined();
|
||||
|
@ -16825,7 +16936,7 @@ bool js_cocos2dx_ui_Scale9Sprite_setInsetRight(JSContext *cx, uint32_t argc, jsv
|
|||
JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_ui_Scale9Sprite_setInsetRight : Invalid Native Object");
|
||||
if (argc == 1) {
|
||||
double arg0 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_ui_Scale9Sprite_setInsetRight : Error processing arguments");
|
||||
cobj->setInsetRight(arg0);
|
||||
args.rval().setUndefined();
|
||||
|
@ -17899,7 +18010,7 @@ bool js_cocos2dx_ui_LayoutComponent_setPercentWidth(JSContext *cx, uint32_t argc
|
|||
JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_ui_LayoutComponent_setPercentWidth : Invalid Native Object");
|
||||
if (argc == 1) {
|
||||
double arg0 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_ui_LayoutComponent_setPercentWidth : Error processing arguments");
|
||||
cobj->setPercentWidth(arg0);
|
||||
args.rval().setUndefined();
|
||||
|
@ -18125,7 +18236,7 @@ bool js_cocos2dx_ui_LayoutComponent_setSizeWidth(JSContext *cx, uint32_t argc, j
|
|||
JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_ui_LayoutComponent_setSizeWidth : Invalid Native Object");
|
||||
if (argc == 1) {
|
||||
double arg0 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_ui_LayoutComponent_setSizeWidth : Error processing arguments");
|
||||
cobj->setSizeWidth(arg0);
|
||||
args.rval().setUndefined();
|
||||
|
@ -18219,7 +18330,7 @@ bool js_cocos2dx_ui_LayoutComponent_setLeftMargin(JSContext *cx, uint32_t argc,
|
|||
JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_ui_LayoutComponent_setLeftMargin : Invalid Native Object");
|
||||
if (argc == 1) {
|
||||
double arg0 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_ui_LayoutComponent_setLeftMargin : Error processing arguments");
|
||||
cobj->setLeftMargin(arg0);
|
||||
args.rval().setUndefined();
|
||||
|
@ -18331,7 +18442,7 @@ bool js_cocos2dx_ui_LayoutComponent_setTopMargin(JSContext *cx, uint32_t argc, j
|
|||
JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_ui_LayoutComponent_setTopMargin : Invalid Native Object");
|
||||
if (argc == 1) {
|
||||
double arg0 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_ui_LayoutComponent_setTopMargin : Error processing arguments");
|
||||
cobj->setTopMargin(arg0);
|
||||
args.rval().setUndefined();
|
||||
|
@ -18387,7 +18498,7 @@ bool js_cocos2dx_ui_LayoutComponent_setPositionPercentY(JSContext *cx, uint32_t
|
|||
JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_ui_LayoutComponent_setPositionPercentY : Invalid Native Object");
|
||||
if (argc == 1) {
|
||||
double arg0 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_ui_LayoutComponent_setPositionPercentY : Error processing arguments");
|
||||
cobj->setPositionPercentY(arg0);
|
||||
args.rval().setUndefined();
|
||||
|
@ -18407,7 +18518,7 @@ bool js_cocos2dx_ui_LayoutComponent_setPositionPercentX(JSContext *cx, uint32_t
|
|||
JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_ui_LayoutComponent_setPositionPercentX : Invalid Native Object");
|
||||
if (argc == 1) {
|
||||
double arg0 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_ui_LayoutComponent_setPositionPercentX : Error processing arguments");
|
||||
cobj->setPositionPercentX(arg0);
|
||||
args.rval().setUndefined();
|
||||
|
@ -18427,7 +18538,7 @@ bool js_cocos2dx_ui_LayoutComponent_setRightMargin(JSContext *cx, uint32_t argc,
|
|||
JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_ui_LayoutComponent_setRightMargin : Invalid Native Object");
|
||||
if (argc == 1) {
|
||||
double arg0 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_ui_LayoutComponent_setRightMargin : Error processing arguments");
|
||||
cobj->setRightMargin(arg0);
|
||||
args.rval().setUndefined();
|
||||
|
@ -18465,7 +18576,7 @@ bool js_cocos2dx_ui_LayoutComponent_setPercentHeight(JSContext *cx, uint32_t arg
|
|||
JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_ui_LayoutComponent_setPercentHeight : Invalid Native Object");
|
||||
if (argc == 1) {
|
||||
double arg0 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_ui_LayoutComponent_setPercentHeight : Error processing arguments");
|
||||
cobj->setPercentHeight(arg0);
|
||||
args.rval().setUndefined();
|
||||
|
@ -18601,7 +18712,7 @@ bool js_cocos2dx_ui_LayoutComponent_setSizeHeight(JSContext *cx, uint32_t argc,
|
|||
JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_ui_LayoutComponent_setSizeHeight : Invalid Native Object");
|
||||
if (argc == 1) {
|
||||
double arg0 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_ui_LayoutComponent_setSizeHeight : Error processing arguments");
|
||||
cobj->setSizeHeight(arg0);
|
||||
args.rval().setUndefined();
|
||||
|
@ -18769,7 +18880,7 @@ bool js_cocos2dx_ui_LayoutComponent_setBottomMargin(JSContext *cx, uint32_t argc
|
|||
JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_ui_LayoutComponent_setBottomMargin : Invalid Native Object");
|
||||
if (argc == 1) {
|
||||
double arg0 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_ui_LayoutComponent_setBottomMargin : Error processing arguments");
|
||||
cobj->setBottomMargin(arg0);
|
||||
args.rval().setUndefined();
|
||||
|
@ -19024,7 +19135,7 @@ bool js_cocos2dx_ui_TabHeader_setTitleFontSize(JSContext *cx, uint32_t argc, jsv
|
|||
JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_ui_TabHeader_setTitleFontSize : Invalid Native Object");
|
||||
if (argc == 1) {
|
||||
double arg0 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_ui_TabHeader_setTitleFontSize : Error processing arguments");
|
||||
cobj->setTitleFontSize(arg0);
|
||||
args.rval().setUndefined();
|
||||
|
@ -19377,7 +19488,7 @@ bool js_cocos2dx_ui_TabControl_setHeaderWidth(JSContext *cx, uint32_t argc, jsva
|
|||
JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_ui_TabControl_setHeaderWidth : Invalid Native Object");
|
||||
if (argc == 1) {
|
||||
double arg0 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_ui_TabControl_setHeaderWidth : Error processing arguments");
|
||||
cobj->setHeaderWidth(arg0);
|
||||
args.rval().setUndefined();
|
||||
|
@ -19700,7 +19811,7 @@ bool js_cocos2dx_ui_TabControl_setHeaderSelectedZoom(JSContext *cx, uint32_t arg
|
|||
JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_ui_TabControl_setHeaderSelectedZoom : Invalid Native Object");
|
||||
if (argc == 1) {
|
||||
double arg0 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_ui_TabControl_setHeaderSelectedZoom : Error processing arguments");
|
||||
cobj->setHeaderSelectedZoom(arg0);
|
||||
args.rval().setUndefined();
|
||||
|
@ -19720,7 +19831,7 @@ bool js_cocos2dx_ui_TabControl_setHeaderHeight(JSContext *cx, uint32_t argc, jsv
|
|||
JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_ui_TabControl_setHeaderHeight : Invalid Native Object");
|
||||
if (argc == 1) {
|
||||
double arg0 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_ui_TabControl_setHeaderHeight : Error processing arguments");
|
||||
cobj->setHeaderHeight(arg0);
|
||||
args.rval().setUndefined();
|
||||
|
@ -19976,7 +20087,7 @@ bool js_cocos2dx_ui_ScrollViewBar_setAutoHideTime(JSContext *cx, uint32_t argc,
|
|||
JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_ui_ScrollViewBar_setAutoHideTime : Invalid Native Object");
|
||||
if (argc == 1) {
|
||||
double arg0 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_ui_ScrollViewBar_setAutoHideTime : Error processing arguments");
|
||||
cobj->setAutoHideTime(arg0);
|
||||
args.rval().setUndefined();
|
||||
|
@ -20070,7 +20181,7 @@ bool js_cocos2dx_ui_ScrollViewBar_setWidth(JSContext *cx, uint32_t argc, jsval *
|
|||
JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_ui_ScrollViewBar_setWidth : Invalid Native Object");
|
||||
if (argc == 1) {
|
||||
double arg0 = 0;
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0);
|
||||
ok &= JS::ToNumber( cx, args.get(0), &arg0) && !std::isnan(arg0);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_ui_ScrollViewBar_setWidth : Error processing arguments");
|
||||
cobj->setWidth(arg0);
|
||||
args.rval().setUndefined();
|
||||
|
|
|
@ -640,21 +640,26 @@ void js_register_cocos2dx_ui_PageView(JSContext *cx, JS::HandleObject global);
|
|||
void register_all_cocos2dx_ui(JSContext* cx, JS::HandleObject obj);
|
||||
bool js_cocos2dx_ui_PageView_setIndicatorSpaceBetweenIndexNodes(JSContext *cx, uint32_t argc, jsval *vp);
|
||||
bool js_cocos2dx_ui_PageView_insertPage(JSContext *cx, uint32_t argc, jsval *vp);
|
||||
bool js_cocos2dx_ui_PageView_removeAllPages(JSContext *cx, uint32_t argc, jsval *vp);
|
||||
bool js_cocos2dx_ui_PageView_setAutoScrollStopEpsilon(JSContext *cx, uint32_t argc, jsval *vp);
|
||||
bool js_cocos2dx_ui_PageView_setIndicatorIndexNodesScale(JSContext *cx, uint32_t argc, jsval *vp);
|
||||
bool js_cocos2dx_ui_PageView_setIndicatorEnabled(JSContext *cx, uint32_t argc, jsval *vp);
|
||||
bool js_cocos2dx_ui_PageView_setIndicatorSelectedIndexColor(JSContext *cx, uint32_t argc, jsval *vp);
|
||||
bool js_cocos2dx_ui_PageView_addEventListener(JSContext *cx, uint32_t argc, jsval *vp);
|
||||
bool js_cocos2dx_ui_PageView_getIndicatorPosition(JSContext *cx, uint32_t argc, jsval *vp);
|
||||
bool js_cocos2dx_ui_PageView_setCurrentPageIndex(JSContext *cx, uint32_t argc, jsval *vp);
|
||||
bool js_cocos2dx_ui_PageView_getIndicatorIndexNodesColor(JSContext *cx, uint32_t argc, jsval *vp);
|
||||
bool js_cocos2dx_ui_PageView_getIndicatorSelectedIndexColor(JSContext *cx, uint32_t argc, jsval *vp);
|
||||
bool js_cocos2dx_ui_PageView_getIndicatorIndexNodesScale(JSContext *cx, uint32_t argc, jsval *vp);
|
||||
bool js_cocos2dx_ui_PageView_setIndicatorPosition(JSContext *cx, uint32_t argc, jsval *vp);
|
||||
bool js_cocos2dx_ui_PageView_scrollToPage(JSContext *cx, uint32_t argc, jsval *vp);
|
||||
bool js_cocos2dx_ui_PageView_setIndicatorPositionAsAnchorPoint(JSContext *cx, uint32_t argc, jsval *vp);
|
||||
bool js_cocos2dx_ui_PageView_scrollToItem(JSContext *cx, uint32_t argc, jsval *vp);
|
||||
bool js_cocos2dx_ui_PageView_removeAllPages(JSContext *cx, uint32_t argc, jsval *vp);
|
||||
bool js_cocos2dx_ui_PageView_setIndicatorIndexNodesColor(JSContext *cx, uint32_t argc, jsval *vp);
|
||||
bool js_cocos2dx_ui_PageView_getIndicatorPositionAsAnchorPoint(JSContext *cx, uint32_t argc, jsval *vp);
|
||||
bool js_cocos2dx_ui_PageView_getCurrentPageIndex(JSContext *cx, uint32_t argc, jsval *vp);
|
||||
bool js_cocos2dx_ui_PageView_removePage(JSContext *cx, uint32_t argc, jsval *vp);
|
||||
bool js_cocos2dx_ui_PageView_setIndicatorIndexNodesTexture(JSContext *cx, uint32_t argc, jsval *vp);
|
||||
bool js_cocos2dx_ui_PageView_getIndicatorEnabled(JSContext *cx, uint32_t argc, jsval *vp);
|
||||
bool js_cocos2dx_ui_PageView_removePageAtIndex(JSContext *cx, uint32_t argc, jsval *vp);
|
||||
bool js_cocos2dx_ui_PageView_getIndicatorSpaceBetweenIndexNodes(JSContext *cx, uint32_t argc, jsval *vp);
|
||||
|
|
|
@ -26,6 +26,12 @@
|
|||
-- @param #char actionName
|
||||
-- @return ActionObject#ActionObject ret (return value: ccs.ActionObject)
|
||||
|
||||
--------------------------------
|
||||
--
|
||||
-- @function [parent=#ActionManagerEx] getStudioVersionNumber
|
||||
-- @param self
|
||||
-- @return int#int ret (return value: int)
|
||||
|
||||
--------------------------------
|
||||
-- @overload self, char, char, cc.CallFunc
|
||||
-- @overload self, char, char
|
||||
|
|
|
@ -93,6 +93,14 @@
|
|||
-- @param #bool haveAlphaPremultiplied
|
||||
-- @return Image#Image self (return value: cc.Image)
|
||||
|
||||
--------------------------------
|
||||
-- Enables or disables premultiplied alpha for PNG files.<br>
|
||||
-- param enabled (default: true)
|
||||
-- @function [parent=#Image] setPNGPremultipliedAlphaEnabled
|
||||
-- @param self
|
||||
-- @param #bool enabled
|
||||
-- @return Image#Image self (return value: cc.Image)
|
||||
|
||||
--------------------------------
|
||||
-- js ctor
|
||||
-- @function [parent=#Image] Image
|
||||
|
|
|
@ -22,6 +22,12 @@
|
|||
-- @param #int idx
|
||||
-- @return PageView#PageView self (return value: ccui.PageView)
|
||||
|
||||
--------------------------------
|
||||
-- brief Remove all pages of the PageView.
|
||||
-- @function [parent=#PageView] removeAllPages
|
||||
-- @param self
|
||||
-- @return PageView#PageView self (return value: ccui.PageView)
|
||||
|
||||
--------------------------------
|
||||
--
|
||||
-- @function [parent=#PageView] setAutoScrollStopEpsilon
|
||||
|
@ -29,6 +35,14 @@
|
|||
-- @param #float epsilon
|
||||
-- @return PageView#PageView self (return value: ccui.PageView)
|
||||
|
||||
--------------------------------
|
||||
-- brief Set scale of page indicator's index nodes.<br>
|
||||
-- param indexNodesScale Scale of index nodes.
|
||||
-- @function [parent=#PageView] setIndicatorIndexNodesScale
|
||||
-- @param self
|
||||
-- @param #float indexNodesScale
|
||||
-- @return PageView#PageView self (return value: ccui.PageView)
|
||||
|
||||
--------------------------------
|
||||
-- brief Toggle page indicator enabled.<br>
|
||||
-- param enabled True if enable page indicator, false otherwise.
|
||||
|
@ -39,7 +53,7 @@
|
|||
|
||||
--------------------------------
|
||||
-- brief Set color of page indicator's selected index.<br>
|
||||
-- param spaceBetweenIndexNodes Space between nodes in pixel.
|
||||
-- param color Space between nodes in pixel.
|
||||
-- @function [parent=#PageView] setIndicatorSelectedIndexColor
|
||||
-- @param self
|
||||
-- @param #color3b_table color
|
||||
|
@ -69,6 +83,13 @@
|
|||
-- @param #long index
|
||||
-- @return PageView#PageView self (return value: ccui.PageView)
|
||||
|
||||
--------------------------------
|
||||
-- brief Get the color of page indicator's index nodes.<br>
|
||||
-- return color
|
||||
-- @function [parent=#PageView] getIndicatorIndexNodesColor
|
||||
-- @param self
|
||||
-- @return color3b_table#color3b_table ret (return value: color3b_table)
|
||||
|
||||
--------------------------------
|
||||
-- brief Get the color of page indicator's selected index.<br>
|
||||
-- return color
|
||||
|
@ -76,6 +97,13 @@
|
|||
-- @param self
|
||||
-- @return color3b_table#color3b_table ret (return value: color3b_table)
|
||||
|
||||
--------------------------------
|
||||
-- brief Get scale of page indicator's index nodes.<br>
|
||||
-- return indexNodesScale
|
||||
-- @function [parent=#PageView] getIndicatorIndexNodesScale
|
||||
-- @param self
|
||||
-- @return float#float ret (return value: float)
|
||||
|
||||
--------------------------------
|
||||
-- brief Set the page indicator's position in page view.<br>
|
||||
-- param position The position in page view
|
||||
|
@ -109,9 +137,11 @@
|
|||
-- @return PageView#PageView self (return value: ccui.PageView)
|
||||
|
||||
--------------------------------
|
||||
-- brief Remove all pages of the PageView.
|
||||
-- @function [parent=#PageView] removeAllPages
|
||||
-- brief Set color of page indicator's index nodes.<br>
|
||||
-- param color Space between nodes in pixel.
|
||||
-- @function [parent=#PageView] setIndicatorIndexNodesColor
|
||||
-- @param self
|
||||
-- @param #color3b_table color
|
||||
-- @return PageView#PageView self (return value: ccui.PageView)
|
||||
|
||||
--------------------------------
|
||||
|
@ -136,6 +166,16 @@
|
|||
-- @param #ccui.Widget page
|
||||
-- @return PageView#PageView self (return value: ccui.PageView)
|
||||
|
||||
--------------------------------
|
||||
-- sets texture for index nodes.<br>
|
||||
-- param fileName File name of texture.<br>
|
||||
-- param resType @see TextureResType .
|
||||
-- @function [parent=#PageView] setIndicatorIndexNodesTexture
|
||||
-- @param self
|
||||
-- @param #string texName
|
||||
-- @param #int texType
|
||||
-- @return PageView#PageView self (return value: ccui.PageView)
|
||||
|
||||
--------------------------------
|
||||
-- brief Query page indicator state.<br>
|
||||
-- return True if page indicator is enabled, false otherwise.
|
||||
|
|
|
@ -56,6 +56,13 @@
|
|||
-- @param #string url
|
||||
-- @return experimental::ui::WebView#experimental::ui::WebView self (return value: cc.experimental::ui::WebView)
|
||||
|
||||
--------------------------------
|
||||
-- Set whether the webview bounces at end of scroll of WebView.
|
||||
-- @function [parent=#WebView] setBounces
|
||||
-- @param self
|
||||
-- @param #bool bounce
|
||||
-- @return experimental::ui::WebView#experimental::ui::WebView self (return value: cc.experimental::ui::WebView)
|
||||
|
||||
--------------------------------
|
||||
-- Evaluates JavaScript in the context of the currently displayed page.
|
||||
-- @function [parent=#WebView] evaluateJS
|
||||
|
|
|
@ -19135,6 +19135,42 @@ int lua_cocos2dx_Image_setPVRImagesHavePremultipliedAlpha(lua_State* tolua_S)
|
|||
#endif
|
||||
return 0;
|
||||
}
|
||||
int lua_cocos2dx_Image_setPNGPremultipliedAlphaEnabled(lua_State* tolua_S)
|
||||
{
|
||||
int argc = 0;
|
||||
bool ok = true;
|
||||
|
||||
#if COCOS2D_DEBUG >= 1
|
||||
tolua_Error tolua_err;
|
||||
#endif
|
||||
|
||||
#if COCOS2D_DEBUG >= 1
|
||||
if (!tolua_isusertable(tolua_S,1,"cc.Image",0,&tolua_err)) goto tolua_lerror;
|
||||
#endif
|
||||
|
||||
argc = lua_gettop(tolua_S) - 1;
|
||||
|
||||
if (argc == 1)
|
||||
{
|
||||
bool arg0;
|
||||
ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.Image:setPNGPremultipliedAlphaEnabled");
|
||||
if(!ok)
|
||||
{
|
||||
tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Image_setPNGPremultipliedAlphaEnabled'", nullptr);
|
||||
return 0;
|
||||
}
|
||||
cocos2d::Image::setPNGPremultipliedAlphaEnabled(arg0);
|
||||
lua_settop(tolua_S, 1);
|
||||
return 1;
|
||||
}
|
||||
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Image:setPNGPremultipliedAlphaEnabled",argc, 1);
|
||||
return 0;
|
||||
#if COCOS2D_DEBUG >= 1
|
||||
tolua_lerror:
|
||||
tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Image_setPNGPremultipliedAlphaEnabled'.",&tolua_err);
|
||||
#endif
|
||||
return 0;
|
||||
}
|
||||
int lua_cocos2dx_Image_constructor(lua_State* tolua_S)
|
||||
{
|
||||
int argc = 0;
|
||||
|
@ -19198,6 +19234,7 @@ int lua_register_cocos2dx_Image(lua_State* tolua_S)
|
|||
tolua_function(tolua_S,"getNumberOfMipmaps",lua_cocos2dx_Image_getNumberOfMipmaps);
|
||||
tolua_function(tolua_S,"getRenderFormat",lua_cocos2dx_Image_getRenderFormat);
|
||||
tolua_function(tolua_S,"setPVRImagesHavePremultipliedAlpha", lua_cocos2dx_Image_setPVRImagesHavePremultipliedAlpha);
|
||||
tolua_function(tolua_S,"setPNGPremultipliedAlphaEnabled", lua_cocos2dx_Image_setPNGPremultipliedAlphaEnabled);
|
||||
tolua_endmodule(tolua_S);
|
||||
std::string typeName = typeid(cocos2d::Image).name();
|
||||
g_luaType[typeName] = "cc.Image";
|
||||
|
|
|
@ -2195,6 +2195,7 @@ int register_all_cocos2dx(lua_State* tolua_S);
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // __cocos2dx_h__
|
||||
|
|
|
@ -362,6 +362,56 @@ int lua_cocos2dx_experimental_webview_WebView_loadURL(lua_State* tolua_S)
|
|||
|
||||
return 0;
|
||||
}
|
||||
int lua_cocos2dx_experimental_webview_WebView_setBounces(lua_State* tolua_S)
|
||||
{
|
||||
int argc = 0;
|
||||
cocos2d::experimental::ui::WebView* cobj = nullptr;
|
||||
bool ok = true;
|
||||
|
||||
#if COCOS2D_DEBUG >= 1
|
||||
tolua_Error tolua_err;
|
||||
#endif
|
||||
|
||||
|
||||
#if COCOS2D_DEBUG >= 1
|
||||
if (!tolua_isusertype(tolua_S,1,"ccexp.WebView",0,&tolua_err)) goto tolua_lerror;
|
||||
#endif
|
||||
|
||||
cobj = (cocos2d::experimental::ui::WebView*)tolua_tousertype(tolua_S,1,0);
|
||||
|
||||
#if COCOS2D_DEBUG >= 1
|
||||
if (!cobj)
|
||||
{
|
||||
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_experimental_webview_WebView_setBounces'", nullptr);
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
argc = lua_gettop(tolua_S)-1;
|
||||
if (argc == 1)
|
||||
{
|
||||
bool arg0;
|
||||
|
||||
ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ccexp.WebView:setBounces");
|
||||
if(!ok)
|
||||
{
|
||||
tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_experimental_webview_WebView_setBounces'", nullptr);
|
||||
return 0;
|
||||
}
|
||||
cobj->setBounces(arg0);
|
||||
lua_settop(tolua_S, 1);
|
||||
return 1;
|
||||
}
|
||||
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccexp.WebView:setBounces",argc, 1);
|
||||
return 0;
|
||||
|
||||
#if COCOS2D_DEBUG >= 1
|
||||
tolua_lerror:
|
||||
tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_experimental_webview_WebView_setBounces'.",&tolua_err);
|
||||
#endif
|
||||
|
||||
return 0;
|
||||
}
|
||||
int lua_cocos2dx_experimental_webview_WebView_evaluateJS(lua_State* tolua_S)
|
||||
{
|
||||
int argc = 0;
|
||||
|
@ -741,6 +791,7 @@ int lua_register_cocos2dx_experimental_webview_WebView(lua_State* tolua_S)
|
|||
tolua_function(tolua_S,"setScalesPageToFit",lua_cocos2dx_experimental_webview_WebView_setScalesPageToFit);
|
||||
tolua_function(tolua_S,"loadFile",lua_cocos2dx_experimental_webview_WebView_loadFile);
|
||||
tolua_function(tolua_S,"loadURL",lua_cocos2dx_experimental_webview_WebView_loadURL);
|
||||
tolua_function(tolua_S,"setBounces",lua_cocos2dx_experimental_webview_WebView_setBounces);
|
||||
tolua_function(tolua_S,"evaluateJS",lua_cocos2dx_experimental_webview_WebView_evaluateJS);
|
||||
tolua_function(tolua_S,"getOnJSCallback",lua_cocos2dx_experimental_webview_WebView_getOnJSCallback);
|
||||
tolua_function(tolua_S,"canGoForward",lua_cocos2dx_experimental_webview_WebView_canGoForward);
|
||||
|
|
|
@ -29,5 +29,6 @@ int register_all_cocos2dx_experimental_webview(lua_State* tolua_S);
|
|||
|
||||
|
||||
|
||||
|
||||
#endif // __cocos2dx_experimental_webview_h__
|
||||
#endif //#if (CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID || CC_TARGET_PLATFORM == CC_PLATFORM_IOS) && !defined(CC_TARGET_OS_TVOS)
|
||||
|
|
|
@ -2719,6 +2719,53 @@ int lua_cocos2dx_studio_ActionManagerEx_getActionByName(lua_State* tolua_S)
|
|||
|
||||
return 0;
|
||||
}
|
||||
int lua_cocos2dx_studio_ActionManagerEx_getStudioVersionNumber(lua_State* tolua_S)
|
||||
{
|
||||
int argc = 0;
|
||||
cocostudio::ActionManagerEx* cobj = nullptr;
|
||||
bool ok = true;
|
||||
|
||||
#if COCOS2D_DEBUG >= 1
|
||||
tolua_Error tolua_err;
|
||||
#endif
|
||||
|
||||
|
||||
#if COCOS2D_DEBUG >= 1
|
||||
if (!tolua_isusertype(tolua_S,1,"ccs.ActionManagerEx",0,&tolua_err)) goto tolua_lerror;
|
||||
#endif
|
||||
|
||||
cobj = (cocostudio::ActionManagerEx*)tolua_tousertype(tolua_S,1,0);
|
||||
|
||||
#if COCOS2D_DEBUG >= 1
|
||||
if (!cobj)
|
||||
{
|
||||
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ActionManagerEx_getStudioVersionNumber'", 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_studio_ActionManagerEx_getStudioVersionNumber'", nullptr);
|
||||
return 0;
|
||||
}
|
||||
int ret = cobj->getStudioVersionNumber();
|
||||
tolua_pushnumber(tolua_S,(lua_Number)ret);
|
||||
return 1;
|
||||
}
|
||||
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ActionManagerEx:getStudioVersionNumber",argc, 0);
|
||||
return 0;
|
||||
|
||||
#if COCOS2D_DEBUG >= 1
|
||||
tolua_lerror:
|
||||
tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ActionManagerEx_getStudioVersionNumber'.",&tolua_err);
|
||||
#endif
|
||||
|
||||
return 0;
|
||||
}
|
||||
int lua_cocos2dx_studio_ActionManagerEx_playActionByName(lua_State* tolua_S)
|
||||
{
|
||||
int argc = 0;
|
||||
|
@ -2915,6 +2962,7 @@ int lua_register_cocos2dx_studio_ActionManagerEx(lua_State* tolua_S)
|
|||
tolua_beginmodule(tolua_S,"ActionManagerEx");
|
||||
tolua_function(tolua_S,"stopActionByName",lua_cocos2dx_studio_ActionManagerEx_stopActionByName);
|
||||
tolua_function(tolua_S,"getActionByName",lua_cocos2dx_studio_ActionManagerEx_getActionByName);
|
||||
tolua_function(tolua_S,"getStudioVersionNumber",lua_cocos2dx_studio_ActionManagerEx_getStudioVersionNumber);
|
||||
tolua_function(tolua_S,"playActionByName",lua_cocos2dx_studio_ActionManagerEx_playActionByName);
|
||||
tolua_function(tolua_S,"releaseActions",lua_cocos2dx_studio_ActionManagerEx_releaseActions);
|
||||
tolua_function(tolua_S,"destroyInstance", lua_cocos2dx_studio_ActionManagerEx_destroyInstance);
|
||||
|
|
|
@ -566,6 +566,7 @@ int register_all_cocos2dx_studio(lua_State* tolua_S);
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // __cocos2dx_studio_h__
|
||||
|
|
|
@ -23177,6 +23177,53 @@ int lua_cocos2dx_ui_PageView_insertPage(lua_State* tolua_S)
|
|||
|
||||
return 0;
|
||||
}
|
||||
int lua_cocos2dx_ui_PageView_removeAllPages(lua_State* tolua_S)
|
||||
{
|
||||
int argc = 0;
|
||||
cocos2d::ui::PageView* 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.PageView",0,&tolua_err)) goto tolua_lerror;
|
||||
#endif
|
||||
|
||||
cobj = (cocos2d::ui::PageView*)tolua_tousertype(tolua_S,1,0);
|
||||
|
||||
#if COCOS2D_DEBUG >= 1
|
||||
if (!cobj)
|
||||
{
|
||||
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ui_PageView_removeAllPages'", 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_PageView_removeAllPages'", nullptr);
|
||||
return 0;
|
||||
}
|
||||
cobj->removeAllPages();
|
||||
lua_settop(tolua_S, 1);
|
||||
return 1;
|
||||
}
|
||||
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccui.PageView:removeAllPages",argc, 0);
|
||||
return 0;
|
||||
|
||||
#if COCOS2D_DEBUG >= 1
|
||||
tolua_lerror:
|
||||
tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ui_PageView_removeAllPages'.",&tolua_err);
|
||||
#endif
|
||||
|
||||
return 0;
|
||||
}
|
||||
int lua_cocos2dx_ui_PageView_setAutoScrollStopEpsilon(lua_State* tolua_S)
|
||||
{
|
||||
int argc = 0;
|
||||
|
@ -23227,6 +23274,56 @@ int lua_cocos2dx_ui_PageView_setAutoScrollStopEpsilon(lua_State* tolua_S)
|
|||
|
||||
return 0;
|
||||
}
|
||||
int lua_cocos2dx_ui_PageView_setIndicatorIndexNodesScale(lua_State* tolua_S)
|
||||
{
|
||||
int argc = 0;
|
||||
cocos2d::ui::PageView* 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.PageView",0,&tolua_err)) goto tolua_lerror;
|
||||
#endif
|
||||
|
||||
cobj = (cocos2d::ui::PageView*)tolua_tousertype(tolua_S,1,0);
|
||||
|
||||
#if COCOS2D_DEBUG >= 1
|
||||
if (!cobj)
|
||||
{
|
||||
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ui_PageView_setIndicatorIndexNodesScale'", nullptr);
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
argc = lua_gettop(tolua_S)-1;
|
||||
if (argc == 1)
|
||||
{
|
||||
double arg0;
|
||||
|
||||
ok &= luaval_to_number(tolua_S, 2,&arg0, "ccui.PageView:setIndicatorIndexNodesScale");
|
||||
if(!ok)
|
||||
{
|
||||
tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_PageView_setIndicatorIndexNodesScale'", nullptr);
|
||||
return 0;
|
||||
}
|
||||
cobj->setIndicatorIndexNodesScale(arg0);
|
||||
lua_settop(tolua_S, 1);
|
||||
return 1;
|
||||
}
|
||||
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccui.PageView:setIndicatorIndexNodesScale",argc, 1);
|
||||
return 0;
|
||||
|
||||
#if COCOS2D_DEBUG >= 1
|
||||
tolua_lerror:
|
||||
tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ui_PageView_setIndicatorIndexNodesScale'.",&tolua_err);
|
||||
#endif
|
||||
|
||||
return 0;
|
||||
}
|
||||
int lua_cocos2dx_ui_PageView_setIndicatorEnabled(lua_State* tolua_S)
|
||||
{
|
||||
int argc = 0;
|
||||
|
@ -23478,6 +23575,53 @@ int lua_cocos2dx_ui_PageView_setCurrentPageIndex(lua_State* tolua_S)
|
|||
|
||||
return 0;
|
||||
}
|
||||
int lua_cocos2dx_ui_PageView_getIndicatorIndexNodesColor(lua_State* tolua_S)
|
||||
{
|
||||
int argc = 0;
|
||||
cocos2d::ui::PageView* 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.PageView",0,&tolua_err)) goto tolua_lerror;
|
||||
#endif
|
||||
|
||||
cobj = (cocos2d::ui::PageView*)tolua_tousertype(tolua_S,1,0);
|
||||
|
||||
#if COCOS2D_DEBUG >= 1
|
||||
if (!cobj)
|
||||
{
|
||||
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ui_PageView_getIndicatorIndexNodesColor'", 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_PageView_getIndicatorIndexNodesColor'", nullptr);
|
||||
return 0;
|
||||
}
|
||||
const cocos2d::Color3B& ret = cobj->getIndicatorIndexNodesColor();
|
||||
color3b_to_luaval(tolua_S, ret);
|
||||
return 1;
|
||||
}
|
||||
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccui.PageView:getIndicatorIndexNodesColor",argc, 0);
|
||||
return 0;
|
||||
|
||||
#if COCOS2D_DEBUG >= 1
|
||||
tolua_lerror:
|
||||
tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ui_PageView_getIndicatorIndexNodesColor'.",&tolua_err);
|
||||
#endif
|
||||
|
||||
return 0;
|
||||
}
|
||||
int lua_cocos2dx_ui_PageView_getIndicatorSelectedIndexColor(lua_State* tolua_S)
|
||||
{
|
||||
int argc = 0;
|
||||
|
@ -23525,6 +23669,53 @@ int lua_cocos2dx_ui_PageView_getIndicatorSelectedIndexColor(lua_State* tolua_S)
|
|||
|
||||
return 0;
|
||||
}
|
||||
int lua_cocos2dx_ui_PageView_getIndicatorIndexNodesScale(lua_State* tolua_S)
|
||||
{
|
||||
int argc = 0;
|
||||
cocos2d::ui::PageView* 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.PageView",0,&tolua_err)) goto tolua_lerror;
|
||||
#endif
|
||||
|
||||
cobj = (cocos2d::ui::PageView*)tolua_tousertype(tolua_S,1,0);
|
||||
|
||||
#if COCOS2D_DEBUG >= 1
|
||||
if (!cobj)
|
||||
{
|
||||
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ui_PageView_getIndicatorIndexNodesScale'", 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_PageView_getIndicatorIndexNodesScale'", nullptr);
|
||||
return 0;
|
||||
}
|
||||
double ret = cobj->getIndicatorIndexNodesScale();
|
||||
tolua_pushnumber(tolua_S,(lua_Number)ret);
|
||||
return 1;
|
||||
}
|
||||
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccui.PageView:getIndicatorIndexNodesScale",argc, 0);
|
||||
return 0;
|
||||
|
||||
#if COCOS2D_DEBUG >= 1
|
||||
tolua_lerror:
|
||||
tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ui_PageView_getIndicatorIndexNodesScale'.",&tolua_err);
|
||||
#endif
|
||||
|
||||
return 0;
|
||||
}
|
||||
int lua_cocos2dx_ui_PageView_setIndicatorPosition(lua_State* tolua_S)
|
||||
{
|
||||
int argc = 0;
|
||||
|
@ -23725,7 +23916,7 @@ int lua_cocos2dx_ui_PageView_scrollToItem(lua_State* tolua_S)
|
|||
|
||||
return 0;
|
||||
}
|
||||
int lua_cocos2dx_ui_PageView_removeAllPages(lua_State* tolua_S)
|
||||
int lua_cocos2dx_ui_PageView_setIndicatorIndexNodesColor(lua_State* tolua_S)
|
||||
{
|
||||
int argc = 0;
|
||||
cocos2d::ui::PageView* cobj = nullptr;
|
||||
|
@ -23745,29 +23936,32 @@ int lua_cocos2dx_ui_PageView_removeAllPages(lua_State* tolua_S)
|
|||
#if COCOS2D_DEBUG >= 1
|
||||
if (!cobj)
|
||||
{
|
||||
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ui_PageView_removeAllPages'", nullptr);
|
||||
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ui_PageView_setIndicatorIndexNodesColor'", nullptr);
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
argc = lua_gettop(tolua_S)-1;
|
||||
if (argc == 0)
|
||||
if (argc == 1)
|
||||
{
|
||||
cocos2d::Color3B arg0;
|
||||
|
||||
ok &= luaval_to_color3b(tolua_S, 2, &arg0, "ccui.PageView:setIndicatorIndexNodesColor");
|
||||
if(!ok)
|
||||
{
|
||||
tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_PageView_removeAllPages'", nullptr);
|
||||
tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_PageView_setIndicatorIndexNodesColor'", nullptr);
|
||||
return 0;
|
||||
}
|
||||
cobj->removeAllPages();
|
||||
cobj->setIndicatorIndexNodesColor(arg0);
|
||||
lua_settop(tolua_S, 1);
|
||||
return 1;
|
||||
}
|
||||
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccui.PageView:removeAllPages",argc, 0);
|
||||
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccui.PageView:setIndicatorIndexNodesColor",argc, 1);
|
||||
return 0;
|
||||
|
||||
#if COCOS2D_DEBUG >= 1
|
||||
tolua_lerror:
|
||||
tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ui_PageView_removeAllPages'.",&tolua_err);
|
||||
tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ui_PageView_setIndicatorIndexNodesColor'.",&tolua_err);
|
||||
#endif
|
||||
|
||||
return 0;
|
||||
|
@ -23916,6 +24110,73 @@ int lua_cocos2dx_ui_PageView_removePage(lua_State* tolua_S)
|
|||
|
||||
return 0;
|
||||
}
|
||||
int lua_cocos2dx_ui_PageView_setIndicatorIndexNodesTexture(lua_State* tolua_S)
|
||||
{
|
||||
int argc = 0;
|
||||
cocos2d::ui::PageView* 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.PageView",0,&tolua_err)) goto tolua_lerror;
|
||||
#endif
|
||||
|
||||
cobj = (cocos2d::ui::PageView*)tolua_tousertype(tolua_S,1,0);
|
||||
|
||||
#if COCOS2D_DEBUG >= 1
|
||||
if (!cobj)
|
||||
{
|
||||
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ui_PageView_setIndicatorIndexNodesTexture'", nullptr);
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
argc = lua_gettop(tolua_S)-1;
|
||||
if (argc == 1)
|
||||
{
|
||||
std::string arg0;
|
||||
|
||||
ok &= luaval_to_std_string(tolua_S, 2,&arg0, "ccui.PageView:setIndicatorIndexNodesTexture");
|
||||
if(!ok)
|
||||
{
|
||||
tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_PageView_setIndicatorIndexNodesTexture'", nullptr);
|
||||
return 0;
|
||||
}
|
||||
cobj->setIndicatorIndexNodesTexture(arg0);
|
||||
lua_settop(tolua_S, 1);
|
||||
return 1;
|
||||
}
|
||||
if (argc == 2)
|
||||
{
|
||||
std::string arg0;
|
||||
cocos2d::ui::Widget::TextureResType arg1;
|
||||
|
||||
ok &= luaval_to_std_string(tolua_S, 2,&arg0, "ccui.PageView:setIndicatorIndexNodesTexture");
|
||||
|
||||
ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "ccui.PageView:setIndicatorIndexNodesTexture");
|
||||
if(!ok)
|
||||
{
|
||||
tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_PageView_setIndicatorIndexNodesTexture'", nullptr);
|
||||
return 0;
|
||||
}
|
||||
cobj->setIndicatorIndexNodesTexture(arg0, arg1);
|
||||
lua_settop(tolua_S, 1);
|
||||
return 1;
|
||||
}
|
||||
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccui.PageView:setIndicatorIndexNodesTexture",argc, 1);
|
||||
return 0;
|
||||
|
||||
#if COCOS2D_DEBUG >= 1
|
||||
tolua_lerror:
|
||||
tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ui_PageView_setIndicatorIndexNodesTexture'.",&tolua_err);
|
||||
#endif
|
||||
|
||||
return 0;
|
||||
}
|
||||
int lua_cocos2dx_ui_PageView_getIndicatorEnabled(lua_State* tolua_S)
|
||||
{
|
||||
int argc = 0;
|
||||
|
@ -24230,21 +24491,26 @@ int lua_register_cocos2dx_ui_PageView(lua_State* tolua_S)
|
|||
tolua_function(tolua_S,"new",lua_cocos2dx_ui_PageView_constructor);
|
||||
tolua_function(tolua_S,"setIndicatorSpaceBetweenIndexNodes",lua_cocos2dx_ui_PageView_setIndicatorSpaceBetweenIndexNodes);
|
||||
tolua_function(tolua_S,"insertPage",lua_cocos2dx_ui_PageView_insertPage);
|
||||
tolua_function(tolua_S,"removeAllPages",lua_cocos2dx_ui_PageView_removeAllPages);
|
||||
tolua_function(tolua_S,"setAutoScrollStopEpsilon",lua_cocos2dx_ui_PageView_setAutoScrollStopEpsilon);
|
||||
tolua_function(tolua_S,"setIndicatorIndexNodesScale",lua_cocos2dx_ui_PageView_setIndicatorIndexNodesScale);
|
||||
tolua_function(tolua_S,"setIndicatorEnabled",lua_cocos2dx_ui_PageView_setIndicatorEnabled);
|
||||
tolua_function(tolua_S,"setIndicatorSelectedIndexColor",lua_cocos2dx_ui_PageView_setIndicatorSelectedIndexColor);
|
||||
tolua_function(tolua_S,"addEventListener",lua_cocos2dx_ui_PageView_addEventListener);
|
||||
tolua_function(tolua_S,"getIndicatorPosition",lua_cocos2dx_ui_PageView_getIndicatorPosition);
|
||||
tolua_function(tolua_S,"setCurrentPageIndex",lua_cocos2dx_ui_PageView_setCurrentPageIndex);
|
||||
tolua_function(tolua_S,"getIndicatorIndexNodesColor",lua_cocos2dx_ui_PageView_getIndicatorIndexNodesColor);
|
||||
tolua_function(tolua_S,"getIndicatorSelectedIndexColor",lua_cocos2dx_ui_PageView_getIndicatorSelectedIndexColor);
|
||||
tolua_function(tolua_S,"getIndicatorIndexNodesScale",lua_cocos2dx_ui_PageView_getIndicatorIndexNodesScale);
|
||||
tolua_function(tolua_S,"setIndicatorPosition",lua_cocos2dx_ui_PageView_setIndicatorPosition);
|
||||
tolua_function(tolua_S,"scrollToPage",lua_cocos2dx_ui_PageView_scrollToPage);
|
||||
tolua_function(tolua_S,"setIndicatorPositionAsAnchorPoint",lua_cocos2dx_ui_PageView_setIndicatorPositionAsAnchorPoint);
|
||||
tolua_function(tolua_S,"scrollToItem",lua_cocos2dx_ui_PageView_scrollToItem);
|
||||
tolua_function(tolua_S,"removeAllPages",lua_cocos2dx_ui_PageView_removeAllPages);
|
||||
tolua_function(tolua_S,"setIndicatorIndexNodesColor",lua_cocos2dx_ui_PageView_setIndicatorIndexNodesColor);
|
||||
tolua_function(tolua_S,"getIndicatorPositionAsAnchorPoint",lua_cocos2dx_ui_PageView_getIndicatorPositionAsAnchorPoint);
|
||||
tolua_function(tolua_S,"getCurrentPageIndex",lua_cocos2dx_ui_PageView_getCurrentPageIndex);
|
||||
tolua_function(tolua_S,"removePage",lua_cocos2dx_ui_PageView_removePage);
|
||||
tolua_function(tolua_S,"setIndicatorIndexNodesTexture",lua_cocos2dx_ui_PageView_setIndicatorIndexNodesTexture);
|
||||
tolua_function(tolua_S,"getIndicatorEnabled",lua_cocos2dx_ui_PageView_getIndicatorEnabled);
|
||||
tolua_function(tolua_S,"removePageAtIndex",lua_cocos2dx_ui_PageView_removePageAtIndex);
|
||||
tolua_function(tolua_S,"getIndicatorSpaceBetweenIndexNodes",lua_cocos2dx_ui_PageView_getIndicatorSpaceBetweenIndexNodes);
|
||||
|
|
|
@ -746,6 +746,11 @@ int register_all_cocos2dx_ui(lua_State* tolua_S);
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue