Esempio 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 };
            }
        }
        public static MaintainerWindow Create()
        {
            MaintainerWindow window = GetWindow <MaintainerWindow>("Maintainer");

            window.minSize = new Vector2(640f, 480f);
            window.Focus();
            currentTab = MaintainerSettings.Instance.selectedTabIndex;

            IssuesTab.Refresh();

            return(window);
        }
Esempio n. 3
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);
            }
        }