Ejemplo n.º 1
0
        private void CreateTabs()
        {
            if (issuesTab == null)
            {
                issuesTab = new IssuesTab(this);
            }

            if (cleanerTab == null)
            {
                cleanerTab = new CleanerTab(this);
            }

            if (referencesTab == null)
            {
                referencesTab = new ReferencesTab(this);
            }

            if (aboutTab == null)
            {
                aboutTab = new AboutTab(this);
            }

            if (tabsCaptions == null)
            {
                tabsCaptions = new[] { issuesTab.Caption, cleanerTab.Caption, referencesTab.Caption, aboutTab.Caption };
            }
        }
Ejemplo n.º 2
0
        private void CreateTabs()
        {
            if (issuesTab == null)
            {
                issuesTab = new IssuesTab();
            }

            if (cleanerTab == null)
            {
                cleanerTab = new CleanerTab();
            }

            if (aboutTab == null)
            {
                aboutTab = new AboutTab();
            }
        }
        private void OnGUI()
        {
            UIHelpers.SetupStyles();

            EditorGUI.BeginChangeCheck();
            currentTab = GUILayout.Toolbar(currentTab, tabs, GUILayout.ExpandWidth(false));
            if (EditorGUI.EndChangeCheck())
            {
                MaintainerSettings.Instance.selectedTabIndex = currentTab;
                EditorUtility.SetDirty(MaintainerSettings.Instance);
            }

            if (currentTab == 0)
            {
                IssuesTab.Draw(this);
            }
            else if (currentTab == 1)
            {
                AboutTab.Draw(this);
            }
        }