SHA256
Document Harmony Patches
This commit is contained in:
19 files changed
+499
-4
No files matched your search
@@ -3,10 +3,26 @@ using HarmonyLib;
|
||||
|
||||
namespace ADOFAIRenderer.Patch.Game;
|
||||
|
||||
/// <summary>
|
||||
/// Hides the "press any key to begin" text of the first level start of a render.
|
||||
/// <para>
|
||||
/// Patched member: <c>scrPressToStart.ShowText()</c>, which sets the press/tap-to-begin text and shows the difficulty
|
||||
/// selector (<c>scrUIController.ShowDifficultyContainer</c>). <c>scrController</c> calls it before waiting for the start input.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// Active once per render: <c>RenderManager.skipPressToStart</c> is set when the render loads <c>scnGame</c> and cleared by
|
||||
/// the first ShowText call (or when the render stops). Later ShowText calls run the original.
|
||||
/// </para>
|
||||
/// </summary>
|
||||
[HarmonyPatch(typeof(scrPressToStart))]
|
||||
// ReSharper disable once InconsistentNaming
|
||||
public class scrPressToStartPatch
|
||||
{
|
||||
/// <summary>
|
||||
/// Prefix of <c>scrPressToStart.ShowText</c>. When <c>skipPressToStart</c> is set, clears it, hides the difficulty
|
||||
/// selector and skips the original.
|
||||
/// </summary>
|
||||
/// <returns>True to run the original method; false to skip it (first ShowText of a render).</returns>
|
||||
[HarmonyPrefix]
|
||||
[HarmonyPatch("ShowText")]
|
||||
private static bool PreventShowText()
|
||||
|
||||
Reference in new issue
Block a user