public override void LoadCamera(BCAMEntry Entry) { base.LoadCamera(Entry); Loading = true; RotationZNumericUpDown.Value = (decimal)Entry.RotationZ.RadianToDegree(); ZoomNumericUpDown.Value = (decimal)Entry.Zoom; StringTextBox.Text = Entry.String; FieldOfViewNumericUpDown.Value = (decimal)Entry.FieldOfView; CamIntNumericUpDown.Value = Entry.TransitionTime; CamEndIntNumericUpDown.Value = Entry.TransitionEndTime; EventFrameNumericUpDown.Value = Entry.EventFrames; FixpointVector3NumericUpDown.LoadVector3(Entry.FixPointOffset); WorldOffsetVector3NumericUpDown.LoadVector3(Entry.WorldPointOffset); Vector3 <float> PlayerOffset = Entry.PlayerOffset; PlayerOffsetYNumericUpDown.Value = (decimal)PlayerOffset.YValue.RadianToDegree(); PlayerOffsetXNumericUpDown.Value = (decimal)PlayerOffset.XValue.RadianToDegree(); UpAxisVector3NumericUpDown.LoadVector3(Entry.UpAxis); FieldOfViewCheckBox.Checked = Entry.EnableFoV; DisableCollisionCheckBox.Checked = Entry.DisableCollision; DisableFirstPersonCheckBox.Checked = !Entry.DisableFirstPerson; EventUseTimeCheckBox.Checked = Entry.EventUseTransitionTime; EventUseEndTimeCheckBox.Checked = Entry.EventUseTransitionEndTime; Loading = false; }
public override void LoadCamera(BCAMEntry Entry) { base.LoadCamera(Entry); Loading = true; RotationXNumericUpDown.Value = (decimal)Entry.RotationX.RadianToDegree(); RotationYNumericUpDown.Value = (decimal)Entry.RotationY.RadianToDegree(); RotationZNumericUpDown.Value = (decimal)Entry.RotationZ.RadianToDegree(); ZoomNumericUpDown.Value = (decimal)Entry.Zoom; Num1NumericUpDown.Value = Entry.Num1; Num2NumericUpDown.Value = Entry.Num2; StringTextBox.Text = Entry.String; FieldOfViewNumericUpDown.Value = (decimal)Entry.FieldOfView; JumpingYNumericUpDown.Value = (decimal)Entry.MaxY; FallingYNumericUpDown.Value = (decimal)Entry.MinY; CamIntNumericUpDown.Value = Entry.TransitionTime; CamEndIntNumericUpDown.Value = Entry.TransitionEndTime; FrontOffsetNumericUpDown.Value = (decimal)Entry.LookOffset; HeightOffsetNumericUpDown.Value = (decimal)Entry.LookOffsetVertical; GroundDelayNumericUpDown.Value = Entry.GroundMoveDelay; AirDelayNumericUpDown.Value = Entry.AirMoveDelay; UpperBorderNumericUpDown.Value = (decimal)Entry.UpperBorder; LowerBorderNumericUpDown.Value = (decimal)Entry.LowerBorder; EventFrameNumericUpDown.Value = Entry.EventFrames; EventPriorityNumericUpDown.Value = Entry.EventPriority; FixpointVector3NumericUpDown.LoadVector3(Entry.FixPointOffset); WorldOffsetVector3NumericUpDown.LoadVector3(Entry.WorldPointOffset); PlayerOffsetVector3NumericUpDown.LoadVector3(Entry.PlayerOffset); VerticalPanAxisVector3NumericUpDown.LoadVector3(Entry.VerticalPanAxis); UpAxisVector3NumericUpDown.LoadVector3(Entry.UpAxis); DisableResetCheckBox.Checked = !Entry.DisableReset; FieldOfViewCheckBox.Checked = Entry.EnableFoV; SharpZoomCheckBox.Checked = Entry.StaticLookOffset; DisableAntiBlurCheckBox.Checked = Entry.DisableAntiBlur; DisableCollisionCheckBox.Checked = !Entry.DisableCollision; DisableFirstPersonCheckBox.Checked = !Entry.DisableFirstPerson; GFlagEndErpFrameCheckBox.Checked = Entry.GFlagEndErpFrame; GFlagThroughCheckBox.Checked = Entry.GFlagThrough; GFlagEndTimeNumericUpDown.Value = (decimal)Entry.GFlagEndTime; UseVerticalPanAxisCheckBox.Checked = Entry.EnableVerticalPanAxis; EventUseTimeCheckBox.Checked = Entry.EventUseTransitionTime; EventUseEndTimeCheckBox.Checked = Entry.EventUseTransitionEndTime; Loading = false; }