SHA256
Document Harmony Patches
This commit is contained in:
1 parent
8deb64fd4d
commit
d2bd655118
19 files changed
+499
-4
No files matched your search
@@ -3,10 +3,20 @@ using HarmonyLib;
|
||||
|
||||
namespace ADOFAIRenderer.Patch.Game;
|
||||
|
||||
/// <summary>
|
||||
/// Hides the judgement texts (e.g. Perfect, Early, Late) during a render unless the render configuration enables them.
|
||||
/// <para>
|
||||
/// Patched member: <c>scrHitTextManager.ShowHitText(HitMargin, scrPlanet, float, int?)</c>, which shows the hit margin
|
||||
/// text at the planet for each hit (the game itself skips it for no-HUD modes and hidden margins).
|
||||
/// </para>
|
||||
/// <para>Active while <see cref="RenderManager.IsActive"/> (stage >= OnScene) and <c>RenderConfig.ShowJudgementText</c> is false.</para>
|
||||
/// </summary>
|
||||
[HarmonyPatch(typeof(scrHitTextManager), "ShowHitText")]
|
||||
// ReSharper disable once InconsistentNaming
|
||||
public class scrHitTextManagerPatch
|
||||
{
|
||||
/// <summary>Prefix of <c>scrHitTextManager.ShowHitText</c>.</summary>
|
||||
/// <returns>True to run the original method (not rendering, or judgement texts enabled); false to skip it.</returns>
|
||||
public static bool Prefix()
|
||||
{
|
||||
return !RenderManager.IsActive || RenderManager.Instance is { Configuration: { ShowJudgementText: true } };
|
||||
|
||||
Reference in new issue
Block a user