mirror of https://github.com/hykilpikonna/AquaDX
[+] HanabiFix + HideHanabi
parent
f7c1714cb8
commit
7e5467935b
|
@ -304,6 +304,7 @@ DEBUG</DefineConstants>
|
|||
<Compile Include="Fix\ForceFreePlay.cs" />
|
||||
<Compile Include="Fix\ForcePaidPlay.cs" />
|
||||
<Compile Include="Fix\FrameRateLock.cs" />
|
||||
<Compile Include="Fix\HanabiFix.cs" />
|
||||
<Compile Include="Fix\I18nSingleAssemblyHook.cs" />
|
||||
<Compile Include="Fix\RemoveEncryption.cs" />
|
||||
<Compile Include="Fix\SkipVersionCheck.cs" />
|
||||
|
@ -342,6 +343,7 @@ DEBUG</DefineConstants>
|
|||
<Compile Include="UX\CustomVersionString.cs" />
|
||||
<Compile Include="UX\DemoMaster.cs" />
|
||||
<Compile Include="UX\ExtendTimer.cs" />
|
||||
<Compile Include="UX\HideHanabi.cs" />
|
||||
<Compile Include="UX\HideMask.cs" />
|
||||
<Compile Include="UX\HideSelfMadeCharts.cs" />
|
||||
<Compile Include="UX\ImmediateSave.cs" />
|
||||
|
|
|
@ -59,6 +59,8 @@ CustomNoteSkin=false
|
|||
# Hide "TRACK X" text and DX/Standard chart display box
|
||||
# For recording chart confirmation
|
||||
TrackStartProcessTweak=false
|
||||
# Cannot be used together with HanabiFix
|
||||
HideHanabi=false
|
||||
|
||||
[Fix]
|
||||
# Allow login with higher data version
|
||||
|
@ -79,6 +81,8 @@ FontFix=true
|
|||
# Make the Critical judgment of BreakSlide flash like BreakTap
|
||||
# Align the judgment display of arc-shaped Slide with the judgment line accurately (it was slightly off before)
|
||||
SlideJudgeTweak=true
|
||||
# Cannot be used together with HideHanabi
|
||||
HanabiFix=false
|
||||
|
||||
[Utils]
|
||||
# Log user ID on login
|
||||
|
|
|
@ -68,6 +68,9 @@ CustomNoteSkin=false
|
|||
# 隐藏“TRACK X”字样和 DX/标准谱面的显示框
|
||||
# 录制谱面确认用
|
||||
TrackStartProcessTweak=false
|
||||
# 完全隐藏烟花
|
||||
# 不能和 HanabiFix 一起使用
|
||||
HideHanabi=false
|
||||
|
||||
# ===================================
|
||||
# 修复一些潜在的问题
|
||||
|
@ -95,6 +98,9 @@ FontFix=true
|
|||
# 让 BreakSlide 的 Critical 判定也可以像 BreakTap 一样闪烁
|
||||
# 让圆弧形的 Slide 的判定显示与判定线精确对齐 (原本会有一点歪)
|
||||
SlideJudgeTweak=true
|
||||
# 修复 1p 模式下的烟花大小
|
||||
# 不能和 HideHanabi 一起使用
|
||||
HanabiFix=true
|
||||
|
||||
[Utils]
|
||||
# 登录时将 UserID 输出到日志
|
||||
|
|
|
@ -41,6 +41,7 @@ namespace AquaMai
|
|||
public bool CustomFont { get; set; }
|
||||
public bool CustomNoteSkin { get; set; }
|
||||
public bool TrackStartProcessTweak { get; set; }
|
||||
public bool HideHanabi { get; set; }
|
||||
public string CustomVersionString { get; set; } = "";
|
||||
public string CustomPlaceName { get; set; } = "";
|
||||
public string ExecOnIdle { get; set; } = "";
|
||||
|
@ -58,6 +59,7 @@ namespace AquaMai
|
|||
public bool FrameRateLock { get; set; }
|
||||
public bool FontFix { get; set; }
|
||||
public bool SlideJudgeTweak { get; set; }
|
||||
public bool HanabiFix { get; set; }
|
||||
}
|
||||
|
||||
public class UtilsConfig
|
||||
|
|
|
@ -0,0 +1,20 @@
|
|||
using Fx;
|
||||
using HarmonyLib;
|
||||
using Monitor;
|
||||
using UnityEngine;
|
||||
|
||||
namespace AquaMai.Fix;
|
||||
|
||||
public class HanabiFix
|
||||
{
|
||||
[HarmonyPatch(typeof(TapCEffect), "SetUpParticle")]
|
||||
[HarmonyPostfix]
|
||||
public static void FixMaxSize(TapCEffect __instance, FX_Mai2_Note_Color ____particleControler)
|
||||
{
|
||||
var entities = ____particleControler.GetComponentsInChildren<ParticleSystemRenderer>(true);
|
||||
foreach (var entity in entities)
|
||||
{
|
||||
entity.maxParticleSize = 1f;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,20 @@
|
|||
using Fx;
|
||||
using HarmonyLib;
|
||||
using Monitor;
|
||||
using UnityEngine;
|
||||
|
||||
namespace AquaMai.UX;
|
||||
|
||||
public class HideHanabi
|
||||
{
|
||||
[HarmonyPatch(typeof(TapCEffect), "SetUpParticle")]
|
||||
[HarmonyPostfix]
|
||||
public static void FixZeroSize(TapCEffect __instance, FX_Mai2_Note_Color ____particleControler)
|
||||
{
|
||||
var entities = ____particleControler.GetComponentsInChildren<ParticleSystemRenderer>(true);
|
||||
foreach (var entity in entities)
|
||||
{
|
||||
entity.maxParticleSize = 0f;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue