mirror of
https://github.com/soarqin/DSP_Mods.git
synced 2025-12-09 02:13:29 +08:00
window logic fix
This commit is contained in:
@@ -42,6 +42,13 @@ public class UIPatch: PatchImpl<UIPatch>
|
|||||||
return Functions.UIFunctions.CornerComboBoxIndex == 0;
|
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]
|
[HarmonyPrefix]
|
||||||
[HarmonyPatch(typeof(UIMechaLab), nameof(UIMechaLab.DetermineVisible))]
|
[HarmonyPatch(typeof(UIMechaLab), nameof(UIMechaLab.DetermineVisible))]
|
||||||
private static bool UIMechaLab_DetermineVisible_Prefix(UIMechaLab __instance, ref bool __result)
|
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)
|
public void SetLabelText(string val)
|
||||||
{
|
{
|
||||||
if (labelText != null)
|
if (labelText != null)
|
||||||
|
|||||||
Reference in New Issue
Block a user