Skip to content

Commit

Permalink
add OWML version to title screen
Browse files Browse the repository at this point in the history
  • Loading branch information
misternebula committed Nov 9, 2023
1 parent 70870d7 commit 562fdef
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/OWML.ModHelper.Menus/NewMenuSystem/Patches.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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<ModManifest>($"{Application.dataPath}/Managed/{Constants.OwmlManifestFileName}");
__instance._gameVersionTextDisplay.text = $"Outer Wilds : {Application.version}{Environment.NewLine}OWML : {owmlManifest.Version}";
}
}
}

0 comments on commit 562fdef

Please sign in to comment.