예제 #1
0
        public PartWizardWindow(string name, string version)
            : base(Scene.Editor, PartWizardWindow.DefaultDimensions, PartWizardWindow.MinimumDimensions, name, WindowPositionConfigurationName)
        {
            this.SetTitle(string.Format(CultureInfo.CurrentCulture, "{0} ({1})", name, version));

            this.tooltipLabelStyle = new GUIStyle(GUIControls.PanelStyle);
            this.tooltipLabelStyle.normal.textColor = TooltipLabelColor;
            this.tooltipLabelStyle.alignment        = TextAnchor.MiddleLeft;

            this.selectedViewTypeStyle = new GUIStyle("button");
            this.selectedViewTypeStyle.onNormal.textColor = Color.green;
            this.selectedViewTypeStyle.onHover.textColor  = Color.green;

            this.actionEditorModePartButtonStyle = new GUIStyle("button");
            this.actionEditorModePartButtonStyle.onHover.textColor = Color.blue;
            this.actionEditorModePartButtonStyle.alignment         = TextAnchor.MiddleLeft;

            this.unselectedViewTypeStyle = new GUIStyle("button");

            this.viewTypeContents = new GUIContent[] { new GUIContent(Localized.ViewTypeAll), new GUIContent(Localized.ViewTypeHidden) };

            this.symmetryEditorWindow = new SymmetryEditorWindow();

            this.highlight = new HighlightTracker2();
        }
        public PartWizardWindow(string name, string version)
            : base(Scene.Editor, PartWizardWindow.DefaultDimensions, PartWizardWindow.MinimumDimensions, name, WindowPositionConfigurationName)
        {
            this.SetTitle(string.Format(CultureInfo.CurrentCulture, "{0} ({1})", name, version));

            this.tooltipLabelStyle = new GUIStyle(GUIControls.PanelStyle);
            this.tooltipLabelStyle.normal.textColor = TooltipLabelColor;
            this.tooltipLabelStyle.alignment = TextAnchor.MiddleLeft;

            this.selectedViewTypeStyle = new GUIStyle("button");
            this.selectedViewTypeStyle.onNormal.textColor = Color.green;
            this.selectedViewTypeStyle.onHover.textColor = Color.green;

            this.actionEditorModePartButtonStyle = new GUIStyle("button");
            this.actionEditorModePartButtonStyle.onHover.textColor = Color.blue;
            this.actionEditorModePartButtonStyle.alignment = TextAnchor.MiddleLeft;

            this.unselectedViewTypeStyle = new GUIStyle("button");

            this.viewTypeContents = new GUIContent[] { new GUIContent(Localized.ViewTypeAll), new GUIContent(Localized.ViewTypeHidden) };

            this.symmetryEditorWindow = new SymmetryEditorWindow();

            this.highlight = new HighlightTracker2();
        }
예제 #3
0
        public PartWizardWindow(string name, string version)
            : base(Scene.Editor, PartWizardWindow.DefaultDimensions, PartWizardWindow.MinimumDimensions, name, WindowPositionConfigurationName)
        {
            this.SetTitle(string.Format(CultureInfo.CurrentCulture, "{0} ({1})", name, version));

            this.tooltipLabelStyle = new GUIStyle(GUIControls.PanelStyle);
            this.tooltipLabelStyle.normal.textColor = TooltipLabelColor;
            this.tooltipLabelStyle.alignment        = TextAnchor.MiddleLeft;

            this.selectedViewTypeStyle = new GUIStyle("button");
            this.selectedViewTypeStyle.onNormal.textColor = Color.green;
            this.selectedViewTypeStyle.onHover.textColor  = Color.green;

            this.actionEditorModePartButtonStyle = new GUIStyle("button");
            this.actionEditorModePartButtonStyle.onHover.textColor = Color.blue;
            this.actionEditorModePartButtonStyle.alignment         = TextAnchor.MiddleLeft;

            this.unselectedViewTypeStyle = new GUIStyle("button");

            this.viewTypeContents = new GUIContent[] { new GUIContent(Localized.ViewTypeAll), new GUIContent(Localized.ViewTypeHidden), new GUIContent(Localized.ViewTypeCategories),
                                                       new GUIContent(Localized.AvailableResources) };

            this.symmetryEditorWindow = new SymmetryEditorWindow();

            this.highlight = new HighlightTracker2();

            for (int index = 0; index < this.visibleCategories.Length; index++)
            {
                this.visibleCategories[index] = true;
            }

            labelStyle = new GUIStyle(HighLogic.Skin.label);

            labelStyle.normal.textColor = PartWizardWindow.DefaultPartNameColor;

            toggleStyle = new GUIStyle(HighLogic.Skin.toggle);

            toggleStyle.normal.textColor    = Color.green;
            toggleStyle.active.textColor    = Color.green;
            toggleStyle.focused.textColor   = Color.green;
            toggleStyle.hover.textColor     = Color.green;
            toggleStyle.onActive.textColor  = Color.green;
            toggleStyle.onFocused.textColor = Color.green;
            toggleStyle.onHover.textColor   = Color.green;
            toggleStyle.onNormal.textColor  = Color.green;
        }