Exemple #1
0
        public override void draw(bool ignoreCulling)
        {
            float num = SleekRender.drawSlider(base.frame, this.orientation, this.scroll, this.size, base.backgroundColor);

            if (num != this.scroll)
            {
                this._state = num / (1f - this.size);
                if (this.state < 0f)
                {
                    this.state = 0f;
                }
                else if (this.state > 1f)
                {
                    this.state = 1f;
                }
                if (this.onDragged != null)
                {
                    this.onDragged(this, this.state);
                }
            }
            this.scroll = num;
            base.drawChildren(ignoreCulling);
        }