FairyGUI.GRoot.CloseAllExceptModals C# (CSharp) Method

CloseAllExceptModals() public method

Close all windows except modal windows.
public CloseAllExceptModals ( ) : void
return void
        public void CloseAllExceptModals()
        {
            GObject[] arr = _children.ToArray();
            foreach (GObject g in arr)
            {
                if ((g is Window) && !(g as Window).modal)
                    HideWindowImmediately(g as Window);
            }
        }

Usage Example

 static public int CloseAllExceptModals(IntPtr l)
 {
     try {
         FairyGUI.GRoot self = (FairyGUI.GRoot)checkSelf(l);
         self.CloseAllExceptModals();
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
All Usage Examples Of FairyGUI.GRoot::CloseAllExceptModals