public Assets.Script.Frame.PanelBase Call(Assets.Script.Frame.PanelBase param0) { func.BeginPCall(); func.Push(param0); func.PCall(); Assets.Script.Frame.PanelBase ret = (Assets.Script.Frame.PanelBase)func.CheckObject(typeof(Assets.Script.Frame.PanelBase)); func.EndPCall(); return(ret); }
static int Init(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); Assets.Script.Frame.PanelBase obj = (Assets.Script.Frame.PanelBase)ToLua.CheckObject(L, 1, typeof(Assets.Script.Frame.PanelBase)); obj.Init(); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int GetSubPanel(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); Assets.Script.Frame.PanelBase obj = (Assets.Script.Frame.PanelBase)ToLua.CheckObject(L, 1, typeof(Assets.Script.Frame.PanelBase)); string arg0 = ToLua.CheckString(L, 2); Assets.Script.Frame.PanelBase o = obj.GetSubPanel(arg0); ToLua.Push(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int Get(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); Assets.Script.Frame.PanelManager obj = (Assets.Script.Frame.PanelManager)ToLua.CheckObject(L, 1, typeof(Assets.Script.Frame.PanelManager)); int arg0 = (int)LuaDLL.luaL_checknumber(L, 2); Assets.Script.Frame.PanelBase o = obj.Get(arg0); ToLua.Push(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int RegistPrefab(IntPtr L) { try { ToLua.CheckArgsCount(L, 3); Assets.Script.Frame.PanelManager obj = (Assets.Script.Frame.PanelManager)ToLua.CheckObject(L, 1, typeof(Assets.Script.Frame.PanelManager)); int arg0 = (int)LuaDLL.luaL_checknumber(L, 2); Assets.Script.Frame.PanelBase arg1 = (Assets.Script.Frame.PanelBase)ToLua.CheckUnityObject(L, 3, typeof(Assets.Script.Frame.PanelBase)); obj.RegistPrefab(arg0, arg1); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int get_subPanels(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); Assets.Script.Frame.PanelBase obj = (Assets.Script.Frame.PanelBase)o; Assets.Script.Frame.PanelBase[] ret = obj.subPanels; ToLua.Push(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index subPanels on a nil value" : e.Message)); } }
static int RegistPanelBase(IntPtr L) { try { ToLua.CheckArgsCount(L, 3); Assets.Script.Frame.UiControlContainer obj = (Assets.Script.Frame.UiControlContainer)ToLua.CheckObject(L, 1, typeof(Assets.Script.Frame.UiControlContainer)); string arg0 = ToLua.CheckString(L, 2); Assets.Script.Frame.PanelBase arg1 = (Assets.Script.Frame.PanelBase)ToLua.CheckUnityObject(L, 3, typeof(Assets.Script.Frame.PanelBase)); bool o = obj.RegistPanelBase(arg0, arg1); LuaDLL.lua_pushboolean(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
public PanelBase GetPanel(string panelName) { PanelBase panel = Resources.Load <PanelBase>("Panels/" + panelName); return(panel); }
public void Regist(int uiid, PanelBase ui) { //types.Add(typeof(T), uiid); uis.Add(uiid, ui); }
/// <summary> /// 将Panel放到最前面 /// </summary> /// <param name="ui">待调整的Panel</param> void ToTop(PanelBase ui) { ui.transform.SetAsLastSibling(); }
// PanelBase public bool RegistPanelBase(string name, PanelBase panelBase) { return(RegistT(panelbases, name, panelBase)); }