1
0
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:
2025-04-27 19:31:49 +08:00
parent 2124719de0
commit 5545d7a2bf
7 changed files with 107 additions and 100 deletions

View File

@@ -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)