[ci skip][AUTO]: updating luabinding & jsbinding automatically

This commit is contained in:
CocosRobot 2016-04-21 03:37:00 +00:00
parent 9514b51057
commit 43d4241432
12 changed files with 5460 additions and 185 deletions

View File

@ -5354,6 +5354,18 @@ node
*/ */
ccui.RichElement = { ccui.RichElement = {
/**
* @method equalType
* @param {ccui.RichElement::Type} arg0
* @return {bool}
*/
equalType : function (
type
)
{
return false;
},
/** /**
* @method init * @method init
* @param {int} arg0 * @param {int} arg0
@ -5370,6 +5382,16 @@ char
return false; return false;
}, },
/**
* @method setColor
* @param {color3b_object} arg0
*/
setColor : function (
color3b
)
{
},
/** /**
* @method RichElement * @method RichElement
* @constructor * @constructor
@ -5396,6 +5418,12 @@ ccui.RichElementText = {
* @param {float} arg5 * @param {float} arg5
* @param {unsigned int} arg6 * @param {unsigned int} arg6
* @param {String} arg7 * @param {String} arg7
* @param {color3b_object} arg8
* @param {int} arg9
* @param {color3b_object} arg10
* @param {size_object} arg11
* @param {int} arg12
* @param {color3b_object} arg13
* @return {bool} * @return {bool}
*/ */
init : function ( init : function (
@ -5406,7 +5434,13 @@ str,
str, str,
float, float,
int, int,
str str,
color3b,
int,
color3b,
size,
int,
color3b
) )
{ {
return false; return false;
@ -5422,6 +5456,12 @@ str
* @param {float} arg5 * @param {float} arg5
* @param {unsigned int} arg6 * @param {unsigned int} arg6
* @param {String} arg7 * @param {String} arg7
* @param {color3b_object} arg8
* @param {int} arg9
* @param {color3b_object} arg10
* @param {size_object} arg11
* @param {int} arg12
* @param {color3b_object} arg13
* @return {ccui.RichElementText} * @return {ccui.RichElementText}
*/ */
create : function ( create : function (
@ -5432,7 +5472,13 @@ str,
str, str,
float, float,
int, int,
str str,
color3b,
int,
color3b,
size,
int,
color3b
) )
{ {
return ccui.RichElementText; return ccui.RichElementText;
@ -5470,12 +5516,14 @@ int
* @param {color3b_object} arg1 * @param {color3b_object} arg1
* @param {unsigned char} arg2 * @param {unsigned char} arg2
* @param {String} arg3 * @param {String} arg3
* @param {String} arg4
* @return {bool} * @return {bool}
*/ */
init : function ( init : function (
int, int,
color3b, color3b,
char, char,
str,
str str
) )
{ {
@ -5492,18 +5540,30 @@ int
{ {
}, },
/**
* @method setUrl
* @param {String} arg0
*/
setUrl : function (
str
)
{
},
/** /**
* @method create * @method create
* @param {int} arg0 * @param {int} arg0
* @param {color3b_object} arg1 * @param {color3b_object} arg1
* @param {unsigned char} arg2 * @param {unsigned char} arg2
* @param {String} arg3 * @param {String} arg3
* @param {String} arg4
* @return {ccui.RichElementImage} * @return {ccui.RichElementImage}
*/ */
create : function ( create : function (
int, int,
color3b, color3b,
char, char,
str,
str str
) )
{ {
@ -5573,6 +5633,38 @@ RichElementCustomNode : function (
}; };
/**
* @class RichElementNewLine
*/
ccui.RichElementNewLine = {
/**
* @method create
* @param {int} arg0
* @param {color3b_object} arg1
* @param {unsigned char} arg2
* @return {ccui.RichElementNewLine}
*/
create : function (
int,
color3b,
char
)
{
return ccui.RichElementNewLine;
},
/**
* @method RichElementNewLine
* @constructor
*/
RichElementNewLine : function (
)
{
},
};
/** /**
* @class RichText * @class RichText
*/ */
@ -5590,6 +5682,30 @@ int
{ {
}, },
/**
* @method setAnchorTextOutline
* @param {bool} arg0
* @param {color3b_object} arg1
* @param {int} arg2
*/
setAnchorTextOutline : function (
bool,
color3b,
int
)
{
},
/**
* @method getFontSize
* @return {float}
*/
getFontSize : function (
)
{
return 0;
},
/** /**
* @method pushBackElement * @method pushBackElement
* @param {ccui.RichElement} arg0 * @param {ccui.RichElement} arg0
@ -5600,6 +5716,290 @@ richelement
{ {
}, },
/**
* @method setAnchorTextBold
* @param {bool} arg0
*/
setAnchorTextBold : function (
bool
)
{
},
/**
* @method getAnchorFontColor
* @return {String}
*/
getAnchorFontColor : function (
)
{
return ;
},
/**
* @method getAnchorTextShadowBlurRadius
* @return {int}
*/
getAnchorTextShadowBlurRadius : function (
)
{
return 0;
},
/**
* @method setAnchorTextShadow
* @param {bool} arg0
* @param {color3b_object} arg1
* @param {size_object} arg2
* @param {int} arg3
*/
setAnchorTextShadow : function (
bool,
color3b,
size,
int
)
{
},
/**
* @method isAnchorTextItalicEnabled
* @return {bool}
*/
isAnchorTextItalicEnabled : function (
)
{
return false;
},
/**
* @method setAnchorFontColor
* @param {String} arg0
*/
setAnchorFontColor : function (
str
)
{
},
/**
* @method setFontFace
* @param {String} arg0
*/
setFontFace : function (
str
)
{
},
/**
* @method setAnchorTextGlow
* @param {bool} arg0
* @param {color3b_object} arg1
*/
setAnchorTextGlow : function (
bool,
color3b
)
{
},
/**
* @method setAnchorTextDel
* @param {bool} arg0
*/
setAnchorTextDel : function (
bool
)
{
},
/**
* @method getAnchorTextOutlineColor3B
* @return {color3b_object}
*/
getAnchorTextOutlineColor3B : function (
)
{
return cc.Color3B;
},
/**
* @method stringWithColor4B
* @param {color4b_object} arg0
* @return {String}
*/
stringWithColor4B : function (
color4b
)
{
return ;
},
/**
* @method initWithXML
* @param {String} arg0
* @param {map_object} arg1
* @param {function} arg2
* @return {bool}
*/
initWithXML : function (
str,
map,
func
)
{
return false;
},
/**
* @method getAnchorFontColor3B
* @return {color3b_object}
*/
getAnchorFontColor3B : function (
)
{
return cc.Color3B;
},
/**
* @method formatText
*/
formatText : function (
)
{
},
/**
* @method getAnchorTextGlowColor3B
* @return {color3b_object}
*/
getAnchorTextGlowColor3B : function (
)
{
return cc.Color3B;
},
/**
* @method openUrl
* @param {String} arg0
*/
openUrl : function (
str
)
{
},
/**
* @method getFontFace
* @return {String}
*/
getFontFace : function (
)
{
return ;
},
/**
* @method setFontColor
* @param {String} arg0
*/
setFontColor : function (
str
)
{
},
/**
* @method isAnchorTextGlowEnabled
* @return {bool}
*/
isAnchorTextGlowEnabled : function (
)
{
return false;
},
/**
* @method getDefaults
* @return {map_object}
*/
getDefaults : function (
)
{
return map_object;
},
/**
* @method isAnchorTextUnderlineEnabled
* @return {bool}
*/
isAnchorTextUnderlineEnabled : function (
)
{
return false;
},
/**
* @method getFontColor
* @return {String}
*/
getFontColor : function (
)
{
return ;
},
/**
* @method isAnchorTextShadowEnabled
* @return {bool}
*/
isAnchorTextShadowEnabled : function (
)
{
return false;
},
/**
* @method getAnchorTextOutlineSize
* @return {int}
*/
getAnchorTextOutlineSize : function (
)
{
return 0;
},
/**
* @method setVerticalSpace
* @param {float} arg0
*/
setVerticalSpace : function (
float
)
{
},
/**
* @method isAnchorTextDelEnabled
* @return {bool}
*/
isAnchorTextDelEnabled : function (
)
{
return false;
},
/**
* @method setDefaults
* @param {map_object} arg0
*/
setDefaults : function (
map
)
{
},
/** /**
* @method setWrapMode * @method setWrapMode
* @param {ccui.RichText::WrapMode} arg0 * @param {ccui.RichText::WrapMode} arg0
@ -5611,15 +6011,97 @@ wrapmode
}, },
/** /**
* @method setVerticalSpace * @method setFontSize
* @param {float} arg0 * @param {float} arg0
*/ */
setVerticalSpace : function ( setFontSize : function (
float float
) )
{ {
}, },
/**
* @method removeElement
* @param {ccui.RichElement|int} richelement
*/
removeElement : function(
int
)
{
},
/**
* @method setAnchorTextItalic
* @param {bool} arg0
*/
setAnchorTextItalic : function (
bool
)
{
},
/**
* @method getAnchorTextShadowOffset
* @return {size_object}
*/
getAnchorTextShadowOffset : function (
)
{
return cc.Size;
},
/**
* @method isAnchorTextBoldEnabled
* @return {bool}
*/
isAnchorTextBoldEnabled : function (
)
{
return false;
},
/**
* @method getAnchorTextShadowColor3B
* @return {color3b_object}
*/
getAnchorTextShadowColor3B : function (
)
{
return cc.Color3B;
},
/**
* @method stringWithColor3B
* @param {color3b_object} arg0
* @return {String}
*/
stringWithColor3B : function (
color3b
)
{
return ;
},
/**
* @method isAnchorTextOutlineEnabled
* @return {bool}
*/
isAnchorTextOutlineEnabled : function (
)
{
return false;
},
/**
* @method getFontColor3B
* @return {color3b_object}
*/
getFontColor3B : function (
)
{
return cc.Color3B;
},
/** /**
* @method getWrapMode * @method getWrapMode
* @return {ccui.RichText::WrapMode} * @return {ccui.RichText::WrapMode}
@ -5631,33 +6113,25 @@ getWrapMode : function (
}, },
/** /**
* @method formatText * @method setAnchorTextUnderline
* @param {bool} arg0
*/ */
formatText : function ( setAnchorTextUnderline : function (
bool
) )
{ {
}, },
/** /**
* @method initWithXML * @method color3BWithString
* @param {String} arg0 * @param {String} arg0
* @return {bool} * @return {color3b_object}
*/ */
initWithXML : function ( color3BWithString : function (
str str
) )
{ {
return false; return cc.Color3B;
},
/**
* @method removeElement
* @param {ccui.RichElement|int} richelement
*/
removeElement : function(
int
)
{
}, },
/** /**
@ -5673,10 +6147,14 @@ create : function (
/** /**
* @method createWithXML * @method createWithXML
* @param {String} arg0 * @param {String} arg0
* @param {map_object} arg1
* @param {function} arg2
* @return {ccui.RichText} * @return {ccui.RichText}
*/ */
createWithXML : function ( createWithXML : function (
str str,
map,
func
) )
{ {
return ccui.RichText; return ccui.RichText;

File diff suppressed because it is too large Load Diff

View File

@ -685,7 +685,9 @@ bool js_cocos2dx_ui_RichElement_constructor(JSContext *cx, uint32_t argc, jsval
void js_cocos2dx_ui_RichElement_finalize(JSContext *cx, JSObject *obj); void js_cocos2dx_ui_RichElement_finalize(JSContext *cx, JSObject *obj);
void js_register_cocos2dx_ui_RichElement(JSContext *cx, JS::HandleObject global); void js_register_cocos2dx_ui_RichElement(JSContext *cx, JS::HandleObject global);
void register_all_cocos2dx_ui(JSContext* cx, JS::HandleObject obj); void register_all_cocos2dx_ui(JSContext* cx, JS::HandleObject obj);
bool js_cocos2dx_ui_RichElement_equalType(JSContext *cx, uint32_t argc, jsval *vp);
bool js_cocos2dx_ui_RichElement_init(JSContext *cx, uint32_t argc, jsval *vp); bool js_cocos2dx_ui_RichElement_init(JSContext *cx, uint32_t argc, jsval *vp);
bool js_cocos2dx_ui_RichElement_setColor(JSContext *cx, uint32_t argc, jsval *vp);
bool js_cocos2dx_ui_RichElement_RichElement(JSContext *cx, uint32_t argc, jsval *vp); bool js_cocos2dx_ui_RichElement_RichElement(JSContext *cx, uint32_t argc, jsval *vp);
extern JSClass *jsb_cocos2d_ui_RichElementText_class; extern JSClass *jsb_cocos2d_ui_RichElementText_class;
@ -709,6 +711,7 @@ void register_all_cocos2dx_ui(JSContext* cx, JS::HandleObject obj);
bool js_cocos2dx_ui_RichElementImage_setHeight(JSContext *cx, uint32_t argc, jsval *vp); bool js_cocos2dx_ui_RichElementImage_setHeight(JSContext *cx, uint32_t argc, jsval *vp);
bool js_cocos2dx_ui_RichElementImage_init(JSContext *cx, uint32_t argc, jsval *vp); bool js_cocos2dx_ui_RichElementImage_init(JSContext *cx, uint32_t argc, jsval *vp);
bool js_cocos2dx_ui_RichElementImage_setWidth(JSContext *cx, uint32_t argc, jsval *vp); bool js_cocos2dx_ui_RichElementImage_setWidth(JSContext *cx, uint32_t argc, jsval *vp);
bool js_cocos2dx_ui_RichElementImage_setUrl(JSContext *cx, uint32_t argc, jsval *vp);
bool js_cocos2dx_ui_RichElementImage_create(JSContext *cx, uint32_t argc, jsval *vp); bool js_cocos2dx_ui_RichElementImage_create(JSContext *cx, uint32_t argc, jsval *vp);
bool js_cocos2dx_ui_RichElementImage_RichElementImage(JSContext *cx, uint32_t argc, jsval *vp); bool js_cocos2dx_ui_RichElementImage_RichElementImage(JSContext *cx, uint32_t argc, jsval *vp);
@ -723,6 +726,16 @@ bool js_cocos2dx_ui_RichElementCustomNode_init(JSContext *cx, uint32_t argc, jsv
bool js_cocos2dx_ui_RichElementCustomNode_create(JSContext *cx, uint32_t argc, jsval *vp); bool js_cocos2dx_ui_RichElementCustomNode_create(JSContext *cx, uint32_t argc, jsval *vp);
bool js_cocos2dx_ui_RichElementCustomNode_RichElementCustomNode(JSContext *cx, uint32_t argc, jsval *vp); bool js_cocos2dx_ui_RichElementCustomNode_RichElementCustomNode(JSContext *cx, uint32_t argc, jsval *vp);
extern JSClass *jsb_cocos2d_ui_RichElementNewLine_class;
extern JSObject *jsb_cocos2d_ui_RichElementNewLine_prototype;
bool js_cocos2dx_ui_RichElementNewLine_constructor(JSContext *cx, uint32_t argc, jsval *vp);
void js_cocos2dx_ui_RichElementNewLine_finalize(JSContext *cx, JSObject *obj);
void js_register_cocos2dx_ui_RichElementNewLine(JSContext *cx, JS::HandleObject global);
void register_all_cocos2dx_ui(JSContext* cx, JS::HandleObject obj);
bool js_cocos2dx_ui_RichElementNewLine_create(JSContext *cx, uint32_t argc, jsval *vp);
bool js_cocos2dx_ui_RichElementNewLine_RichElementNewLine(JSContext *cx, uint32_t argc, jsval *vp);
extern JSClass *jsb_cocos2d_ui_RichText_class; extern JSClass *jsb_cocos2d_ui_RichText_class;
extern JSObject *jsb_cocos2d_ui_RichText_prototype; extern JSObject *jsb_cocos2d_ui_RichText_prototype;
@ -731,13 +744,49 @@ void js_cocos2dx_ui_RichText_finalize(JSContext *cx, JSObject *obj);
void js_register_cocos2dx_ui_RichText(JSContext *cx, JS::HandleObject global); void js_register_cocos2dx_ui_RichText(JSContext *cx, JS::HandleObject global);
void register_all_cocos2dx_ui(JSContext* cx, JS::HandleObject obj); void register_all_cocos2dx_ui(JSContext* cx, JS::HandleObject obj);
bool js_cocos2dx_ui_RichText_insertElement(JSContext *cx, uint32_t argc, jsval *vp); bool js_cocos2dx_ui_RichText_insertElement(JSContext *cx, uint32_t argc, jsval *vp);
bool js_cocos2dx_ui_RichText_setAnchorTextOutline(JSContext *cx, uint32_t argc, jsval *vp);
bool js_cocos2dx_ui_RichText_getFontSize(JSContext *cx, uint32_t argc, jsval *vp);
bool js_cocos2dx_ui_RichText_pushBackElement(JSContext *cx, uint32_t argc, jsval *vp); bool js_cocos2dx_ui_RichText_pushBackElement(JSContext *cx, uint32_t argc, jsval *vp);
bool js_cocos2dx_ui_RichText_setWrapMode(JSContext *cx, uint32_t argc, jsval *vp); bool js_cocos2dx_ui_RichText_setAnchorTextBold(JSContext *cx, uint32_t argc, jsval *vp);
bool js_cocos2dx_ui_RichText_setVerticalSpace(JSContext *cx, uint32_t argc, jsval *vp); bool js_cocos2dx_ui_RichText_getAnchorFontColor(JSContext *cx, uint32_t argc, jsval *vp);
bool js_cocos2dx_ui_RichText_getWrapMode(JSContext *cx, uint32_t argc, jsval *vp); bool js_cocos2dx_ui_RichText_getAnchorTextShadowBlurRadius(JSContext *cx, uint32_t argc, jsval *vp);
bool js_cocos2dx_ui_RichText_formatText(JSContext *cx, uint32_t argc, jsval *vp); bool js_cocos2dx_ui_RichText_setAnchorTextShadow(JSContext *cx, uint32_t argc, jsval *vp);
bool js_cocos2dx_ui_RichText_isAnchorTextItalicEnabled(JSContext *cx, uint32_t argc, jsval *vp);
bool js_cocos2dx_ui_RichText_setAnchorFontColor(JSContext *cx, uint32_t argc, jsval *vp);
bool js_cocos2dx_ui_RichText_setFontFace(JSContext *cx, uint32_t argc, jsval *vp);
bool js_cocos2dx_ui_RichText_setAnchorTextGlow(JSContext *cx, uint32_t argc, jsval *vp);
bool js_cocos2dx_ui_RichText_setAnchorTextDel(JSContext *cx, uint32_t argc, jsval *vp);
bool js_cocos2dx_ui_RichText_getAnchorTextOutlineColor3B(JSContext *cx, uint32_t argc, jsval *vp);
bool js_cocos2dx_ui_RichText_stringWithColor4B(JSContext *cx, uint32_t argc, jsval *vp);
bool js_cocos2dx_ui_RichText_initWithXML(JSContext *cx, uint32_t argc, jsval *vp); bool js_cocos2dx_ui_RichText_initWithXML(JSContext *cx, uint32_t argc, jsval *vp);
bool js_cocos2dx_ui_RichText_getAnchorFontColor3B(JSContext *cx, uint32_t argc, jsval *vp);
bool js_cocos2dx_ui_RichText_formatText(JSContext *cx, uint32_t argc, jsval *vp);
bool js_cocos2dx_ui_RichText_getAnchorTextGlowColor3B(JSContext *cx, uint32_t argc, jsval *vp);
bool js_cocos2dx_ui_RichText_openUrl(JSContext *cx, uint32_t argc, jsval *vp);
bool js_cocos2dx_ui_RichText_getFontFace(JSContext *cx, uint32_t argc, jsval *vp);
bool js_cocos2dx_ui_RichText_setFontColor(JSContext *cx, uint32_t argc, jsval *vp);
bool js_cocos2dx_ui_RichText_isAnchorTextGlowEnabled(JSContext *cx, uint32_t argc, jsval *vp);
bool js_cocos2dx_ui_RichText_getDefaults(JSContext *cx, uint32_t argc, jsval *vp);
bool js_cocos2dx_ui_RichText_isAnchorTextUnderlineEnabled(JSContext *cx, uint32_t argc, jsval *vp);
bool js_cocos2dx_ui_RichText_getFontColor(JSContext *cx, uint32_t argc, jsval *vp);
bool js_cocos2dx_ui_RichText_isAnchorTextShadowEnabled(JSContext *cx, uint32_t argc, jsval *vp);
bool js_cocos2dx_ui_RichText_getAnchorTextOutlineSize(JSContext *cx, uint32_t argc, jsval *vp);
bool js_cocos2dx_ui_RichText_setVerticalSpace(JSContext *cx, uint32_t argc, jsval *vp);
bool js_cocos2dx_ui_RichText_isAnchorTextDelEnabled(JSContext *cx, uint32_t argc, jsval *vp);
bool js_cocos2dx_ui_RichText_setDefaults(JSContext *cx, uint32_t argc, jsval *vp);
bool js_cocos2dx_ui_RichText_setWrapMode(JSContext *cx, uint32_t argc, jsval *vp);
bool js_cocos2dx_ui_RichText_setFontSize(JSContext *cx, uint32_t argc, jsval *vp);
bool js_cocos2dx_ui_RichText_removeElement(JSContext *cx, uint32_t argc, jsval *vp); bool js_cocos2dx_ui_RichText_removeElement(JSContext *cx, uint32_t argc, jsval *vp);
bool js_cocos2dx_ui_RichText_setAnchorTextItalic(JSContext *cx, uint32_t argc, jsval *vp);
bool js_cocos2dx_ui_RichText_getAnchorTextShadowOffset(JSContext *cx, uint32_t argc, jsval *vp);
bool js_cocos2dx_ui_RichText_isAnchorTextBoldEnabled(JSContext *cx, uint32_t argc, jsval *vp);
bool js_cocos2dx_ui_RichText_getAnchorTextShadowColor3B(JSContext *cx, uint32_t argc, jsval *vp);
bool js_cocos2dx_ui_RichText_stringWithColor3B(JSContext *cx, uint32_t argc, jsval *vp);
bool js_cocos2dx_ui_RichText_isAnchorTextOutlineEnabled(JSContext *cx, uint32_t argc, jsval *vp);
bool js_cocos2dx_ui_RichText_getFontColor3B(JSContext *cx, uint32_t argc, jsval *vp);
bool js_cocos2dx_ui_RichText_getWrapMode(JSContext *cx, uint32_t argc, jsval *vp);
bool js_cocos2dx_ui_RichText_setAnchorTextUnderline(JSContext *cx, uint32_t argc, jsval *vp);
bool js_cocos2dx_ui_RichText_color3BWithString(JSContext *cx, uint32_t argc, jsval *vp);
bool js_cocos2dx_ui_RichText_create(JSContext *cx, uint32_t argc, jsval *vp); bool js_cocos2dx_ui_RichText_create(JSContext *cx, uint32_t argc, jsval *vp);
bool js_cocos2dx_ui_RichText_createWithXML(JSContext *cx, uint32_t argc, jsval *vp); bool js_cocos2dx_ui_RichText_createWithXML(JSContext *cx, uint32_t argc, jsval *vp);
bool js_cocos2dx_ui_RichText_RichText(JSContext *cx, uint32_t argc, jsval *vp); bool js_cocos2dx_ui_RichText_RichText(JSContext *cx, uint32_t argc, jsval *vp);

View File

@ -4,6 +4,15 @@
-- @extend Ref -- @extend Ref
-- @parent_module cc -- @parent_module cc
--------------------------------
-- @overload self, cc.Console::Command, cc.Console::Command
-- @overload self, string, cc.Console::Command
-- @function [parent=#Console] addSubCommand
-- @param self
-- @param #string cmdName
-- @param #cc.Console::Command subCmd
-- @return Console#Console self (return value: cc.Console)
-------------------------------- --------------------------------
-- starts listening to specified TCP port -- starts listening to specified TCP port
-- @function [parent=#Console] listenOnTCP -- @function [parent=#Console] listenOnTCP
@ -19,11 +28,19 @@
-- @return Console#Console self (return value: cc.Console) -- @return Console#Console self (return value: cc.Console)
-------------------------------- --------------------------------
-- set bind address<br> -- @overload self, cc.Console::Command, string
-- address : 127.0.0.1 -- @overload self, string, string
-- @function [parent=#Console] setBindAddress -- @function [parent=#Console] getSubCommand
-- @param self -- @param self
-- @param #string address -- @param #string cmdName
-- @param #string subCmdName
-- @return Console::Command#Console::Command ret (return value: cc.Console::Command)
--------------------------------
-- delete custom command
-- @function [parent=#Console] delCommand
-- @param self
-- @param #string cmdName
-- @return Console#Console self (return value: cc.Console) -- @return Console#Console self (return value: cc.Console)
-------------------------------- --------------------------------
@ -32,6 +49,13 @@
-- @param self -- @param self
-- @return Console#Console self (return value: cc.Console) -- @return Console#Console self (return value: cc.Console)
--------------------------------
-- get custom command
-- @function [parent=#Console] getCommand
-- @param self
-- @param #string cmdName
-- @return Console::Command#Console::Command ret (return value: cc.Console::Command)
-------------------------------- --------------------------------
-- starts listening to specified file descriptor -- starts listening to specified file descriptor
-- @function [parent=#Console] listenOnFileDescriptor -- @function [parent=#Console] listenOnFileDescriptor
@ -39,4 +63,21 @@
-- @param #int fd -- @param #int fd
-- @return bool#bool ret (return value: bool) -- @return bool#bool ret (return value: bool)
--------------------------------
-- set bind address<br>
-- address : 127.0.0.1
-- @function [parent=#Console] setBindAddress
-- @param self
-- @param #string address
-- @return Console#Console self (return value: cc.Console)
--------------------------------
-- @overload self, cc.Console::Command, string
-- @overload self, string, string
-- @function [parent=#Console] delSubCommand
-- @param self
-- @param #string cmdName
-- @param #string subCmdName
-- @return Console#Console self (return value: cc.Console)
return nil return nil

View File

@ -4,6 +4,13 @@
-- @extend Ref -- @extend Ref
-- @parent_module ccui -- @parent_module ccui
--------------------------------
--
-- @function [parent=#RichElement] equalType
-- @param self
-- @param #int type
-- @return bool#bool ret (return value: bool)
-------------------------------- --------------------------------
-- brief Initialize a rich element with different arguments.<br> -- brief Initialize a rich element with different arguments.<br>
-- param tag A integer tag value.<br> -- param tag A integer tag value.<br>
@ -17,6 +24,13 @@
-- @param #unsigned char opacity -- @param #unsigned char opacity
-- @return bool#bool ret (return value: bool) -- @return bool#bool ret (return value: bool)
--------------------------------
--
-- @function [parent=#RichElement] setColor
-- @param self
-- @param #color3b_table color
-- @return RichElement#RichElement self (return value: ccui.RichElement)
-------------------------------- --------------------------------
-- brief Default constructor.<br> -- brief Default constructor.<br>
-- js ctor<br> -- js ctor<br>

View File

@ -17,6 +17,7 @@
-- param color A color in Color3B.<br> -- param color A color in Color3B.<br>
-- param opacity A opacity in GLubyte.<br> -- param opacity A opacity in GLubyte.<br>
-- param filePath A image file name.<br> -- param filePath A image file name.<br>
-- param url uniform resource locator<br>
-- return True if initialize success, false otherwise. -- return True if initialize success, false otherwise.
-- @function [parent=#RichElementImage] init -- @function [parent=#RichElementImage] init
-- @param self -- @param self
@ -24,6 +25,7 @@
-- @param #color3b_table color -- @param #color3b_table color
-- @param #unsigned char opacity -- @param #unsigned char opacity
-- @param #string filePath -- @param #string filePath
-- @param #string url
-- @return bool#bool ret (return value: bool) -- @return bool#bool ret (return value: bool)
-------------------------------- --------------------------------
@ -33,12 +35,20 @@
-- @param #int width -- @param #int width
-- @return RichElementImage#RichElementImage self (return value: ccui.RichElementImage) -- @return RichElementImage#RichElementImage self (return value: ccui.RichElementImage)
--------------------------------
--
-- @function [parent=#RichElementImage] setUrl
-- @param self
-- @param #string url
-- @return RichElementImage#RichElementImage self (return value: ccui.RichElementImage)
-------------------------------- --------------------------------
-- brief Create a RichElementImage with various arguments.<br> -- brief Create a RichElementImage with various arguments.<br>
-- param tag A integer tag value.<br> -- param tag A integer tag value.<br>
-- param color A color in Color3B.<br> -- param color A color in Color3B.<br>
-- param opacity A opacity in GLubyte.<br> -- param opacity A opacity in GLubyte.<br>
-- param filePath A image file name.<br> -- param filePath A image file name.<br>
-- param url uniform resource locator<br>
-- return A RichElementImage instance. -- return A RichElementImage instance.
-- @function [parent=#RichElementImage] create -- @function [parent=#RichElementImage] create
-- @param self -- @param self
@ -46,6 +56,7 @@
-- @param #color3b_table color -- @param #color3b_table color
-- @param #unsigned char opacity -- @param #unsigned char opacity
-- @param #string filePath -- @param #string filePath
-- @param #string url
-- @return RichElementImage#RichElementImage ret (return value: ccui.RichElementImage) -- @return RichElementImage#RichElementImage ret (return value: ccui.RichElementImage)
-------------------------------- --------------------------------

View File

@ -12,7 +12,14 @@
-- param text Content string.<br> -- param text Content string.<br>
-- param fontName Content font name.<br> -- param fontName Content font name.<br>
-- param fontSize Content font size.<br> -- param fontSize Content font size.<br>
-- param flags: italics, bold, underline or strikethrough<br> -- param flags: italics, bold, underline, strikethrough, url, outline, shadow or glow<br>
-- param url uniform resource locator<br>
-- param outlineColor the color of the outline<br>
-- param outlineSize the outline effect size value<br>
-- param shadowColor the shadow effect color value<br>
-- param shadowOffset shadow effect offset value<br>
-- param shadowBlurRadius the shadow effect blur radius<br>
-- param glowColor glow color<br>
-- return True if initialize success, false otherwise. -- return True if initialize success, false otherwise.
-- @function [parent=#RichElementText] init -- @function [parent=#RichElementText] init
-- @param self -- @param self
@ -24,6 +31,12 @@
-- @param #float fontSize -- @param #float fontSize
-- @param #unsigned int flags -- @param #unsigned int flags
-- @param #string url -- @param #string url
-- @param #color3b_table outlineColor
-- @param #int outlineSize
-- @param #color3b_table shadowColor
-- @param #size_table shadowOffset
-- @param #int shadowBlurRadius
-- @param #color3b_table glowColor
-- @return bool#bool ret (return value: bool) -- @return bool#bool ret (return value: bool)
-------------------------------- --------------------------------
@ -34,7 +47,14 @@
-- param text Content string.<br> -- param text Content string.<br>
-- param fontName Content font name.<br> -- param fontName Content font name.<br>
-- param fontSize Content font size.<br> -- param fontSize Content font size.<br>
-- param flags: italics, bold, underline or strikethrough<br> -- param flags: italics, bold, underline, strikethrough, url, outline, shadow or glow<br>
-- param url uniform resource locator<br>
-- param outlineColor the color of the outline<br>
-- param outlineSize the outline effect size value<br>
-- param shadowColor the shadow effect color value<br>
-- param shadowOffset shadow effect offset value<br>
-- param shadowBlurRadius the shadow effect blur radius<br>
-- param glowColor glow color<br>
-- return RichElementText instance. -- return RichElementText instance.
-- @function [parent=#RichElementText] create -- @function [parent=#RichElementText] create
-- @param self -- @param self
@ -46,6 +66,12 @@
-- @param #float fontSize -- @param #float fontSize
-- @param #unsigned int flags -- @param #unsigned int flags
-- @param #string url -- @param #string url
-- @param #color3b_table outlineColor
-- @param #int outlineSize
-- @param #color3b_table shadowColor
-- @param #size_table shadowOffset
-- @param #int shadowBlurRadius
-- @param #color3b_table glowColor
-- @return RichElementText#RichElementText ret (return value: ccui.RichElementText) -- @return RichElementText#RichElementText ret (return value: ccui.RichElementText)
-------------------------------- --------------------------------

View File

@ -14,6 +14,21 @@
-- @param #int index -- @param #int index
-- @return RichText#RichText self (return value: ccui.RichText) -- @return RichText#RichText self (return value: ccui.RichText)
--------------------------------
-- @breif enable the outline of a-tag
-- @function [parent=#RichText] setAnchorTextOutline
-- @param self
-- @param #bool enable
-- @param #color3b_table outlineColor
-- @param #int outlineSize
-- @return RichText#RichText self (return value: ccui.RichText)
--------------------------------
--
-- @function [parent=#RichText] getFontSize
-- @param self
-- @return float#float ret (return value: float)
-------------------------------- --------------------------------
-- brief Add a RichElement at the end of RichText.<br> -- brief Add a RichElement at the end of RichText.<br>
-- param element A RichElement instance. -- param element A RichElement instance.
@ -23,26 +38,97 @@
-- @return RichText#RichText self (return value: ccui.RichText) -- @return RichText#RichText self (return value: ccui.RichText)
-------------------------------- --------------------------------
-- @brief sets the wrapping mode: WRAP_PER_CHAR or WRAP_PER_WORD --
-- @function [parent=#RichText] setWrapMode -- @function [parent=#RichText] setAnchorTextBold
-- @param self -- @param self
-- @param #int wrapMode -- @param #bool enable
-- @return RichText#RichText self (return value: ccui.RichText) -- @return RichText#RichText self (return value: ccui.RichText)
-------------------------------- --------------------------------
-- brief Set vertical space between each RichElement.<br> --
-- param space Point in float. -- @function [parent=#RichText] getAnchorFontColor
-- @function [parent=#RichText] setVerticalSpace
-- @param self -- @param self
-- @param #float space -- @return string#string ret (return value: string)
-- @return RichText#RichText self (return value: ccui.RichText)
-------------------------------- --------------------------------
-- @brief returns the current wrapping mode --
-- @function [parent=#RichText] getWrapMode -- @function [parent=#RichText] getAnchorTextShadowBlurRadius
-- @param self -- @param self
-- @return int#int ret (return value: int) -- @return int#int ret (return value: int)
--------------------------------
-- @breif enable the shadow of a-tag
-- @function [parent=#RichText] setAnchorTextShadow
-- @param self
-- @param #bool enable
-- @param #color3b_table shadowColor
-- @param #size_table offset
-- @param #int blurRadius
-- @return RichText#RichText self (return value: ccui.RichText)
--------------------------------
--
-- @function [parent=#RichText] isAnchorTextItalicEnabled
-- @param self
-- @return bool#bool ret (return value: bool)
--------------------------------
--
-- @function [parent=#RichText] setAnchorFontColor
-- @param self
-- @param #string color
-- @return RichText#RichText self (return value: ccui.RichText)
--------------------------------
--
-- @function [parent=#RichText] setFontFace
-- @param self
-- @param #string face
-- @return RichText#RichText self (return value: ccui.RichText)
--------------------------------
--
-- @function [parent=#RichText] setAnchorTextGlow
-- @param self
-- @param #bool enable
-- @param #color3b_table glowColor
-- @return RichText#RichText self (return value: ccui.RichText)
--------------------------------
--
-- @function [parent=#RichText] setAnchorTextDel
-- @param self
-- @param #bool enable
-- @return RichText#RichText self (return value: ccui.RichText)
--------------------------------
--
-- @function [parent=#RichText] getAnchorTextOutlineColor3B
-- @param self
-- @return color3b_table#color3b_table ret (return value: color3b_table)
--------------------------------
--
-- @function [parent=#RichText] stringWithColor4B
-- @param self
-- @param #color4b_table color4b
-- @return string#string ret (return value: string)
--------------------------------
--
-- @function [parent=#RichText] initWithXML
-- @param self
-- @param #string xml
-- @param #map_table defaults
-- @param #function handleOpenUrl
-- @return bool#bool ret (return value: bool)
--------------------------------
--
-- @function [parent=#RichText] getAnchorFontColor3B
-- @param self
-- @return color3b_table#color3b_table ret (return value: color3b_table)
-------------------------------- --------------------------------
-- brief Rearrange all RichElement in the RichText.<br> -- brief Rearrange all RichElement in the RichText.<br>
-- It's usually called internally. -- It's usually called internally.
@ -52,11 +138,101 @@
-------------------------------- --------------------------------
-- --
-- @function [parent=#RichText] initWithXML -- @function [parent=#RichText] getAnchorTextGlowColor3B
-- @param self
-- @return color3b_table#color3b_table ret (return value: color3b_table)
--------------------------------
--
-- @function [parent=#RichText] openUrl
-- @param self
-- @param #string url
-- @return RichText#RichText self (return value: ccui.RichText)
--------------------------------
--
-- @function [parent=#RichText] getFontFace
-- @param self
-- @return string#string ret (return value: string)
--------------------------------
--
-- @function [parent=#RichText] setFontColor
-- @param self
-- @param #string color
-- @return RichText#RichText self (return value: ccui.RichText)
--------------------------------
--
-- @function [parent=#RichText] isAnchorTextGlowEnabled
-- @param self -- @param self
-- @param #string xml
-- @return bool#bool ret (return value: bool) -- @return bool#bool ret (return value: bool)
--------------------------------
--
-- @function [parent=#RichText] getDefaults
-- @param self
-- @return map_table#map_table ret (return value: map_table)
--------------------------------
--
-- @function [parent=#RichText] isAnchorTextUnderlineEnabled
-- @param self
-- @return bool#bool ret (return value: bool)
--------------------------------
--
-- @function [parent=#RichText] getFontColor
-- @param self
-- @return string#string ret (return value: string)
--------------------------------
--
-- @function [parent=#RichText] isAnchorTextShadowEnabled
-- @param self
-- @return bool#bool ret (return value: bool)
--------------------------------
--
-- @function [parent=#RichText] getAnchorTextOutlineSize
-- @param self
-- @return int#int ret (return value: int)
--------------------------------
-- brief Set vertical space between each RichElement.<br>
-- param space Point in float.
-- @function [parent=#RichText] setVerticalSpace
-- @param self
-- @param #float space
-- @return RichText#RichText self (return value: ccui.RichText)
--------------------------------
--
-- @function [parent=#RichText] isAnchorTextDelEnabled
-- @param self
-- @return bool#bool ret (return value: bool)
--------------------------------
--
-- @function [parent=#RichText] setDefaults
-- @param self
-- @param #map_table defaults
-- @return RichText#RichText self (return value: ccui.RichText)
--------------------------------
--
-- @function [parent=#RichText] setWrapMode
-- @param self
-- @param #int wrapMode
-- @return RichText#RichText self (return value: ccui.RichText)
--------------------------------
--
-- @function [parent=#RichText] setFontSize
-- @param self
-- @param #float size
-- @return RichText#RichText self (return value: ccui.RichText)
-------------------------------- --------------------------------
-- @overload self, ccui.RichElement -- @overload self, ccui.RichElement
-- @overload self, int -- @overload self, int
@ -65,6 +241,70 @@
-- @param #int index -- @param #int index
-- @return RichText#RichText self (return value: ccui.RichText) -- @return RichText#RichText self (return value: ccui.RichText)
--------------------------------
--
-- @function [parent=#RichText] setAnchorTextItalic
-- @param self
-- @param #bool enable
-- @return RichText#RichText self (return value: ccui.RichText)
--------------------------------
--
-- @function [parent=#RichText] getAnchorTextShadowOffset
-- @param self
-- @return size_table#size_table ret (return value: size_table)
--------------------------------
--
-- @function [parent=#RichText] isAnchorTextBoldEnabled
-- @param self
-- @return bool#bool ret (return value: bool)
--------------------------------
--
-- @function [parent=#RichText] getAnchorTextShadowColor3B
-- @param self
-- @return color3b_table#color3b_table ret (return value: color3b_table)
--------------------------------
--
-- @function [parent=#RichText] stringWithColor3B
-- @param self
-- @param #color3b_table color3b
-- @return string#string ret (return value: string)
--------------------------------
--
-- @function [parent=#RichText] isAnchorTextOutlineEnabled
-- @param self
-- @return bool#bool ret (return value: bool)
--------------------------------
--
-- @function [parent=#RichText] getFontColor3B
-- @param self
-- @return color3b_table#color3b_table ret (return value: color3b_table)
--------------------------------
--
-- @function [parent=#RichText] getWrapMode
-- @param self
-- @return int#int ret (return value: int)
--------------------------------
--
-- @function [parent=#RichText] setAnchorTextUnderline
-- @param self
-- @param #bool enable
-- @return RichText#RichText self (return value: ccui.RichText)
--------------------------------
--
-- @function [parent=#RichText] color3BWithString
-- @param self
-- @param #string color
-- @return color3b_table#color3b_table ret (return value: color3b_table)
-------------------------------- --------------------------------
-- brief Create a empty RichText.<br> -- brief Create a empty RichText.<br>
-- return RichText instance. -- return RichText instance.
@ -78,6 +318,8 @@
-- @function [parent=#RichText] createWithXML -- @function [parent=#RichText] createWithXML
-- @param self -- @param self
-- @param #string xml -- @param #string xml
-- @param #map_table defaults
-- @param #function handleOpenUrl
-- @return RichText#RichText ret (return value: ccui.RichText) -- @return RichText#RichText ret (return value: ccui.RichText)
-------------------------------- --------------------------------

View File

@ -169,6 +169,72 @@ int lua_register_cocos2dx_Ref(lua_State* tolua_S)
return 1; return 1;
} }
int lua_cocos2dx_Console_addSubCommand(lua_State* tolua_S)
{
int argc = 0;
cocos2d::Console* cobj = nullptr;
bool ok = true;
#if COCOS2D_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if COCOS2D_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"cc.Console",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (cocos2d::Console*)tolua_tousertype(tolua_S,1,0);
#if COCOS2D_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Console_addSubCommand'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
do{
if (argc == 2) {
cocos2d::Console::Command arg0;
#pragma warning NO CONVERSION TO NATIVE FOR Command
ok = false;
if (!ok) { break; }
cocos2d::Console::Command arg1;
#pragma warning NO CONVERSION TO NATIVE FOR Command
ok = false;
if (!ok) { break; }
cobj->addSubCommand(arg0, arg1);
lua_settop(tolua_S, 1);
return 1;
}
}while(0);
ok = true;
do{
if (argc == 2) {
std::string arg0;
ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.Console:addSubCommand");
if (!ok) { break; }
cocos2d::Console::Command arg1;
#pragma warning NO CONVERSION TO NATIVE FOR Command
ok = false;
if (!ok) { break; }
cobj->addSubCommand(arg0, arg1);
lua_settop(tolua_S, 1);
return 1;
}
}while(0);
ok = true;
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Console:addSubCommand",argc, 2);
return 0;
#if COCOS2D_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Console_addSubCommand'.",&tolua_err);
#endif
return 0;
}
int lua_cocos2dx_Console_listenOnTCP(lua_State* tolua_S) int lua_cocos2dx_Console_listenOnTCP(lua_State* tolua_S)
{ {
int argc = 0; int argc = 0;
@ -269,7 +335,71 @@ int lua_cocos2dx_Console_log(lua_State* tolua_S)
return 0; return 0;
} }
int lua_cocos2dx_Console_setBindAddress(lua_State* tolua_S) int lua_cocos2dx_Console_getSubCommand(lua_State* tolua_S)
{
int argc = 0;
cocos2d::Console* cobj = nullptr;
bool ok = true;
#if COCOS2D_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if COCOS2D_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"cc.Console",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (cocos2d::Console*)tolua_tousertype(tolua_S,1,0);
#if COCOS2D_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Console_getSubCommand'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
do{
if (argc == 2) {
cocos2d::Console::Command arg0;
#pragma warning NO CONVERSION TO NATIVE FOR Command
ok = false;
if (!ok) { break; }
std::string arg1;
ok &= luaval_to_std_string(tolua_S, 3,&arg1, "cc.Console:getSubCommand");
if (!ok) { break; }
const cocos2d::Console::Command* ret = cobj->getSubCommand(arg0, arg1);
#pragma warning NO CONVERSION FROM NATIVE FOR Command*;
return 1;
}
}while(0);
ok = true;
do{
if (argc == 2) {
std::string arg0;
ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.Console:getSubCommand");
if (!ok) { break; }
std::string arg1;
ok &= luaval_to_std_string(tolua_S, 3,&arg1, "cc.Console:getSubCommand");
if (!ok) { break; }
const cocos2d::Console::Command* ret = cobj->getSubCommand(arg0, arg1);
#pragma warning NO CONVERSION FROM NATIVE FOR Command*;
return 1;
}
}while(0);
ok = true;
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Console:getSubCommand",argc, 2);
return 0;
#if COCOS2D_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Console_getSubCommand'.",&tolua_err);
#endif
return 0;
}
int lua_cocos2dx_Console_delCommand(lua_State* tolua_S)
{ {
int argc = 0; int argc = 0;
cocos2d::Console* cobj = nullptr; cocos2d::Console* cobj = nullptr;
@ -289,7 +419,7 @@ int lua_cocos2dx_Console_setBindAddress(lua_State* tolua_S)
#if COCOS2D_DEBUG >= 1 #if COCOS2D_DEBUG >= 1
if (!cobj) if (!cobj)
{ {
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Console_setBindAddress'", nullptr); tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Console_delCommand'", nullptr);
return 0; return 0;
} }
#endif #endif
@ -299,22 +429,22 @@ int lua_cocos2dx_Console_setBindAddress(lua_State* tolua_S)
{ {
std::string arg0; std::string arg0;
ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.Console:setBindAddress"); ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.Console:delCommand");
if(!ok) if(!ok)
{ {
tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Console_setBindAddress'", nullptr); tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Console_delCommand'", nullptr);
return 0; return 0;
} }
cobj->setBindAddress(arg0); cobj->delCommand(arg0);
lua_settop(tolua_S, 1); lua_settop(tolua_S, 1);
return 1; return 1;
} }
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Console:setBindAddress",argc, 1); luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Console:delCommand",argc, 1);
return 0; return 0;
#if COCOS2D_DEBUG >= 1 #if COCOS2D_DEBUG >= 1
tolua_lerror: tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Console_setBindAddress'.",&tolua_err); tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Console_delCommand'.",&tolua_err);
#endif #endif
return 0; return 0;
@ -366,6 +496,56 @@ int lua_cocos2dx_Console_stop(lua_State* tolua_S)
return 0; return 0;
} }
int lua_cocos2dx_Console_getCommand(lua_State* tolua_S)
{
int argc = 0;
cocos2d::Console* cobj = nullptr;
bool ok = true;
#if COCOS2D_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if COCOS2D_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"cc.Console",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (cocos2d::Console*)tolua_tousertype(tolua_S,1,0);
#if COCOS2D_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Console_getCommand'", 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, "cc.Console:getCommand");
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Console_getCommand'", nullptr);
return 0;
}
const cocos2d::Console::Command* ret = cobj->getCommand(arg0);
#pragma warning NO CONVERSION FROM NATIVE FOR Command*;
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Console:getCommand",argc, 1);
return 0;
#if COCOS2D_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Console_getCommand'.",&tolua_err);
#endif
return 0;
}
int lua_cocos2dx_Console_listenOnFileDescriptor(lua_State* tolua_S) int lua_cocos2dx_Console_listenOnFileDescriptor(lua_State* tolua_S)
{ {
int argc = 0; int argc = 0;
@ -416,6 +596,120 @@ int lua_cocos2dx_Console_listenOnFileDescriptor(lua_State* tolua_S)
return 0; return 0;
} }
int lua_cocos2dx_Console_setBindAddress(lua_State* tolua_S)
{
int argc = 0;
cocos2d::Console* cobj = nullptr;
bool ok = true;
#if COCOS2D_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if COCOS2D_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"cc.Console",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (cocos2d::Console*)tolua_tousertype(tolua_S,1,0);
#if COCOS2D_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Console_setBindAddress'", 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, "cc.Console:setBindAddress");
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Console_setBindAddress'", nullptr);
return 0;
}
cobj->setBindAddress(arg0);
lua_settop(tolua_S, 1);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Console:setBindAddress",argc, 1);
return 0;
#if COCOS2D_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Console_setBindAddress'.",&tolua_err);
#endif
return 0;
}
int lua_cocos2dx_Console_delSubCommand(lua_State* tolua_S)
{
int argc = 0;
cocos2d::Console* cobj = nullptr;
bool ok = true;
#if COCOS2D_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if COCOS2D_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"cc.Console",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (cocos2d::Console*)tolua_tousertype(tolua_S,1,0);
#if COCOS2D_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Console_delSubCommand'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
do{
if (argc == 2) {
cocos2d::Console::Command arg0;
#pragma warning NO CONVERSION TO NATIVE FOR Command
ok = false;
if (!ok) { break; }
std::string arg1;
ok &= luaval_to_std_string(tolua_S, 3,&arg1, "cc.Console:delSubCommand");
if (!ok) { break; }
cobj->delSubCommand(arg0, arg1);
lua_settop(tolua_S, 1);
return 1;
}
}while(0);
ok = true;
do{
if (argc == 2) {
std::string arg0;
ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.Console:delSubCommand");
if (!ok) { break; }
std::string arg1;
ok &= luaval_to_std_string(tolua_S, 3,&arg1, "cc.Console:delSubCommand");
if (!ok) { break; }
cobj->delSubCommand(arg0, arg1);
lua_settop(tolua_S, 1);
return 1;
}
}while(0);
ok = true;
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Console:delSubCommand",argc, 2);
return 0;
#if COCOS2D_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Console_delSubCommand'.",&tolua_err);
#endif
return 0;
}
static int lua_cocos2dx_Console_finalize(lua_State* tolua_S) static int lua_cocos2dx_Console_finalize(lua_State* tolua_S)
{ {
printf("luabindings: finalizing LUA object (Console)"); printf("luabindings: finalizing LUA object (Console)");
@ -428,11 +722,16 @@ int lua_register_cocos2dx_Console(lua_State* tolua_S)
tolua_cclass(tolua_S,"Console","cc.Console","cc.Ref",nullptr); tolua_cclass(tolua_S,"Console","cc.Console","cc.Ref",nullptr);
tolua_beginmodule(tolua_S,"Console"); tolua_beginmodule(tolua_S,"Console");
tolua_function(tolua_S,"addSubCommand",lua_cocos2dx_Console_addSubCommand);
tolua_function(tolua_S,"listenOnTCP",lua_cocos2dx_Console_listenOnTCP); tolua_function(tolua_S,"listenOnTCP",lua_cocos2dx_Console_listenOnTCP);
tolua_function(tolua_S,"log",lua_cocos2dx_Console_log); tolua_function(tolua_S,"log",lua_cocos2dx_Console_log);
tolua_function(tolua_S,"setBindAddress",lua_cocos2dx_Console_setBindAddress); tolua_function(tolua_S,"getSubCommand",lua_cocos2dx_Console_getSubCommand);
tolua_function(tolua_S,"delCommand",lua_cocos2dx_Console_delCommand);
tolua_function(tolua_S,"stop",lua_cocos2dx_Console_stop); tolua_function(tolua_S,"stop",lua_cocos2dx_Console_stop);
tolua_function(tolua_S,"getCommand",lua_cocos2dx_Console_getCommand);
tolua_function(tolua_S,"listenOnFileDescriptor",lua_cocos2dx_Console_listenOnFileDescriptor); tolua_function(tolua_S,"listenOnFileDescriptor",lua_cocos2dx_Console_listenOnFileDescriptor);
tolua_function(tolua_S,"setBindAddress",lua_cocos2dx_Console_setBindAddress);
tolua_function(tolua_S,"delSubCommand",lua_cocos2dx_Console_delSubCommand);
tolua_endmodule(tolua_S); tolua_endmodule(tolua_S);
std::string typeName = typeid(cocos2d::Console).name(); std::string typeName = typeid(cocos2d::Console).name();
g_luaType[typeName] = "cc.Console"; g_luaType[typeName] = "cc.Console";

View File

@ -2186,6 +2186,11 @@ int register_all_cocos2dx(lua_State* tolua_S);

File diff suppressed because it is too large Load Diff

View File

@ -692,6 +692,45 @@ int register_all_cocos2dx_ui(lua_State* tolua_S);