UnityEditor.ContainerWindow.IsPopup C# (CSharp) Method

IsPopup() static private method

static private IsPopup ( ShowMode mode ) : bool
mode ShowMode
return bool
        internal static bool IsPopup(ShowMode mode)
        {
            return ((mode == ShowMode.PopupMenu) || (ShowMode.PopupMenuWithKeyboardFocus == mode));
        }

Usage Example

Exemplo n.º 1
0
 public void Show(ShowMode showMode, bool loadPosition, bool displayImmediately)
 {
     if (showMode == ShowMode.AuxWindow)
     {
         showMode = ShowMode.Utility;
     }
     if (showMode == ShowMode.Utility || ContainerWindow.IsPopup(showMode))
     {
         this.m_DontSaveToLayout = true;
     }
     this.m_ShowMode = (int)showMode;
     if (!this.isPopup)
     {
         this.Load(loadPosition);
     }
     this.Internal_Show(this.m_PixelRect, this.m_ShowMode, this.m_MinSize, this.m_MaxSize);
     if (this.m_RootView)
     {
         this.m_RootView.SetWindowRecurse(this);
     }
     this.Internal_SetTitle(this.m_Title);
     this.SetBackgroundColor(ContainerWindow.skinBackgroundColor);
     this.Internal_BringLiveAfterCreation(displayImmediately, true);
     if (!(this == null))
     {
         this.position          = this.FitWindowRectToScreen(this.m_PixelRect, true, false);
         this.rootView.position = new Rect(0f, 0f, this.m_PixelRect.width, this.m_PixelRect.height);
         this.rootView.Reflow();
         this.Save();
     }
 }
All Usage Examples Of UnityEditor.ContainerWindow::IsPopup