mirror of
https://github.com/soarqin/DSP_Mods.git
synced 2025-12-09 06:53:31 +08:00
UXAssist v1.3.2
This commit is contained in:
@@ -2,7 +2,6 @@ namespace UXAssist.Patches;
|
||||
|
||||
using Common;
|
||||
using HarmonyLib;
|
||||
using UnityEngine;
|
||||
|
||||
[PatchGuid(PluginInfo.PLUGIN_GUID)]
|
||||
public class UIPatch: PatchImpl<UIPatch>
|
||||
@@ -14,12 +13,21 @@ public class UIPatch: PatchImpl<UIPatch>
|
||||
}
|
||||
|
||||
// Add config button to main menu
|
||||
[HarmonyPostfix, HarmonyPatch(typeof(UIRoot), nameof(UIRoot._OnOpen))]
|
||||
[HarmonyPostfix]
|
||||
[HarmonyPatch(typeof(UIRoot), nameof(UIRoot._OnOpen))]
|
||||
public static void UIRoot__OnOpen_Postfix()
|
||||
{
|
||||
Functions.UIFunctions.InitMenuButtons();
|
||||
}
|
||||
|
||||
[HarmonyPostfix]
|
||||
[HarmonyPatch(typeof(PlanetData), nameof(PlanetData.NotifyScanEnded))]
|
||||
private static void PlanetData_NotifyScanEnded_Postfix(PlanetData __instance)
|
||||
{
|
||||
if (PlanetModelingManager.scnPlanetReqList.Count > 0) return;
|
||||
BepInEx.ThreadingHelper.Instance.StartSyncInvoke(Functions.UIFunctions.OnPlanetScanEnded);
|
||||
}
|
||||
|
||||
[HarmonyPostfix]
|
||||
[HarmonyPatch(typeof(UIPlanetGlobe), nameof(UIPlanetGlobe.DistributeButtons))]
|
||||
private static void UIPlanetGlobe_DistributeButtons_Postfix(UIPlanetGlobe __instance)
|
||||
|
||||
Reference in New Issue
Block a user