Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove automatic panel popup when entering the KSC #43

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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
}
}
}