UI HUGE UPDATE
This commit is contained in:
@@ -111,6 +111,9 @@ public class SongButton : MonoBehaviour
|
||||
sd = SongDataLibrary.Instance.GetSongDataByID(songID) ?? sd;
|
||||
if (sd != null)
|
||||
{
|
||||
Sprite resolvedBackground = sd.GetResolvedBackgroundPic();
|
||||
Sprite resolvedProfile = sd.GetResolvedCardProfileImage();
|
||||
|
||||
if (songNameText != null) songNameText.text = sd.songName;
|
||||
|
||||
if (multiNameText != null)
|
||||
@@ -173,12 +176,12 @@ public class SongButton : MonoBehaviour
|
||||
// Set rank images for the first three difficulties
|
||||
SetDifficultyRankImages(sd);
|
||||
|
||||
if (buttonImage != null) buttonImage.sprite = sd.backgroudPIC;
|
||||
if (buttonImage != null) buttonImage.sprite = resolvedBackground;
|
||||
|
||||
if (profileImage != null)
|
||||
{
|
||||
profileImage.sprite = sd.card_profileImage;
|
||||
if (sd.card_profileImage != null)
|
||||
profileImage.sprite = resolvedProfile;
|
||||
if (resolvedProfile != null)
|
||||
{
|
||||
profileImage.color = new Color(profileImage.color.r, profileImage.color.g, profileImage.color.b, 1f);
|
||||
profileImage.enabled = true;
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user