Skip to content

Commit

Permalink
#27.Updated settings window to current state of mod
Browse files Browse the repository at this point in the history
  • Loading branch information
jwvanderbeck committed Feb 7, 2015
1 parent 03fa782 commit 9a741e2
Showing 1 changed file with 3 additions and 17 deletions.
20 changes: 3 additions & 17 deletions TestFlightCore/TestFlightCore/TestFlightWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -307,9 +307,9 @@ internal override void DrawWindow(Int32 id)
foreach (PartStatus status in masterStatus[currentVessel].allPartsStatus)
{
// Display part data
// GUILayout.Label(String.Format("{0,50}", status.partName));
// GUILayout.Label(String.Format("{0,7:F2}du", status.flightData));
// GUILayout.Label(String.Format("{0,7:F2}%", status.reliability));
// GUILayout.Label(String.Format("{0,50}", status.partName));
// GUILayout.Label(String.Format("{0,7:F2}du", status.flightData));
// GUILayout.Label(String.Format("{0,7:F2}%", status.reliability));

if (tfScenario.userSettings.showFailedPartsOnlyInMSD && status.activeFailure == null)
continue;
Expand Down Expand Up @@ -511,20 +511,6 @@ internal override void DrawWindow(Int32 id)
GUILayout.EndHorizontal();
break;
case 1:
GUILayout.BeginHorizontal();
GUILayout.Label(new GUIContent("Minimum Update Rate",
"Define the time in seconds between updates to all parts.\n" +
"Setting this lower will ensure you always have up to date data, but might be a performance issue on large craft.\n" +
"Increase this if you find it affecting performance"),
GUILayout.Width(200)
);
if (DrawHorizontalSlider(ref tfScenario.userSettings.minTimeBetweenDataPoll, 0, 1, GUILayout.Width(150)))
{
tfScenario.userSettings.Save();
}
GUILayout.Label(String.Format("{0,5:f2}", tfScenario.userSettings.minTimeBetweenDataPoll), GUILayout.Width(75));
GUILayout.EndHorizontal();

GUILayout.BeginHorizontal();
GUILayout.Label(new GUIContent("Flight Data Multiplier", "Overall difficulty slider.\n" +
"Increase to make all parts accumuate flight data faster. Decrease to make them accumulate flight data slower.\n" +
Expand Down

0 comments on commit 9a741e2

Please sign in to comment.