public void setSelect() { if (state != Engine.Interface.TransformManagerState.select) { textBox1.Enabled = textBox2.Enabled = textBox3.Enabled = textBox4.Enabled = false; textBox1.Text = ""; textBox2.Text = ""; textBox3.Text = ""; textBox4.Text = ""; state = Engine.Interface.TransformManagerState.select; xnaRadioButton1.Enabled = xnaRadioButton2.Enabled = xnaRadioButton3.Enabled = false; } }
public void setMove(string[] args) { if (state != Engine.Interface.TransformManagerState.move) { state = Engine.Interface.TransformManagerState.move; textBox1.Enabled = textBox2.Enabled = textBox3.Enabled = true; xnaRadioButton1.Enabled = xnaRadioButton2.Enabled = xnaRadioButton3.Enabled = false; textBox4.Enabled = false; textBox4.Text = ""; } if (args != null) { textBox1.Text = args[0]; textBox2.Text = args[1]; textBox3.Text = args[2]; } else textBox1.Text = textBox2.Text = textBox3.Text = textBox4.Text = ""; }
public void setRotationLocal(string[] args) { if (state != Engine.Interface.TransformManagerState.rotatelocal) { state = Engine.Interface.TransformManagerState.rotatelocal; textBox1.Enabled = textBox2.Enabled = textBox3.Enabled = textBox4.Enabled = true; xnaRadioButton1.Enabled = xnaRadioButton2.Enabled = xnaRadioButton3.Enabled = true; } if (args != null) { textBox1.Text = args[0]; textBox2.Text = args[1]; textBox3.Text = args[2]; textBox4.Text = args[3]; } else textBox1.Text = textBox2.Text = textBox3.Text = textBox4.Text = ""; }