ShouldShowWindow() private static method

private static ShouldShowWindow ( Rect activatorRect ) : bool
activatorRect UnityEngine.Rect
return bool
Esempio n. 1
0
 internal static void Show(Rect activatorRect, PopupWindowContent windowContent, PopupLocationHelper.PopupLocation[] locationPriorityOrder, ShowMode showMode)
 {
     if (PopupWindow.ShouldShowWindow(activatorRect))
     {
         PopupWindow popupWindow = ScriptableObject.CreateInstance <PopupWindow>();
         if (popupWindow != null)
         {
             popupWindow.Init(activatorRect, windowContent, locationPriorityOrder, showMode);
         }
         GUIUtility.ExitGUI();
     }
 }
Esempio n. 2
0
        internal static void Show(Rect activatorRect, PopupWindowContent windowContent, PopupLocationHelper.PopupLocation[] locationPriorityOrder)
        {
            if (!PopupWindow.ShouldShowWindow(activatorRect))
            {
                return;
            }
            PopupWindow instance = ScriptableObject.CreateInstance <PopupWindow>();

            if ((Object)instance != (Object)null)
            {
                instance.Init(activatorRect, windowContent, locationPriorityOrder);
            }
            GUIUtility.ExitGUI();
        }