mirror of
https://github.com/MewoLab/AquaDX.git
synced 2026-02-13 16:27:26 +08:00
fix: Level display shift when level number not match display level
This commit is contained in:
@@ -2,6 +2,7 @@
|
|||||||
using HarmonyLib;
|
using HarmonyLib;
|
||||||
using Manager;
|
using Manager;
|
||||||
using Manager.Operation;
|
using Manager.Operation;
|
||||||
|
using Monitor.MusicSelect.ChainList;
|
||||||
using Net;
|
using Net;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
|
|
||||||
@@ -73,4 +74,23 @@ public class BasicFix
|
|||||||
__result = 1024;
|
__result = 1024;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[HarmonyPostfix]
|
||||||
|
[HarmonyPatch(typeof(MusicChainCardObejct), "SetLevel")]
|
||||||
|
private static void FixLevelShift(MusicLevelID levelID, ref SpriteCounter ____digitLevel, ref SpriteCounter ____doubleDigitLevel)
|
||||||
|
{
|
||||||
|
switch (levelID)
|
||||||
|
{
|
||||||
|
case > MusicLevelID.Level9P:
|
||||||
|
____digitLevel.gameObject.SetActive(value: false);
|
||||||
|
____doubleDigitLevel.gameObject.SetActive(value: true);
|
||||||
|
____doubleDigitLevel.ChangeText(levelID.GetLevelNum().PadRight(3));
|
||||||
|
break;
|
||||||
|
case >= MusicLevelID.None:
|
||||||
|
____digitLevel.gameObject.SetActive(value: true);
|
||||||
|
____doubleDigitLevel.gameObject.SetActive(value: false);
|
||||||
|
____digitLevel.ChangeText(levelID.GetLevelNum().PadRight(2));
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user