Update meta info data structure.

This commit is contained in:
2022-11-17 12:04:17 +08:00
parent d89e5a2e68
commit a7e6522a57
5 changed files with 22 additions and 26 deletions

View File

@@ -47,11 +47,11 @@ namespace Cryville.Crtr.Browsing {
_cover.sprite = m_coverPlaceholder;
if (data.Cover != null) data.Cover.Destination = DisplayCover;
var meta = data.Meta;
_title.text = string.Format("{0}\n{1}", meta.song.name, meta.chart.name);
_title.text = string.Format("{0}\n{1}", meta.song.name, meta.name);
_desc.text = string.Format(
"Music artist: {0}\nCharter: {1}\nLength: {2}\nNote Count: {3}",
meta.song.author, meta.chart.author,
TimeSpan.FromSeconds(meta.chart.length).ToString(3), meta.note_count
meta.song.author, meta.author,
TimeSpan.FromSeconds(meta.length).ToString(3), meta.note_count
);
}
private void DisplayCover(bool succeeded, Texture2D tex) {