1
0
mirror of https://github.com/soarqin/DSP_Mods.git synced 2025-12-09 05:33:37 +08:00

window logic fix

This commit is contained in:
2025-07-11 17:05:50 +08:00
parent 2949066712
commit 4f292bd2d3
2 changed files with 14 additions and 0 deletions

View File

@@ -42,6 +42,13 @@ public class UIPatch: PatchImpl<UIPatch>
return Functions.UIFunctions.CornerComboBoxIndex == 0;
}
[HarmonyPostfix]
[HarmonyPatch(typeof(UIStarmapStar), nameof(UIStarmapStar._OnClose))]
private static void UIStarmapStar__OnClose_Postfix(UIStarmapStar __instance)
{
Functions.UIFunctions.StarmapFilterToggler?.SetCheckedWithEvent(false);
}
[HarmonyPrefix]
[HarmonyPatch(typeof(UIMechaLab), nameof(UIMechaLab.DetermineVisible))]
private static bool UIMechaLab_DetermineVisible_Prefix(UIMechaLab __instance, ref bool __result)