Beispiel #1
0
        private void numericUpDown_ValueChanged(object sender, EventArgs e)
        {
            this.cur = (float)this.numericUpDown.Value;

            this.trackBar.Value = (int)(this.trackBar.Maximum * (this.cur - this._data.min) / (this._data.max - this._data.min));
            ParticleDesign.setDirty();
        }
Beispiel #2
0
        public void setColor(byte R, byte G, byte B)
        {
            this.R = R;
            this.G = G;
            this.B = B;

            this.btnShow.BackColor = Color.FromArgb(R, G, B);
            this.btnColor.Text     = "{r=" + R + ",g=" + G + ",b=" + B + "}";
            ParticleDesign.setDirty();
        }
Beispiel #3
0
        private void trackBar_Scroll(object sender, EventArgs e)
        {
            float percent = (float)this.trackBar.Value / this.trackBar.Maximum;

            this.numericUpDown.Value = (decimal)(percent * (_data.max - _data.min) + _data.min);
            if (_data.isInt)
            {
                this.numericUpDown.Value = Math.Floor(this.numericUpDown.Value);
            }

            this.cur = (float)this.numericUpDown.Value;
            ParticleDesign.setDirty();
        }
 public void setA(byte _a)
 {
     alpha.Value = _a; ParticleDesign.setDirty();
 }
 public void setB(byte _b)
 {
     b.Value = _b; ParticleDesign.setDirty();
 }
 public void setG(byte _g)
 {
     g.Value = _g; ParticleDesign.setDirty();
 }
 public void setR(byte _r)
 {
     r.Value = _r; ParticleDesign.setDirty();
 }
Beispiel #8
0
 public void setA(byte v)
 {
     this.alpha.Value = v;
     ParticleDesign.setDirty();
 }