Esempio n. 1
0
 public SliderGroupContainer SetSliders(SliderHandler[] newSliders, ModifyWindow newModWindow)
 {
     sliders = newSliders;
     for (int i = 0; i < sliders.Length; i++)
     {
         sliders[i].Hide();
     }
     currentActiveModWindow = newModWindow;
     return(this);
 }
Esempio n. 2
0
        public SliderHandler InitSliderHandler(ModifyWindow modifyWindow, SliderGroupContainer parentGroup, Slider _slider, float defaultValue = 0)
        {
            this.parentWindow     = modifyWindow;
            this.parentGroup      = parentGroup;
            this._slider          = _slider;
            this.hasNegative      = false;
            _sliderInput.value    = defaultValue / 100;
            title.text            = _slider.sliderName;
            _sliderInput.minValue = 0;

            return(this);
        }
Esempio n. 3
0
        public SliderHandler InitSliderHandler(ModifyWindow modifyWindow, SliderGroupContainer parentGroup, Slider _slider, Slider _sliderNeg, float defaultValue = 0)
        {
            //Debug.Log("Creating Sliders with negative... " + _slider.sliderName);
            this.parentWindow     = modifyWindow;
            this.parentGroup      = parentGroup;
            this._slider          = _slider;
            this._sliderNeg       = _sliderNeg;
            this.hasNegative      = true;
            _sliderInput.value    = defaultValue / 100;
            title.text            = _slider.sliderName;
            _sliderInput.minValue = -1;

            return(this);
        }