MonoGdx.Scene2D.UI.Slider.Slider C# (CSharp) Méthode

Slider() public méthode

public Slider ( float min, float max, float stepSize, bool vertical, SliderStyle style ) : System
min float
max float
stepSize float
vertical bool
style SliderStyle
Résultat System
        public Slider(float min, float max, float stepSize, bool vertical, SliderStyle style)
        {
            if (min > max)
                throw new ArgumentException("min must be > max: " + min + " > " + max);
            if (stepSize < 0)
                throw new ArgumentOutOfRangeException("stepSize must be > 0: " + stepSize);

            Style = style;
            _min = min;
            _max = max;
            _stepSize = stepSize;
            _vertical = vertical;
            _value = min;

            Width = PrefWidth;
            Height = PrefHeight;
        }

Same methods

Slider::Slider ( float min, float max, float stepSize, bool vertical, Skin skin ) : System
Slider::Slider ( float min, float max, float stepSize, bool vertical, Skin skin, string styleName ) : System