protected void winPopup(int id) { Rect baseRect = GetPopupRect(); // if (UnscreenClose()) // return; // -------------------------------------------------------------------------------- int nProjectRows = m_nProjectCount / m_nProjectColumn + (0 < (m_nProjectCount % m_nProjectColumn) ? 1 : 0); int nGroupRows = m_nGroupCount / m_nGroupColumn + (0 < (m_nGroupCount % m_nGroupColumn) ? 1 : 0); int nTopHeight = (nProjectRows + (m_bOptionRecursively ? 0 : nGroupRows) + 2) * m_nMenuButtonHeight + m_nMenuButtonHeight / 2; Rect topRect = FXMakerLayout.GetChildTopRect(baseRect, 0, nTopHeight); Rect scrollRect = FXMakerLayout.GetChildVerticalRect(baseRect, nTopHeight, 1, 0, 1); Rect bottomRect = FXMakerLayout.GetChildBottomRect(baseRect, m_nBottomHeight); // left Align ---------------------------------------------------------------- if (m_bShowLeftPopup) { m_bShowLeftPopup = GUI.Toggle(new Rect(baseRect.width - 50, 1, baseRect.width, 16), m_bShowLeftPopup, "Left"); if (GUI.changed) { EditorPrefs.SetBool(m_PrefsName + ".m_bShowLeftPopup", m_bShowLeftPopup); } } else { m_bShowLeftPopup = !GUI.Toggle(new Rect(3, 1, baseRect.width, 16), !m_bShowLeftPopup, "Right"); if (GUI.changed) { EditorPrefs.SetBool(m_PrefsName + ".m_bShowLeftPopup", m_bShowLeftPopup); } } GUI.changed = false; bottomRect.y -= 3; scrollRect.height -= (m_nBottomHeight + 3); DrawFolderList(topRect); DrawObjectList(scrollRect); DrawBottomRect(bottomRect); FXMakerMain.inst.SaveTooltip(); }