Example #1
0
        void DrawPaneTabs()
        {
            if (DebugHardlightEditor)
            {
                NSEditorStyles.DrawLabel("Active Tab:" + (ActiveTab == null ? "Null Active Tab" : ActiveTab.GetType().ToString()));
            }

            //Draw horizontal row(s) of tab buttons.
            GUILayout.BeginHorizontal();
            if (HardlightPanes != null && HardlightPanes.Count > 0)
            {
                for (int i = 0; i < HardlightPanes.Count; i++)
                {
                    if (HardlightPanes[i] != null)
                    {
                        //if (HardlightPanes[i].Visible)
                        //{
                        bool Result = HardlightPanes[i].DrawTabButton(HardlightPanes[i].ShouldDisplay);

                        //Controls showing only one at a time.
                        if (Result)
                        {
                            SetActiveTab(HardlightPanes[i]);
                        }
                        //}
                    }
                    //NSEditorStyles.OperationToolbarButton(false, new GUIContent("ShortPaneTitle"));
                    //NSEditorStyles.OperationToolbarButton(false, new GUIContent("ShortPaneTitle"));
                }
            }
            GUILayout.EndHorizontal();
        }