mirror of
https://github.com/soarqin/DSP_Mods.git
synced 2025-12-08 21:33:28 +08:00
window logic fix
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user