1
0
mirror of https://github.com/soarqin/DSP_Mods.git synced 2025-12-08 20:53:28 +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)

View File

@@ -111,6 +111,13 @@ public class MyCheckButton : MonoBehaviour
}
}
public void SetCheckedWithEvent(bool check)
{
if (_checked == check) return;
Checked = check;
OnChecked?.Invoke();
}
public void SetLabelText(string val)
{
if (labelText != null)