mirror of https://github.com/axmolengine/axmol.git
[AUTO]: updating luabinding automatically
This commit is contained in:
parent
b456701451
commit
7ad48b632a
|
@ -17,7 +17,7 @@
|
|||
--------------------------------
|
||||
-- @function [parent=#LoadingBar] setPercent
|
||||
-- @param self
|
||||
-- @param #int int
|
||||
-- @param #float float
|
||||
|
||||
--------------------------------
|
||||
-- @function [parent=#LoadingBar] setScale9Enabled
|
||||
|
@ -42,7 +42,7 @@
|
|||
--------------------------------
|
||||
-- @function [parent=#LoadingBar] getPercent
|
||||
-- @param self
|
||||
-- @return int#int ret (return value: int)
|
||||
-- @return float#float ret (return value: float)
|
||||
|
||||
--------------------------------
|
||||
-- @function [parent=#LoadingBar] getCapInsets
|
||||
|
@ -50,14 +50,14 @@
|
|||
-- @return rect_table#rect_table ret (return value: rect_table)
|
||||
|
||||
--------------------------------
|
||||
-- overload function: create(string, int)
|
||||
-- overload function: create(string, float)
|
||||
--
|
||||
-- overload function: create()
|
||||
--
|
||||
-- @function [parent=#LoadingBar] create
|
||||
-- @param self
|
||||
-- @param #string str
|
||||
-- @param #int int
|
||||
-- @param #float float
|
||||
-- @return LoadingBar#LoadingBar ret (retunr value: ccui.LoadingBar)
|
||||
|
||||
--------------------------------
|
||||
|
|
|
@ -8912,9 +8912,9 @@ int lua_cocos2dx_ui_LoadingBar_setPercent(lua_State* tolua_S)
|
|||
argc = lua_gettop(tolua_S)-1;
|
||||
if (argc == 1)
|
||||
{
|
||||
int arg0;
|
||||
double arg0;
|
||||
|
||||
ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0);
|
||||
ok &= luaval_to_number(tolua_S, 2,&arg0);
|
||||
if(!ok)
|
||||
return 0;
|
||||
cobj->setPercent(arg0);
|
||||
|
@ -9140,7 +9140,7 @@ int lua_cocos2dx_ui_LoadingBar_getPercent(lua_State* tolua_S)
|
|||
{
|
||||
if(!ok)
|
||||
return 0;
|
||||
int ret = cobj->getPercent();
|
||||
double ret = cobj->getPercent();
|
||||
tolua_pushnumber(tolua_S,(lua_Number)ret);
|
||||
return 1;
|
||||
}
|
||||
|
@ -9232,8 +9232,8 @@ int lua_cocos2dx_ui_LoadingBar_create(lua_State* tolua_S)
|
|||
std::string arg0;
|
||||
ok &= luaval_to_std_string(tolua_S, 2,&arg0);
|
||||
if (!ok) { break; }
|
||||
int arg1;
|
||||
ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1);
|
||||
double arg1;
|
||||
ok &= luaval_to_number(tolua_S, 3,&arg1);
|
||||
if (!ok) { break; }
|
||||
cocos2d::ui::LoadingBar* ret = cocos2d::ui::LoadingBar::create(arg0, arg1);
|
||||
object_to_luaval<cocos2d::ui::LoadingBar>(tolua_S, "ccui.LoadingBar",(cocos2d::ui::LoadingBar*)ret);
|
||||
|
|
Loading…
Reference in New Issue