From fe7d0f297fdbb465aa2c15c1198888a47b612f3e Mon Sep 17 00:00:00 2001 From: akanyan Date: Thu, 27 Jun 2024 09:41:45 +0900 Subject: [PATCH] feat: add LockSelectionTime --- LockSelectionTime/MU3/patch_SystemUI.cs | 16 ++++++++++++++++ LockSelectionTime/MU3/patch_UITimer.cs | 15 +++++++++++++++ README.md | 8 +++++++- 3 files changed, 38 insertions(+), 1 deletion(-) create mode 100644 LockSelectionTime/MU3/patch_SystemUI.cs create mode 100644 LockSelectionTime/MU3/patch_UITimer.cs diff --git a/LockSelectionTime/MU3/patch_SystemUI.cs b/LockSelectionTime/MU3/patch_SystemUI.cs new file mode 100644 index 0000000..091ac91 --- /dev/null +++ b/LockSelectionTime/MU3/patch_SystemUI.cs @@ -0,0 +1,16 @@ +#pragma warning disable CS0626 + +namespace MU3; + +public class patch_SystemUI: SystemUI { + public class patch_Timer: SystemUI.Timer { + public patch_Timer(UITimer timer): base(timer) { /* nop */ } + public new void execute() { /* nop */ } + public extern bool orig_get_show(); + public extern void orig_set_show(bool value); + public new bool show { + get { return orig_get_show(); } + set { orig_set_show(false); } + } + } +} \ No newline at end of file diff --git a/LockSelectionTime/MU3/patch_UITimer.cs b/LockSelectionTime/MU3/patch_UITimer.cs new file mode 100644 index 0000000..6295ad3 --- /dev/null +++ b/LockSelectionTime/MU3/patch_UITimer.cs @@ -0,0 +1,15 @@ +#pragma warning disable CS0626 + +using UnityEngine; + +namespace MU3; + +public class patch_UITimer: UITimer { + public new void update() { /* nop */ } + public new void update(float externalCounter) { /* nop */ } + public extern void orig_initialize(float counter); + public new void initialize(float counter) { + orig_initialize(counter); + transform.localScale = new Vector3(0, 0, 0); + } +} \ No newline at end of file diff --git a/README.md b/README.md index dd2ea2d..70351de 100644 --- a/README.md +++ b/README.md @@ -21,13 +21,19 @@ Exports some useful chart data into a dollar-separated file (charts.csv) when th Self-explanatory. Saves you time. +### LockSelectionTime ⚠️ + +Disables *all* timers. A replacement for the older LockSelectionTime. + +⚠️ Requires a clean assembly. Dirty assemblies often hardpatch the older LockSelectionTime. + ### NaiveRating Replaces the in-game rating algorithm (OldBest30+NewBest15+Recent10) with Best45. Client-side and purely cosmetic. ### SkipNotice ⚠️ -Skips the safety warning screen, event notices, ⚠️login bonuses, event rewards⚠️. +Skips the safety warning screen, event notices, ⚠️login bonuses, ⚠️event rewards. ### SkipPreMusicRitual