Skip to content

Commit

Permalink
Minor UI Events renames
Browse files Browse the repository at this point in the history
To be more consistent across the mod
  • Loading branch information
ZiwKerman authored and erendrake committed Apr 5, 2015
1 parent c834b0f commit 8877d7f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public bool IsAxisInverted
get { return rawServo.invertAxis; }
set {
rawServo.invertAxis = value;
rawServo.Events["InvertAxisToggle"].guiName = rawServo.invertAxis ? "Axis Inverted. Revert?" : "Axis Normal. Invert?";
rawServo.Events["InvertAxisToggle"].guiName = rawServo.invertAxis ? "Un-invert Axis" : "Invert Axis";
}
}

Expand Down
8 changes: 4 additions & 4 deletions InfernalRobotics/InfernalRobotics/Module/MuMechToggle.cs
Original file line number Diff line number Diff line change
Expand Up @@ -202,13 +202,13 @@ private Assembly MyResolveEventHandler(object sender, ResolveEventArgs args)
return myAssembly;
}

[KSPEvent(guiActive = true, guiActiveEditor = true, guiName = "Unconstrained. Restrict?", active = false)]
[KSPEvent(guiActive = true, guiActiveEditor = true, guiName = "Engage Limits", active = false)]
public void LimitTweakableToggle()
{
if (!rotateJoint)
return;
limitTweakableFlag = !limitTweakableFlag;
Events["LimitTweakableToggle"].guiName = limitTweakableFlag ? "Constrained to limits. Unconstrain?" : "Unconstrained. Restrict?";
Events["LimitTweakableToggle"].guiName = limitTweakableFlag ? "Disengage Limits" : "Engage Limits";

if (limitTweakableFlag)
{
Expand All @@ -226,11 +226,11 @@ public void LimitTweakableToggle()
TweakIsDirty = true;
}

[KSPEvent(guiActive = true, guiActiveEditor = true, guiName = "Axis Normal. Invert?")]
[KSPEvent(guiActive = true, guiActiveEditor = true, guiName = "Invert Axis")]
public void InvertAxisToggle()
{
invertAxis = !invertAxis;
Events["InvertAxisToggle"].guiName = invertAxis ? "Axis Inverted. Revert?" : "Axis Normal. Invert?";
Events["InvertAxisToggle"].guiName = invertAxis ? "Un-invert Axis" : "Invert Axis";
}

public bool IsSymmMaster()
Expand Down

0 comments on commit 8877d7f

Please sign in to comment.