OnOpen() public method

Callback when the popup window is opened.

public OnOpen ( ) : void
return void
コード例 #1
0
 void Init(Rect activatorRect, PopupWindowContent windowContent, PopupLocationHelper.PopupLocation[] locationPriorityOrder, ShowMode showMode)
 {
     hideFlags       = HideFlags.DontSave;
     wantsMouseMove  = true;
     m_WindowContent = windowContent;
     m_WindowContent.editorWindow = this;
     m_WindowContent.OnOpen();
     m_ActivatorRect = GUIUtility.GUIToScreenRect(activatorRect);
     ShowAsDropDown(m_ActivatorRect, m_WindowContent.GetWindowSize(), locationPriorityOrder, showMode);
 }
コード例 #2
0
 internal void Init(Rect activatorRect, PopupWindowContent windowContent, PopupLocation[] locationPriorityOrder, ShowMode showMode, bool giveFocus)
 {
     hideFlags       = HideFlags.DontSave;
     wantsMouseMove  = true;
     m_WindowContent = windowContent;
     m_WindowContent.editorWindow = this;
     m_WindowContent.OnOpen();
     m_ActivatorRect         = GUIUtility.GUIToScreenRect(activatorRect);
     m_LastWantedSize        = Vector2.zero;
     m_LocationPriorityOrder = locationPriorityOrder;
     ShowAsDropDown(m_ActivatorRect, m_WindowContent.GetWindowSize(), locationPriorityOrder, showMode, giveFocus);
 }