mirror of
https://github.com/MewoLab/AquaDX.git
synced 2026-02-10 10:27:26 +08:00
更新了配置文件格式,原有的配置文件将被自动无缝迁移,详情请见新的配置文件中的注释(例外:`SlideJudgeTweak` 不再默认启用) 旧配置文件将被重命名备份,如果更新到此版本遇到 Bug 请联系我们 Updated configuration file schema. The old config file will be migrated automatically and seamlessly. See the comments in the new configuration file for details. (Except for `SlideJudgeTweak` is no longer enabled by default) Your old configuration file will be renamed as a backup. If you encounter any bug with this version, please contact us.
43 lines
1.6 KiB
C#
43 lines
1.6 KiB
C#
using AquaMai.Config.Attributes;
|
|
using HarmonyLib;
|
|
using Monitor;
|
|
|
|
namespace AquaMai.Mods.Fancy.GamePlay;
|
|
|
|
[ConfigSection(
|
|
en: """
|
|
Make the judgment display of WiFi Slide different in up and down (originally all WiFi judgment displays are towards the center), just like in majdata.
|
|
The reason for this bug is that SEGA forgot to assign EndButtonId to WiFi.
|
|
""",
|
|
zh: """
|
|
这个 Patch 让 WiFi Slide 的判定显示有上下的区别 (原本所有 WiFi 的判定显示都是朝向圆心的), 就像 majdata 里那样
|
|
这个 bug 产生的原因是 SBGA 忘记给 WiFi 的 EndButtonId 赋值了
|
|
""")]
|
|
public class FanJudgeFlip
|
|
{
|
|
/*
|
|
* 这个 Patch 让 WiFi Slide 的判定显示有上下的区别 (原本所有 WiFi 的判定显示都是朝向圆心的), 就像 majdata 里那样
|
|
* 这个 bug 产生的原因是 SBGA 忘记给 WiFi 的 EndButtonId 赋值了
|
|
* 不过需要注意的是, 考虑到圆弧形 Slide 的判定显示就是永远朝向圆心的, 我个人会觉得这个 Patch 关掉更好看一点
|
|
*/
|
|
[HarmonyPostfix]
|
|
[HarmonyPatch(typeof(SlideFan), "Initialize")]
|
|
private static void FixFanJudgeFilp(
|
|
int[] ___GoalButtonId, SlideJudge ___JudgeObj
|
|
)
|
|
{
|
|
if (null != ___JudgeObj)
|
|
{
|
|
if (2 <= ___GoalButtonId[1] && ___GoalButtonId[1] <= 5)
|
|
{
|
|
___JudgeObj.Flip(false);
|
|
___JudgeObj.transform.Rotate(0.0f, 0.0f, 180f);
|
|
}
|
|
else
|
|
{
|
|
___JudgeObj.Flip(true);
|
|
}
|
|
}
|
|
}
|
|
}
|