Esempio n. 1
0
        public override void Draw()
        {
            switch (Mode)
            {
            case RenderMode.Default: {
                _default.Render(RenderManager.SpriteBatch, Area);
                break;
            }

            case RenderMode.Hover: {
                _hover.Render(RenderManager.SpriteBatch, Area);
                break;
            }

            case RenderMode.Pressed: {
                _pressed.Render(RenderManager.SpriteBatch, Area);
                break;
            }
            }

            _textRenderer.Render(
                RenderManager.SpriteBatch,
                Label,
                _textArea,
                TextHorizontal.LeftAligned,
                TextVertical.CenterAligned);

            _dropDownRender.Render(RenderManager.SpriteBatch, _dropDownIconArea);
        }
Esempio n. 2
0
        public override void Draw()
        {
            _selectedSliderArea.Width = _travel;

            _slider.Render(RenderManager.SpriteBatch, _sliderArea);
            _selectedSlider.Render(RenderManager.SpriteBatch, _selectedSliderArea);
            _gripArea.X = Area.X + Travel;
            _grip.Render(RenderManager.SpriteBatch, GripArea);
        }
Esempio n. 3
0
        public override void Draw()
        {
            switch (Mode)
            {
            case RenderMode.Default: {
                if (Checked)
                {
                    _checked.Render(RenderManager.SpriteBatch, _icon);
                }
                else
                {
                    _default.Render(RenderManager.SpriteBatch, _icon);
                }
                break;
            }

            case RenderMode.Hover: {
                if (Checked)
                {
                    _hoverChecked.Render(RenderManager.SpriteBatch, _icon);
                }
                else
                {
                    _hover.Render(RenderManager.SpriteBatch, _icon);
                }
                break;
            }

            case RenderMode.Pressed: {
                if (Checked)
                {
                    _pressedChecked.Render(RenderManager.SpriteBatch, _icon);
                }
                else
                {
                    _pressed.Render(RenderManager.SpriteBatch, _icon);
                }
                break;
            }
            }

            TextRenderer.Render(
                RenderManager.SpriteBatch,
                Label,
                Area,
                TextHorizontal.RightAligned,
                TextVertical.CenterAligned);
        }