From 562fdef4b6703ea78c4fdfcee8a0594f5957c385 Mon Sep 17 00:00:00 2001 From: _nebula <41904486+misternebula@users.noreply.github.com> Date: Thu, 9 Nov 2023 21:56:05 +0000 Subject: [PATCH] add OWML version to title screen --- src/OWML.ModHelper.Menus/NewMenuSystem/Patches.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/OWML.ModHelper.Menus/NewMenuSystem/Patches.cs b/src/OWML.ModHelper.Menus/NewMenuSystem/Patches.cs index f88040a3..adde2a36 100644 --- a/src/OWML.ModHelper.Menus/NewMenuSystem/Patches.cs +++ b/src/OWML.ModHelper.Menus/NewMenuSystem/Patches.cs @@ -113,5 +113,13 @@ public static bool InitializeNavigation(TabButton __instance) return false; } + + [HarmonyPostfix] + [HarmonyPatch(typeof(TitleScreenManager), nameof(TitleScreenManager.FadeInTitleLogo))] + public static void FadeInTitleLogo(TitleScreenManager __instance) + { + var owmlManifest = JsonHelper.LoadJsonObject($"{Application.dataPath}/Managed/{Constants.OwmlManifestFileName}"); + __instance._gameVersionTextDisplay.text = $"Outer Wilds : {Application.version}{Environment.NewLine}OWML : {owmlManifest.Version}"; + } } }