feat: implement skipnotice

This commit is contained in:
あかニャン 2024-05-24 06:37:22 +09:00
parent 6b4022cbbe
commit 63453d5e5f
2 changed files with 40 additions and 2 deletions

View File

@ -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.
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.

View File

@ -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<Scene_30_NoticeReward, State> _mode;
private enum State
{
Attention,
Notice,
RankingReward,
TechnicalChallengeReward,
DailyBonus,
AimeCollab,
Present,
TrainingRoom,
FadeOut,
End
}
private void Start() {
_mode = new Mode<Scene_30_NoticeReward, State>(this);
_mode.set(State.FadeOut);
SingletonMonoBehaviour<SystemUI>.instance.Panel.pushState(0, show: true);
}
}