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,27 @@ using HarmonyLib;
|
||||
|
||||
namespace ADOFAIRenderer.Patch.Game;
|
||||
|
||||
/// <summary>
|
||||
/// Hides the detailed results panel (per-judgement hit counts) that the game shows on the clear screen.
|
||||
/// <para>
|
||||
/// Patched member: <c>DetailedResults.Show()</c>. The game calls it from <c>scrController.OnLandOnPortal</c> when a level is won
|
||||
/// (and detailed results are enabled); it builds the result text per player, enables the component and activates
|
||||
/// <c>scrController.detailedResults</c>.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// Active while <see cref="RenderManager.IsActive"/> (stage >= OnScene), so the panel does not appear in the rendered video
|
||||
/// during the delay after the level end.
|
||||
/// </para>
|
||||
/// </summary>
|
||||
[HarmonyPatch(typeof(DetailedResults))]
|
||||
// ReSharper disable once InconsistentNaming
|
||||
public static class DetailedResultsPatch
|
||||
{
|
||||
/// <summary>
|
||||
/// Prefix of <c>DetailedResults.Show</c>. While rendering, disables the component and deactivates its GameObject.
|
||||
/// </summary>
|
||||
/// <param name="__instance">The DetailedResults component being shown.</param>
|
||||
/// <returns>True to run the original method (not rendering); false to skip it (rendering).</returns>
|
||||
[HarmonyPrefix]
|
||||
[HarmonyPatch("Show")]
|
||||
// ReSharper disable once InconsistentNaming
|
||||
|
||||
Reference in new issue
Block a user