From 04a9c703f1258a49cdb776eaca73f21932ca2619 Mon Sep 17 00:00:00 2001 From: rettoph Date: Mon, 30 Oct 2023 13:56:21 -0600 Subject: [PATCH] Remove automatic panel popup when entering the KSC Signed-off-by: rettoph --- source/AdjustableModPanel.cs | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/source/AdjustableModPanel.cs b/source/AdjustableModPanel.cs index cd04f72..71bcd7b 100644 --- a/source/AdjustableModPanel.cs +++ b/source/AdjustableModPanel.cs @@ -1,4 +1,4 @@ -#region License +#region License /* BSD 2-Clause License @@ -601,7 +601,7 @@ public void OnGUIApplicationLauncherReady () ApplicationLauncher.Instance.prefab_horizontalRightLeft.GetGameObject ().AddOrGetComponent (); 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; } @@ -615,10 +615,6 @@ private void OnGUIApplicationLauncherUnreadifying (GameScenes scene) public void AppButtonDisable () { appButton?.SetFalse (); } - /// Enable App Button - 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) @@ -909,4 +905,4 @@ private void LoadConfig () } #endregion } -} \ No newline at end of file +}