Example #1
0
 private void NumericBrag_ValueChanged(object sender, EventArgs e)
 {
     if (!ProgramIsChangingStuff)
     {
         BragPositions[ComboBoxTeam.SelectedIndex].PositionX = (float)NumericBragX.Value;
         BragPositions[ComboBoxTeam.SelectedIndex].PositionY = (float)NumericBragY.Value;
         BragPositions[ComboBoxTeam.SelectedIndex].PositionZ = (float)NumericBragZ.Value;
         BragPositions[ComboBoxTeam.SelectedIndex].Pitch     = ReadWriteCommon.DegreesToBAMS((float)NumericBragRot.Value);
         BragPositions[ComboBoxTeam.SelectedIndex].CreateTransformMatrix();
     }
 }
Example #2
0
 private void NumericEnd_ValueChanged(object sender, EventArgs e)
 {
     if (ProgramIsChangingStuff)
     {
         return;
     }
     if (ComboBoxTeam.SelectedItem == null)
     {
         return
         ;
     }
     EndPositions[ComboBoxTeam.SelectedIndex].PositionX = (float)NumericEndX.Value;
     EndPositions[ComboBoxTeam.SelectedIndex].PositionY = (float)NumericEndY.Value;
     EndPositions[ComboBoxTeam.SelectedIndex].PositionZ = (float)NumericEndZ.Value;
     EndPositions[ComboBoxTeam.SelectedIndex].Pitch     = ReadWriteCommon.DegreesToBAMS((float)NumericEndRot.Value);
     EndPositions[ComboBoxTeam.SelectedIndex].CreateTransformMatrix();
 }
Example #3
0
        private void numericUpDown_ValueChanged(object sender, EventArgs e)
        {
            if (!ProgramIsChangingStuff & CurrentlySelectedCamera != -1)
            {
                CameraHeroes current = ListBoxCameras.Items[CurrentlySelectedCamera] as CameraHeroes;

                current.CameraType      = (int)numericUpDownCamType.Value;
                current.CameraSpeed     = (int)numericUpDownCamSpeed.Value;
                current.Integer3        = (int)numericUpDown3.Value;
                current.ActivationType  = (int)numericUpDownActType.Value;
                current.TriggerShape    = (int)numericUpDownTrigShape.Value;
                current.TriggerPosition = new Vector3((float)numericUpDownColPosX.Value, (float)numericUpDownColPosY.Value, (float)numericUpDownColPosZ.Value);
                current.TriggerRotX     = ReadWriteCommon.DegreesToBAMS((float)numericUpDownColRotX.Value);
                current.TriggerRotY     = ReadWriteCommon.DegreesToBAMS((float)numericUpDownColRotY.Value);
                current.TriggerRotZ     = ReadWriteCommon.DegreesToBAMS((float)numericUpDownColRotZ.Value);
                current.TriggerScale    = new Vector3((float)numericUpDownColSclX.Value, (float)numericUpDownColSclY.Value, (float)numericUpDownColSclZ.Value);
                current.CamPos          = new Vector3((float)numericUpDownCamPosX.Value, (float)numericUpDownCamPosY.Value, (float)numericUpDownCamPosZ.Value);
                current.CamRotX         = ReadWriteCommon.DegreesToBAMS((float)numericUpDownCamRotX.Value);
                current.CamRotY         = ReadWriteCommon.DegreesToBAMS((float)numericUpDownCamRotY.Value);
                current.CamRotZ         = ReadWriteCommon.DegreesToBAMS((float)numericUpDownCamRotZ.Value);
                current.PointA          = new Vector3((float)numericUpDown21.Value, (float)numericUpDown22.Value, (float)numericUpDown23.Value);
                current.PointB          = new Vector3((float)numericUpDown24.Value, (float)numericUpDown25.Value, (float)numericUpDown26.Value);
                current.PointC          = new Vector3((float)numericUpDown27.Value, (float)numericUpDown28.Value, (float)numericUpDown29.Value);
                current.Integer30       = (int)numericUpDown30.Value;
                current.Integer31       = (int)numericUpDown31.Value;
                current.FloatX32        = (float)numericUpDown32.Value;
                current.FloatY33        = (float)numericUpDown33.Value;
                current.FloatX34        = (float)numericUpDown34.Value;
                current.FloatY35        = (float)numericUpDown35.Value;
                current.Integer36       = (int)numericUpDown36.Value;
                current.Integer37       = (int)numericUpDown37.Value;
                current.Integer38       = (int)numericUpDown38.Value;
                current.Integer39       = (int)numericUpDown39.Value;
                current.CreateTransformMatrix();

                ListBoxCameras.Items[CurrentlySelectedCamera] = current;
            }
        }
Example #4
0
 private void numericUpDown_ValueChanged(object sender, EventArgs e)
 {
     if (!ProgramIsChangingStuff && listBoxPoints.SelectedIndex != -1)
     {
         splineEditorFunctions.GetSelected().Points[listBoxPoints.SelectedIndex].Pitch = (ushort)ReadWriteCommon.DegreesToBAMS((float)numericUpDownPitch.Value);
         splineEditorFunctions.GetSelected().Points[listBoxPoints.SelectedIndex].Roll  = (ushort)ReadWriteCommon.DegreesToBAMS((float)numericUpDownRoll.Value);
     }
 }