コード例 #1
0
        private void trackBar_ValueChanged(object sender, MouseEventArgs e)
        {
            string info = "rot";

            if (radioButton_pos_slider.Checked == true)
            {
                info = "pos";
            }
            else if (radioButton_scale_slider.Checked == true)
            {
                info = "scale";
            }

            m_GameEngine.IncSelectedObjectInfo(info,
                                               float.Parse(textBox1.Text) * ((float)trackBar_x.Value / (float)trackBar_x.Maximum),
                                               float.Parse(textBox1.Text) * ((float)trackBar_y.Value / (float)trackBar_y.Maximum),
                                               float.Parse(textBox1.Text) * ((float)trackBar_z.Value / (float)trackBar_z.Maximum));

            trackBar_x.Value = 0;
            trackBar_y.Value = 0;
            trackBar_z.Value = 0;

            GetAllSelectedInfo();
        }