コード例 #1
0
        private void processComponents(ManeuverStyle style)
        {
            if (style == null)
            {
                return;
            }

            switch (style.ElementType)
            {
            case ManeuverStyle.ElementTypes.Window:
                style.setImage(WindowBackground, UIMaterial, WindowColor);
                break;

            case ManeuverStyle.ElementTypes.Box:
                style.setImage(TitleBackground, UIMaterial, TitleColor);
                break;

            case ManeuverStyle.ElementTypes.Button:
                style.setButton(ButtonNormal, ButtonHighlight, ButtonActive, ButtonInactive);
                break;

            case ManeuverStyle.ElementTypes.Toggle:
                style.setToggle(ToggleNormal, ToggleCheckmark);
                break;

            default:
                break;
            }
        }
コード例 #2
0
        private void processComponents(ManeuverStyle style)
        {
            if (style == null)
            {
                return;
            }

            switch (style.ElementType)
            {
            case ManeuverStyle.ElementTypes.Window:
                style.setImage(_WindowBackground, UIMaterial, _WindowColor);
                break;

            case ManeuverStyle.ElementTypes.Box:
                style.setImage(_TitleBackground, UIMaterial, _TitleColor);
                break;

            case ManeuverStyle.ElementTypes.Button:
                style.setButton(_ButtonNormal, _ButtonHighlight, _ButtonActive, _ButtonInactive);
                break;

            case ManeuverStyle.ElementTypes.Toggle:
                style.setToggle(_ToggleNormal, _ToggleCheckmark);
                break;

            case ManeuverStyle.ElementTypes.TabBackground:
                style.setImage(_TabPanelBackground);
                break;

            case ManeuverStyle.ElementTypes.TabButtonBackground:
                style.setImage(_TabButtonBackground);
                break;

            case ManeuverStyle.ElementTypes.TabTextBackground:
                style.setImage(_TabTextBackground);
                break;

            case ManeuverStyle.ElementTypes.ResetButton:
                style.setButton(_TabOrbitButtonNormal, _TabOrbitButtonHighlight, _TabOrbitButtonActive, _TabOrbitButtonInactive, Image.Type.Simple);
                break;

            case ManeuverStyle.ElementTypes.ScrollBar:
                UISkinDef skin = UISkinManager.defaultSkin;

                style.setScrollbar(skin.verticalScrollbar.normal.background, skin.verticalScrollbarThumb.normal.background);
                break;

            default:
                break;
            }
        }