static int _s_set_onFinished(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); try { xc.ui.ugui.SliderEx __cl_gen_to_be_invoked = (xc.ui.ugui.SliderEx)translator.FastGetCSObj(L, 1); __cl_gen_to_be_invoked.onFinished = translator.GetDelegate <xc.ui.ugui.SliderEx.OnFinished>(L, 2); } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } return(0); }
static int _s_set_duration(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); try { xc.ui.ugui.SliderEx __cl_gen_to_be_invoked = (xc.ui.ugui.SliderEx)translator.FastGetCSObj(L, 1); __cl_gen_to_be_invoked.duration = (float)LuaAPI.lua_tonumber(L, 2); } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } return(0); }
static int _g_get_onOneFinished(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); try { xc.ui.ugui.SliderEx __cl_gen_to_be_invoked = (xc.ui.ugui.SliderEx)translator.FastGetCSObj(L, 1); translator.Push(L, __cl_gen_to_be_invoked.onOneFinished); } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } return(1); }
static int __CreateInstance(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); try { if (LuaAPI.lua_gettop(L) == 1) { xc.ui.ugui.SliderEx __cl_gen_ret = new xc.ui.ugui.SliderEx(); translator.Push(L, __cl_gen_ret); return(1); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } return(LuaAPI.luaL_error(L, "invalid arguments to xc.ui.ugui.SliderEx constructor!")); }
static int _m_Clear(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); xc.ui.ugui.SliderEx __cl_gen_to_be_invoked = (xc.ui.ugui.SliderEx)translator.FastGetCSObj(L, 1); try { { __cl_gen_to_be_invoked.Clear( ); return(0); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }
static int _m_SetValue(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); xc.ui.ugui.SliderEx __cl_gen_to_be_invoked = (xc.ui.ugui.SliderEx)translator.FastGetCSObj(L, 1); int __gen_param_count = LuaAPI.lua_gettop(L); try { if (__gen_param_count == 3 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) { float v = (float)LuaAPI.lua_tonumber(L, 2); float time = (float)LuaAPI.lua_tonumber(L, 3); __cl_gen_to_be_invoked.SetValue(v, time); return(0); } if (__gen_param_count == 2 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) { float v = (float)LuaAPI.lua_tonumber(L, 2); __cl_gen_to_be_invoked.SetValue(v); return(0); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } return(LuaAPI.luaL_error(L, "invalid arguments to xc.ui.ugui.SliderEx.SetValue!")); }