Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --- E:/gama/kspmodz/TweakableEverything-1.9.1/Source/TweakableReactionWheels/ModuleTweakableReactionWheel.cs Fri May 01 14:46:02 2015
- +++ C:/Users/jazzkutya/Documents/Projects/TweakableReactionWheels/TweakableReactionWheels/ModuleTweakableReactionWheel.cs Sun May 03 18:38:05 2015
- @@ -52,17 +52,17 @@
- protected bool startEnabledState;
- // Stores our tweaked value for roll torque.
- - [KSPField(isPersistant = true, guiName = "Roll Torque (kN-m)", guiActiveEditor = true)]
- + [KSPField(isPersistant = true, guiName = "Roll Torque (kN-m)", guiActive = true)]
- [UI_FloatRange(minValue = float.MinValue, maxValue = float.MaxValue, stepIncrement = 1f)]
- public float RollTorque;
- // Stores our tweaked value for pitch torque.
- - [KSPField(isPersistant = true, guiName = "Pitch Torque (kN-m)", guiActiveEditor = true)]
- + [KSPField(isPersistant = true, guiName = "Pitch Torque (kN-m)", guiActive = true)]
- [UI_FloatRange(minValue = float.MinValue, maxValue = float.MaxValue, stepIncrement = 1f)]
- public float PitchTorque;
- // Stores our tweaked value for yaw torque.
- - [KSPField(isPersistant = true, guiName = "Yaw Torque (kN-m)", guiActiveEditor = true)]
- + [KSPField(isPersistant = true, guiName = "Yaw Torque (kN-m)", guiActive = true)]
- [UI_FloatRange(minValue = float.MinValue, maxValue = float.MaxValue, stepIncrement = 1f)]
- public float YawTorque;
- @@ -144,6 +144,11 @@
- this.reactionWheelModule.State = ModuleReactionWheel.WheelState.Disabled;
- }
- }
- + }
- + if (HighLogic.LoadedSceneIsFlight && this.reactionWheelModule != null) {
- + this.reactionWheelModule.RollTorque = this.RollTorque;
- + this.reactionWheelModule.PitchTorque = this.PitchTorque;
- + this.reactionWheelModule.YawTorque = this.YawTorque;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement