1
0
mirror of https://github.com/soarqin/DSP_Mods.git synced 2025-12-08 22:13:30 +08:00

new UXAssist and CheatEnabler release

This commit is contained in:
2024-09-19 23:53:02 +08:00
parent 722c32fdd6
commit 2d2602d8b9
13 changed files with 166 additions and 66 deletions

View File

@@ -166,10 +166,6 @@ public class UXAssist : BaseUnityPlugin, IModCanSave
_patches = Common.Util.GetTypesInNamespace(Assembly.GetExecutingAssembly(), "UXAssist.Patches");
_patches?.Do(type => type.GetMethod("Init")?.Invoke(null, null));
var patch = UIPatch.GetHarmony();
ModsCompat.AuxilaryfunctionWrapper.Init(patch);
ModsCompat.BulletTimeWrapper.Init(patch);
I18N.Apply();
I18N.OnInitialized += RecreateConfigWindow;
}
@@ -177,6 +173,9 @@ public class UXAssist : BaseUnityPlugin, IModCanSave
private void Start()
{
_patches?.Do(type => type.GetMethod("Start")?.Invoke(null, null));
var patch = UIPatch.GetHarmony();
ModsCompat.AuxilaryfunctionWrapper.Init(patch);
ModsCompat.BulletTimeWrapper.Init(patch);
}
private void OnDestroy()
@@ -200,6 +199,7 @@ public class UXAssist : BaseUnityPlugin, IModCanSave
{
ToggleConfigWindow();
}
GamePatch.OnUpdate();
FactoryPatch.OnUpdate();
PlayerPatch.OnUpdate();
LogisticsPatch.OnUpdate();