예제 #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();
        }
예제 #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();
        }
예제 #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();
        }
예제 #4
0
 public void setA(byte _a)
 {
     alpha.Value = _a; ParticleDesign.setDirty();
 }
예제 #5
0
 public void setB(byte _b)
 {
     b.Value = _b; ParticleDesign.setDirty();
 }
예제 #6
0
 public void setG(byte _g)
 {
     g.Value = _g; ParticleDesign.setDirty();
 }
예제 #7
0
 public void setR(byte _r)
 {
     r.Value = _r; ParticleDesign.setDirty();
 }
예제 #8
0
 public void setA(byte v)
 {
     this.alpha.Value = v;
     ParticleDesign.setDirty();
 }