Callback when the popup window is opened.
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); }
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); }