Esempio n. 1
0
 internal static void Show(Rect activatorRect, PopupWindowContent windowContent,
     TooltipLocation[] locationPriorityOrder)
 {
     if (ShouldShowWindow(activatorRect))
     {
         var isInstance = _sEditorWindowWithoutFocus == null;
         if (isInstance)
             _sEditorWindowWithoutFocus = CreateInstance<TooltipServiceWindow>();
         _sEditorWindowWithoutFocus.Init(activatorRect, windowContent, locationPriorityOrder);
     }
 }
Esempio n. 2
0
 protected void OnEnable()
 {
     _sEditorWindowWithoutFocus = this;
 }
Esempio n. 3
0
 protected void OnDisable()
 {
     s_LastClosedTime = EditorApplication.timeSinceStartup;
     if (m_WindowContent != null)
     {
         m_WindowContent.OnClose();
     }
     _sEditorWindowWithoutFocus = null;
 }