Skip to content

Commit

Permalink
No equipotential hiding.
Browse files Browse the repository at this point in the history
  • Loading branch information
eggrobin committed Feb 15, 2025
1 parent 61922c4 commit f2c6bbe
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
4 changes: 1 addition & 3 deletions ksp_plugin_adapter/ksp_plugin_adapter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2303,9 +2303,7 @@ private void RenderTrajectories() {
main_window_.history_length,
prediction_collision_?.t,
flight_plan_collision_?.t);
if (main_window_.show_equipotentials) {
plotter_.PlotEquipotentials(planetarium);
}
plotter_.PlotEquipotentials(planetarium);
}
}
}
Expand Down
6 changes: 0 additions & 6 deletions ksp_plugin_adapter/main_window.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ public void SelectActiveVesselTarget(MapObject map_object,

public bool show_unpinned_markers { get; private set; } = true;
public bool show_unpinned_celestials { get; private set; } = true;
public bool show_equipotentials { get; private set; } = true;

public bool selecting_active_vessel_target { get; private set; } = false;

Expand Down Expand Up @@ -224,7 +223,6 @@ protected override void RenderWindowContents(int window_id) {
GUILayoutWidth(5))) {
show_unpinned_markers = false;
show_unpinned_celestials = false;
show_equipotentials = false;
}
UnityEngine.GUILayout.Label(
L10N.CacheFormat("#Principia_MainWindow_Declutter_Show"));
Expand All @@ -236,10 +234,6 @@ protected override void RenderWindowContents(int window_id) {
show_unpinned_celestials,
L10N.CacheFormat(
"#Principia_MainWindow_Declutter_UnpinnedCelestials"));
show_equipotentials = UnityEngine.GUILayout.Toggle(
show_equipotentials,
L10N.CacheFormat(
"#Principia_MainWindow_Declutter_Equipotentials"));
}
using (new UnityEngine.GUILayout.HorizontalScope()) {
flight_planner_.RenderButton();
Expand Down

0 comments on commit f2c6bbe

Please sign in to comment.