mirror of
https://github.com/MewoLab/AquaDX.git
synced 2025-10-26 04:22:38 +00:00
fix: Level display shift when level number not match display level
This commit is contained in:
parent
1ad4ac2d63
commit
9b7f2b3a79
@ -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;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user