diff --git a/NebulaPatcher/Patches/Dynamic/UIGalaxySelect_Patch.cs b/NebulaPatcher/Patches/Dynamic/UIGalaxySelect_Patch.cs index 8eafc0709..1ebee1a0f 100644 --- a/NebulaPatcher/Patches/Dynamic/UIGalaxySelect_Patch.cs +++ b/NebulaPatcher/Patches/Dynamic/UIGalaxySelect_Patch.cs @@ -20,11 +20,11 @@ internal class UIGalaxySelect_Patch { private static int MainMenuStarID = -1; - private static Toggle? DFToggle; - private static bool? OriginalDFToggleIsOn; - private static bool? OriginalDFToggleInteractable; - private static Color? OriginalDFToggleDisabledColor; - private static Tooltip? DFToggleTooltip; + private static Toggle DFToggle; + private static bool OriginalDFToggleIsOn; + private static bool OriginalDFToggleInteractable; + private static Color OriginalDFToggleDisabledColor; + private static Tooltip DFToggleTooltip; [HarmonyPostfix] [HarmonyPatch(nameof(UIGalaxySelect._OnOpen))] @@ -80,7 +80,9 @@ public static void _OnOpen_Postfix(UIGalaxySelect __instance) MainMenuStarID = GameMain.localStar.id; } +#if !DEBUG DisableDarkFogToggle(); +#endif var button = GameObject.Find("UI Root/Overlay Canvas/Galaxy Select/start-button").GetComponent