Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 3 additions & 7 deletions source/AdjustableModPanel.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#region License
#region License
/*
BSD 2-Clause License

Expand Down Expand Up @@ -601,7 +601,7 @@ public void OnGUIApplicationLauncherReady ()
ApplicationLauncher.Instance.prefab_horizontalRightLeft.GetGameObject ().AddOrGetComponent<ModPanelComponent> ();
if (ApplicationLauncher.Ready && appButton == null) {
appButton = ApplicationLauncher.Instance.AddModApplication (OpenMainWindow, CloseMainWindow, null, null,
AppButtonEnable, AppButtonDisable, ApplicationLauncher.AppScenes.ALWAYS & (~ApplicationLauncher.AppScenes.MAINMENU), appButtonTexture);
null, AppButtonDisable, ApplicationLauncher.AppScenes.ALWAYS & (~ApplicationLauncher.AppScenes.MAINMENU), appButtonTexture);
// this mod should be always on in KSC
appButton.container.Data = ApplicationLauncher.AppScenes.SPACECENTER;
}
Expand All @@ -615,10 +615,6 @@ private void OnGUIApplicationLauncherUnreadifying (GameScenes scene)
public void AppButtonDisable ()
{ appButton?.SetFalse (); }

/// <summary>Enable App Button</summary>
public void AppButtonEnable ()
{ appButton?.SetTrue(); } // not needed, really

internal ApplicationLauncher.AppScenes GetModScenes (string module, string method, ApplicationLauncher.AppScenes currentScenes, uint hash)
{
foreach (var mod in descriptors)
Expand Down Expand Up @@ -909,4 +905,4 @@ private void LoadConfig ()
}
#endregion
}
}
}