static int SetSliderValue(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); Framework.LuaComponent obj = (Framework.LuaComponent)ToLua.CheckObject <Framework.LuaComponent>(L, 1); float arg0 = (float)LuaDLL.luaL_checknumber(L, 2); obj.SetSliderValue(arg0); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int SetGray(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); Framework.LuaComponent obj = (Framework.LuaComponent)ToLua.CheckObject <Framework.LuaComponent>(L, 1); bool arg0 = LuaDLL.luaL_checkboolean(L, 2); obj.SetGray(arg0); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int AddClick(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); Framework.LuaComponent obj = (Framework.LuaComponent)ToLua.CheckObject <Framework.LuaComponent>(L, 1); UnityEngine.Events.UnityAction arg0 = (UnityEngine.Events.UnityAction)ToLua.CheckDelegate <UnityEngine.Events.UnityAction>(L, 2); obj.AddClick(arg0); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int SetSprite(IntPtr L) { try { ToLua.CheckArgsCount(L, 3); Framework.LuaComponent obj = (Framework.LuaComponent)ToLua.CheckObject <Framework.LuaComponent>(L, 1); string arg0 = ToLua.CheckString(L, 2); string arg1 = ToLua.CheckString(L, 3); obj.SetSprite(arg0, arg1); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int get_ComponentName(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); Framework.LuaComponent obj = (Framework.LuaComponent)o; string ret = obj.ComponentName; LuaDLL.lua_pushstring(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index ComponentName on a nil value")); } }
static int set_ComponentName(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); Framework.LuaComponent obj = (Framework.LuaComponent)o; string arg0 = ToLua.CheckString(L, 2); obj.ComponentName = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index ComponentName on a nil value")); } }
static int SetGray(IntPtr L) { #if UNITY_EDITOR ToluaProfiler.AddCallRecord("Framework.LuaComponent.SetGray"); #endif try { ToLua.CheckArgsCount(L, 2); Framework.LuaComponent obj = (Framework.LuaComponent)ToLua.CheckObject <Framework.LuaComponent>(L, 1); bool arg0 = LuaDLL.luaL_checkboolean(L, 2); obj.SetGray(arg0); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int SetSliderValue(IntPtr L) { #if UNITY_EDITOR ToluaProfiler.AddCallRecord("Framework.LuaComponent.SetSliderValue"); #endif try { ToLua.CheckArgsCount(L, 2); Framework.LuaComponent obj = (Framework.LuaComponent)ToLua.CheckObject <Framework.LuaComponent>(L, 1); float arg0 = (float)LuaDLL.luaL_checknumber(L, 2); obj.SetSliderValue(arg0); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int AddClick(IntPtr L) { #if UNITY_EDITOR ToluaProfiler.AddCallRecord("Framework.LuaComponent.AddClick"); #endif try { ToLua.CheckArgsCount(L, 2); Framework.LuaComponent obj = (Framework.LuaComponent)ToLua.CheckObject <Framework.LuaComponent>(L, 1); UnityEngine.Events.UnityAction arg0 = (UnityEngine.Events.UnityAction)ToLua.CheckDelegate <UnityEngine.Events.UnityAction>(L, 2); obj.AddClick(arg0); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int SetSprite(IntPtr L) { #if UNITY_EDITOR ToluaProfiler.AddCallRecord("Framework.LuaComponent.SetSprite"); #endif try { ToLua.CheckArgsCount(L, 3); Framework.LuaComponent obj = (Framework.LuaComponent)ToLua.CheckObject <Framework.LuaComponent>(L, 1); string arg0 = ToLua.CheckString(L, 2); string arg1 = ToLua.CheckString(L, 3); obj.SetSprite(arg0, arg1); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int set_ComponentName(IntPtr L) { #if UNITY_EDITOR ToluaProfiler.AddCallRecord("Framework.LuaComponent.ComponentName"); #endif object o = null; try { o = ToLua.ToObject(L, 1); Framework.LuaComponent obj = (Framework.LuaComponent)o; string arg0 = ToLua.CheckString(L, 2); obj.ComponentName = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index ComponentName on a nil value")); } }