static int HideAll(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); FairyUI obj = (FairyUI)ToLua.CheckObject <FairyUI>(L, 1); obj.HideAll(); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
//之关闭fixed和popup层 private void HideOtherPages(FairyUI currXPage) { List <FairyUI> xpages = GetAllUIs(); int count = xpages.Count; for (int i = 0; i < count; i++) { FairyUI curr = xpages[i]; if (curr.Equals(currXPage)) { continue; } if (curr.fairyUIState == FairyUIState.OPEN && (curr.fairyUIType != FairyUIType.Fixed || curr.fairyUIType != FairyUIType.PopUp)) { curr.HideAll(); } } }