private void OnEnable() { this.m_tabMgr = FindProFactory.CreateTabMgr(); SearchResultTab tab = this.m_tabMgr.GetTab(SearchResultTabType.ResultsInFolder); tab.Drawer.SetDetailsButton(new Action <SearchResultDrawer, List <GameObject> >(this.ClickDetailsButton)); this.m_btnShowHide = FindProFactory.CreateShowHideButton(); this.m_folderList = FindProFactory.CreateFolderList(); this.m_gameObjectList = FindProFactory.CreateGameObjectList(); this.StartListenTaskEvents(); }
public void SetResults(SearchResultTabType tabType, List <SearchResult> results) { SearchResultTab tab = this.GetTab(tabType); if (tab == null) { return; } tab.Drawer.SetResults(results, false); tab.Drawer.SelectResult(0); }
public static SearchResultTabMgr CreateTabMgr() { SearchResultTabMgr searchResultTabMgr = new SearchResultTabMgr(); SearchResultTab tab = new SearchResultTab(SearchResultTabType.ResultsInFolder, "Results In Project View"); searchResultTabMgr.AddTab(tab); tab = new SearchResultTab(SearchResultTabType.ResultsInGameObject, "Results In Hierarchy View"); searchResultTabMgr.AddTab(tab); searchResultTabMgr.Prepared(); searchResultTabMgr.SetCurTab(SearchResultTabType.ResultsInFolder); return(searchResultTabMgr); }
public void Draw(int startY) { GUILayout.BeginHorizontal(new GUILayoutOption[0]); int curTab = GUILayout.Toolbar(this.m_tabIndex, this.m_tabTitles, new GUILayoutOption[0]); GUILayout.EndHorizontal(); this.SetCurTab(curTab); SearchResultTab tab = this.GetTab(this.m_tabIndex); if (tab != null) { int startY2 = startY + 22; tab.Drawer.Draw(startY2); } }
public void AddTab(SearchResultTab tab) { this.m_tabs.Add(tab); }