Ejemplo n.º 1
0
        void GetAllSelectedInfo()
        {
            TextBox_Pos_X.Enabled = false;
            TextBox_Pos_Y.Enabled = false;
            TextBox_Pos_Z.Enabled = false;

            TextBox_Rot_X.Enabled = false;
            TextBox_Rot_Y.Enabled = false;
            TextBox_Rot_Z.Enabled = false;

            TextBox_Scale_X.Enabled = false;
            TextBox_Scale_Y.Enabled = false;
            TextBox_Scale_Z.Enabled = false;

            float x = 0;
            float y = 0;
            float z = 0;

            m_GameEngine.GetSelectedInfo("pos", out x, out y, out z);
            TextBox_Pos_X.Text = x.ToString();
            TextBox_Pos_Y.Text = y.ToString();
            TextBox_Pos_Z.Text = z.ToString();

            m_GameEngine.GetSelectedInfo("rot", out x, out y, out z);
            TextBox_Rot_X.Text = x.ToString();
            TextBox_Rot_Y.Text = y.ToString();
            TextBox_Rot_Z.Text = z.ToString();

            m_GameEngine.GetSelectedInfo("scale", out x, out y, out z);
            TextBox_Scale_X.Text = x.ToString();
            TextBox_Scale_Y.Text = y.ToString();
            TextBox_Scale_Z.Text = z.ToString();

            TextBox_Pos_X.Enabled = true;
            TextBox_Pos_Y.Enabled = true;
            TextBox_Pos_Z.Enabled = true;

            TextBox_Rot_X.Enabled = true;
            TextBox_Rot_Y.Enabled = true;
            TextBox_Rot_Z.Enabled = true;

            TextBox_Scale_X.Enabled = true;
            TextBox_Scale_Y.Enabled = true;
            TextBox_Scale_Z.Enabled = true;
        }