static int CreateItem(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); if (count == 3) { LuaFramework.PanelManager obj = (LuaFramework.PanelManager)ToLua.CheckObject <LuaFramework.PanelManager>(L, 1); string arg0 = ToLua.CheckString(L, 2); string arg1 = ToLua.CheckString(L, 3); obj.CreateItem(arg0, arg1); return(0); } else if (count == 4) { LuaFramework.PanelManager obj = (LuaFramework.PanelManager)ToLua.CheckObject <LuaFramework.PanelManager>(L, 1); string arg0 = ToLua.CheckString(L, 2); string arg1 = ToLua.CheckString(L, 3); LuaFunction arg2 = ToLua.CheckLuaFunction(L, 4); obj.CreateItem(arg0, arg1, arg2); return(0); } else { return(LuaDLL.luaL_throw(L, "invalid arguments to method: LuaFramework.PanelManager.CreateItem")); } } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int CreatePanel(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); if (count == 4 && TypeChecker.CheckTypes <string, string>(L, 3)) { LuaFramework.PanelManager obj = (LuaFramework.PanelManager)ToLua.CheckObject <LuaFramework.PanelManager>(L, 1); string arg0 = ToLua.CheckString(L, 2); string arg1 = ToLua.ToString(L, 3); string arg2 = ToLua.ToString(L, 4); obj.CreatePanel(arg0, arg1, arg2); return(0); } else if (count == 4 && TypeChecker.CheckTypes <string[], string>(L, 3)) { LuaFramework.PanelManager obj = (LuaFramework.PanelManager)ToLua.CheckObject <LuaFramework.PanelManager>(L, 1); string arg0 = ToLua.CheckString(L, 2); string[] arg1 = ToLua.ToStringArray(L, 3); string arg2 = ToLua.ToString(L, 4); obj.CreatePanel(arg0, arg1, arg2); return(0); } else if (count == 5 && TypeChecker.CheckTypes <string[], string, LuaInterface.LuaFunction>(L, 3)) { LuaFramework.PanelManager obj = (LuaFramework.PanelManager)ToLua.CheckObject <LuaFramework.PanelManager>(L, 1); string arg0 = ToLua.CheckString(L, 2); string[] arg1 = ToLua.ToStringArray(L, 3); string arg2 = ToLua.ToString(L, 4); LuaFunction arg3 = ToLua.ToLuaFunction(L, 5); obj.CreatePanel(arg0, arg1, arg2, arg3); return(0); } else if (count == 5 && TypeChecker.CheckTypes <string, string, LuaInterface.LuaFunction>(L, 3)) { LuaFramework.PanelManager obj = (LuaFramework.PanelManager)ToLua.CheckObject <LuaFramework.PanelManager>(L, 1); string arg0 = ToLua.CheckString(L, 2); string arg1 = ToLua.ToString(L, 3); string arg2 = ToLua.ToString(L, 4); LuaFunction arg3 = ToLua.ToLuaFunction(L, 5); obj.CreatePanel(arg0, arg1, arg2, arg3); return(0); } else { return(LuaDLL.luaL_throw(L, "invalid arguments to method: LuaFramework.PanelManager.CreatePanel")); } } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int DestroyAllPanel(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); LuaFramework.PanelManager obj = (LuaFramework.PanelManager)ToLua.CheckObject <LuaFramework.PanelManager>(L, 1); obj.DestroyAllPanel(); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int GetPanelManager(IntPtr L) { try { ToLua.CheckArgsCount(L, 0); LuaFramework.PanelManager o = LuaFramework.LuaHelper.GetPanelManager(); ToLua.Push(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int ClearPrefab(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); LuaFramework.PanelManager obj = (LuaFramework.PanelManager)ToLua.CheckObject <LuaFramework.PanelManager>(L, 1); UnityEngine.GameObject arg0 = (UnityEngine.GameObject)ToLua.CheckObject(L, 2, typeof(UnityEngine.GameObject)); obj.ClearPrefab(arg0); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int ClosePanel(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); LuaFramework.PanelManager obj = (LuaFramework.PanelManager)ToLua.CheckObject(L, 1, typeof(LuaFramework.PanelManager)); string arg0 = ToLua.CheckString(L, 2); obj.ClosePanel(arg0); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int showTransformPosition(IntPtr L) { try { ToLua.CheckArgsCount(L, 3); LuaFramework.PanelManager obj = (LuaFramework.PanelManager)ToLua.CheckObject(L, 1, typeof(LuaFramework.PanelManager)); string arg0 = ToLua.CheckString(L, 2); UnityEngine.Transform arg1 = (UnityEngine.Transform)ToLua.CheckUnityObject(L, 3, typeof(UnityEngine.Transform)); obj.showTransformPosition(arg0, arg1); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int GetCanvasParent(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); LuaFramework.PanelManager obj = (LuaFramework.PanelManager)ToLua.CheckObject <LuaFramework.PanelManager>(L, 1); string arg0 = ToLua.CheckString(L, 2); UnityEngine.Transform o = obj.GetCanvasParent(arg0); ToLua.Push(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int isContainsPanel(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); LuaFramework.PanelManager obj = (LuaFramework.PanelManager)ToLua.CheckObject <LuaFramework.PanelManager>(L, 1); string arg0 = ToLua.CheckString(L, 2); bool o = obj.isContainsPanel(arg0); LuaDLL.lua_pushboolean(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int GetPanelObj(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); LuaFramework.PanelManager obj = (LuaFramework.PanelManager)ToLua.CheckObject <LuaFramework.PanelManager>(L, 1); string arg0 = ToLua.CheckString(L, 2); UnityEngine.GameObject o = obj.GetPanelObj(arg0); ToLua.PushSealed(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int CreateLayer(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); LuaFramework.PanelManager obj = (LuaFramework.PanelManager)ToLua.CheckObject(L, 1, typeof(LuaFramework.PanelManager)); int arg0 = (int)LuaDLL.luaL_checknumber(L, 2); UnityEngine.Transform o = obj.CreateLayer(arg0); ToLua.Push(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int CreatePanel(IntPtr L) { try { ToLua.CheckArgsCount(L, 3); LuaFramework.PanelManager obj = (LuaFramework.PanelManager)ToLua.CheckObject <LuaFramework.PanelManager>(L, 1); string arg0 = ToLua.CheckString(L, 2); LuaFunction arg1 = ToLua.CheckLuaFunction(L, 3); obj.CreatePanel(arg0, arg1); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int CreatePanelSync(IntPtr L) { try { ToLua.CheckArgsCount(L, 3); LuaFramework.PanelManager obj = (LuaFramework.PanelManager)ToLua.CheckObject(L, 1, typeof(LuaFramework.PanelManager)); int arg0 = (int)LuaDLL.luaL_checknumber(L, 2); string arg1 = ToLua.CheckString(L, 3); UnityEngine.GameObject o = obj.CreatePanelSync(arg0, arg1); ToLua.Push(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int get_PanelManager(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); LuaFramework.GameManager obj = (LuaFramework.GameManager)o; LuaFramework.PanelManager ret = obj.PanelManager; ToLua.Push(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index PanelManager on a nil value")); } }
static int CreatePanel(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); if (count == 3 && TypeChecker.CheckTypes(L, 1, typeof(LuaFramework.PanelManager), typeof(string), typeof(LuaInterface.LuaFunction))) { LuaFramework.PanelManager obj = (LuaFramework.PanelManager)ToLua.ToObject(L, 1); string arg0 = ToLua.ToString(L, 2); LuaFunction arg1 = ToLua.ToLuaFunction(L, 3); obj.CreatePanel(arg0, arg1); return(0); } else if (count == 4 && TypeChecker.CheckTypes(L, 1, typeof(LuaFramework.PanelManager), typeof(string), typeof(UnityEngine.Transform), typeof(System.Action <UnityEngine.GameObject>))) { LuaFramework.PanelManager obj = (LuaFramework.PanelManager)ToLua.ToObject(L, 1); string arg0 = ToLua.ToString(L, 2); UnityEngine.Transform arg1 = (UnityEngine.Transform)ToLua.ToObject(L, 3); System.Action <UnityEngine.GameObject> arg2 = null; LuaTypes funcType4 = LuaDLL.lua_type(L, 4); if (funcType4 != LuaTypes.LUA_TFUNCTION) { arg2 = (System.Action <UnityEngine.GameObject>)ToLua.ToObject(L, 4); } else { LuaFunction func = ToLua.ToLuaFunction(L, 4); arg2 = DelegateFactory.CreateDelegate(typeof(System.Action <UnityEngine.GameObject>), func) as System.Action <UnityEngine.GameObject>; } obj.CreatePanel(arg0, arg1, arg2); return(0); } else { return(LuaDLL.luaL_throw(L, "invalid arguments to method: LuaFramework.PanelManager.CreatePanel")); } } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int renderLayerAll(IntPtr L) { try { ToLua.CheckArgsCount(L, 5); LuaFramework.PanelManager obj = (LuaFramework.PanelManager)ToLua.CheckObject <LuaFramework.PanelManager>(L, 1); string arg0 = ToLua.CheckString(L, 2); float arg1 = (float)LuaDLL.luaL_checknumber(L, 3); string arg2 = ToLua.CheckString(L, 4); int arg3 = (int)LuaDLL.luaL_checknumber(L, 5); obj.renderLayerAll(arg0, arg1, arg2, arg3); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
protected void OnLevelWasLoaded(int level) { LuaManager.OnLevelLoaded(level); PanelManager.OnLevelLoaded(level); }
void OnSceneLoaded(Scene scene, LoadSceneMode mode) { LuaManager.OnLevelLoaded(scene.buildIndex); PanelManager.OnLevelLoaded(scene.buildIndex); }