static public int Dispose(IntPtr l) { try { FairyGUI.Window self = (FairyGUI.Window)checkSelf(l); self.Dispose(); pushValue(l, true); return(1); } catch (Exception e) { return(error(l, e)); } }
/// <summary> /// Remove a window from stage immediatelly. window.Hide/window.OnHide will never be called. /// 立刻关闭一个窗口。不会调用Window.Hide方法,Window.OnHide也不会被调用。 /// </summary> /// <param name="win"></param> /// <param name="dispose">True to dispose the window.</param> public void HideWindowImmediately(Window win, bool dispose) { if (win.parent == this) { RemoveChild(win, dispose); } else if (dispose) { win.Dispose(); } AdjustModalLayer(); }
static int Dispose(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); FairyGUI.Window obj = (FairyGUI.Window)ToLua.CheckObject(L, 1, typeof(FairyGUI.Window)); obj.Dispose(); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
/// <summary> /// Remove a window from stage immediatelly. window.Hide/window.OnHide will never be called. /// 立刻关闭一个窗口。不会调用Window.Hide方法,Window.OnHide也不会被调用。 /// </summary> /// <param name="win"></param> /// <param name="dispose">True to dispose the window.</param> public void HideWindowImmediately(Window win, bool dispose) { if (win.parent == this) RemoveChild(win, dispose); else if (dispose) win.Dispose(); AdjustModalLayer(); }