static int ClearClick(IntPtr L) { try { ToLua.CheckArgsCount(L, 0); LuaUIComponent.ClearClick(); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int RemoveListeners(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); UnityEngine.GameObject arg0 = (UnityEngine.GameObject)ToLua.CheckObject(L, 1, typeof(UnityEngine.GameObject)); LuaUIComponent.RemoveListeners(arg0); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int AddListener(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); UnityEngine.GameObject arg0 = (UnityEngine.GameObject)ToLua.CheckObject(L, 1, typeof(UnityEngine.GameObject)); LuaFunction arg1 = ToLua.CheckLuaFunction(L, 2); LuaUIComponent.AddListener(arg0, arg1); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int Get(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); UnityEngine.GameObject arg0 = (UnityEngine.GameObject)ToLua.CheckObject(L, 1, typeof(UnityEngine.GameObject)); LuaTable arg1 = ToLua.CheckLuaTable(L, 2); LuaInterface.LuaTable o = LuaUIComponent.Get(arg0, arg1); ToLua.Push(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int __CreateInstance(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); if (LuaAPI.lua_gettop(L) == 1) { LuaUIComponent gen_ret = new LuaUIComponent(); translator.Push(L, 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 LuaUIComponent constructor!")); }
static int _m_Unregister(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); LuaUIComponent gen_to_be_invoked = (LuaUIComponent)translator.FastGetCSObj(L, 1); { XLua.LuaTable _tb = (XLua.LuaTable)translator.GetObject(L, 2, typeof(XLua.LuaTable)); gen_to_be_invoked.Unregister(_tb); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
public static new LuaTable Add(GameObject go, LuaTable tableClass) { LuaFunction luaFunc = tableClass.GetLuaFunction("New"); if (luaFunc == null) { return(null); } object rets = luaFunc.Invoke <LuaTable, object>(tableClass); if (rets == null) { return(null); } LuaUIComponent _com = go.AddComponent <LuaUIComponent>(); _com.table = (LuaTable)rets; _com.CallAwake(); return(_com.table); }