UI HUGE UPDATE
This commit is contained in:
@@ -969,6 +969,70 @@ public class SongData : ScriptableObject
|
||||
return null;
|
||||
}
|
||||
|
||||
public SongDlcContentSO GetResolvedDlcContent()
|
||||
{
|
||||
return SongDlcContentResolver.GetContent(this);
|
||||
}
|
||||
|
||||
public Sprite GetResolvedIllustration()
|
||||
{
|
||||
SongDlcContentSO content = GetResolvedDlcContent();
|
||||
return content != null && content.illustration != null ? content.illustration : illustration;
|
||||
}
|
||||
|
||||
public Sprite GetResolvedBackgroundPic()
|
||||
{
|
||||
SongDlcContentSO content = GetResolvedDlcContent();
|
||||
return content != null && content.backgroudPIC != null ? content.backgroudPIC : backgroudPIC;
|
||||
}
|
||||
|
||||
public Sprite GetResolvedFullscreenSongPicture()
|
||||
{
|
||||
SongDlcContentSO content = GetResolvedDlcContent();
|
||||
return content != null && content.fullscreen_songPicture != null ? content.fullscreen_songPicture : fullscreen_songPicture;
|
||||
}
|
||||
|
||||
public Sprite GetResolvedCardProfileImage()
|
||||
{
|
||||
SongDlcContentSO content = GetResolvedDlcContent();
|
||||
return content != null && content.card_profileImage != null ? content.card_profileImage : card_profileImage;
|
||||
}
|
||||
|
||||
public Sprite GetResolvedRightBottomImage()
|
||||
{
|
||||
SongDlcContentSO content = GetResolvedDlcContent();
|
||||
return content != null && content.right_pic_bottom_image != null ? content.right_pic_bottom_image : right_pic_bottom_image;
|
||||
}
|
||||
|
||||
public Sprite GetResolvedRightTopImage()
|
||||
{
|
||||
SongDlcContentSO content = GetResolvedDlcContent();
|
||||
return content != null && content.right_pic_top_image != null ? content.right_pic_top_image : right_pic_top_image;
|
||||
}
|
||||
|
||||
public AudioClip GetResolvedAudioFile()
|
||||
{
|
||||
SongDlcContentSO content = GetResolvedDlcContent();
|
||||
return content != null && content.audioFile != null ? content.audioFile : audioFile;
|
||||
}
|
||||
|
||||
public AudioClip GetResolvedPreviewAudio()
|
||||
{
|
||||
SongDlcContentSO content = GetResolvedDlcContent();
|
||||
return content != null && content.audio_previewAudio != null ? content.audio_previewAudio : audio_previewAudio;
|
||||
}
|
||||
|
||||
public TextAsset GetResolvedChartFile(int difficulty)
|
||||
{
|
||||
TextAsset overrideChart = SongDlcContentResolver.GetChartFile(this, difficulty);
|
||||
return overrideChart != null ? overrideChart : GetChartFile(difficulty);
|
||||
}
|
||||
|
||||
public AudioClip GetResolvedSettlementMusic()
|
||||
{
|
||||
return SongDlcContentResolver.GetSettlementMusic(this);
|
||||
}
|
||||
|
||||
public void SyncChartFileMap()
|
||||
{
|
||||
if (chartFileMap == null) chartFileMap = new Dictionary<int, TextAsset>();
|
||||
|
||||
Reference in New Issue
Block a user