UI HUGE UPDATE

This commit is contained in:
FloatGaming
2026-06-25 11:48:56 +08:00
parent bd2a06f4c7
commit b2a1e307a4
1806 changed files with 359863 additions and 20822 deletions
@@ -387,15 +387,17 @@ public class SongSelectUI : MonoBehaviour
{
songButton.thisSong_so = sd != null ? sd : song;
int diffForDisplay = bestDiff >= 0 ? bestDiff : song.difficultyID;
songButton.SetButtonData(song.songName, bestTotal, diffForDisplay, song.illustration, song.songID);
Sprite resolvedIllustration = sd != null ? sd.GetResolvedIllustration() : song.GetResolvedIllustration();
songButton.SetButtonData(song.songName, bestTotal, diffForDisplay, resolvedIllustration, song.songID);
}
Image songImage = songButtonObj.GetComponentInChildren<Image>();
TMP_Text[] texts = songButtonObj.GetComponentsInChildren<TMP_Text>();
if (songImage != null && song.illustration != null)
Sprite displayIllustration = sd != null ? sd.GetResolvedIllustration() : song.GetResolvedIllustration();
if (songImage != null && displayIllustration != null)
{
songImage.sprite = song.illustration;
songImage.sprite = displayIllustration;
songImage.enabled = true;
}