Added VersionShowerPatch

This commit is contained in:
Brybry committed 2021-02-02 02:28:38 +01:00
1 parent 8aa220d335
commit 66a4b0b3ec
2 files changed
+22

No files matched your search

+1
View File
@@ -20,6 +20,7 @@ namespace BetterPolus
public override void Load()
{
Logger = Log;
Harmony.PatchAll();
}
}
+21
View File
@@ -0,0 +1,21 @@
using BepInEx.IL2CPP;
using HarmonyLib;
using UnityEngine;
namespace BetterPolus
{
[HarmonyPatch(typeof(VersionShower), nameof(VersionShower.Start))]
public class VersionShowerPatch
{
[HarmonyPostfix]
[HarmonyPatch]
public static void Postfix(VersionShower __instance)
{
var reactorVS = GameObject.Find("ReactorVersion");
GameObject.Destroy(reactorVS);
TextRenderer text = __instance.text;
text.Text += "\nLoaded [5E4CA6FF]BetterPolus []Mod by Brybry";
}
}
}