From 63453d5e5f3faed06953ce9d3b1d3d4cedf2af50 Mon Sep 17 00:00:00 2001 From: akanyan Date: Fri, 24 May 2024 06:37:22 +0900 Subject: [PATCH] feat: implement skipnotice --- README.md | 10 ++++-- SkipNotice/MU3/patch_Scene_30_NoticeReward.cs | 32 +++++++++++++++++++ 2 files changed, 40 insertions(+), 2 deletions(-) create mode 100644 SkipNotice/MU3/patch_Scene_30_NoticeReward.cs diff --git a/README.md b/README.md index 5166418..7089f42 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,9 @@ Enables these buttons in music play: * Red menu: instant return to song select * Yellow menu: instant restart -To avoid misclicks, you have to hold the button down for 1 second. Based on GiveUp, but Better. +To avoid misclicks, you have to hold the button down for 1 second. + +Based on GiveUp, but Better. ### ExportChartData @@ -18,4 +20,8 @@ Exports some useful chart data into a dollar-separated file (charts.csv) when th ### NaiveRating Replaces the in-game rating algorithm (OldBest30+NewBest15+Recent10) with Best45. -This change is client-side and immediate, but the server **will** acknowledge it. I host my own server and don't care, but you have been warned. \ No newline at end of file +This change is client-side and immediate, but the server **will** acknowledge it. I host my own server and don't care, but you have been warned. + +### SkipNotice + +Skips the safety warning screen, notices, login bonuses, etc. \ No newline at end of file diff --git a/SkipNotice/MU3/patch_Scene_30_NoticeReward.cs b/SkipNotice/MU3/patch_Scene_30_NoticeReward.cs new file mode 100644 index 0000000..ff9c440 --- /dev/null +++ b/SkipNotice/MU3/patch_Scene_30_NoticeReward.cs @@ -0,0 +1,32 @@ +#pragma warning disable CS0626 +#pragma warning disable CS0649 +#pragma warning disable IDE0051 +#pragma warning disable IDE1006 + +using MU3.Sequence; +using MU3.Util; + +namespace MU3; + +public class patch_Scene_30_NoticeReward : Scene_30_NoticeReward { + private Mode _mode; + private enum State + { + Attention, + Notice, + RankingReward, + TechnicalChallengeReward, + DailyBonus, + AimeCollab, + Present, + TrainingRoom, + FadeOut, + End + } + + private void Start() { + _mode = new Mode(this); + _mode.set(State.FadeOut); + SingletonMonoBehaviour.instance.Panel.pushState(0, show: true); + } +} \ No newline at end of file