1
0
mirror of synced 2025-02-17 11:18:33 +01:00
KIT! 718ccd4774 Fixed sorting by Id
Sorting by id incorrectly sorted the music order page by alphabetical order instead of numerical order.
2024-03-21 14:45:59 +01:00

31 lines
1.0 KiB
C#

using TaikoSoundEditor.Data;
using TaikoSoundEditor.Commons.Extensions;
using TaikoSoundEditor.Commons.Utils;
using System.Drawing;
using TaikoSoundEditor.Collections;
namespace TaikoSoundEditor.Commons.Controls
{
public class SongCard
{
internal WordList WordList { get; }
public IMusicOrder MusicOrder { get; }
public string Id => $"{MusicOrder.UniqueId}. {MusicOrder.Id}";
public string Title => WordList.GetBySong(MusicOrder.Id).JapaneseText;
public string Subtitle => WordList.GetBySongSub(MusicOrder.Id).JapaneseText;
public string Genre => MusicOrder.Genre.ToString();
public Color Color => Constants.GenreColors[MusicOrder.GenreNo.Clamp(0, Constants.GenreColors.Length - 1)];
public SongCard(WordList wordList, IMusicOrder musicOrder)
{
WordList = wordList;
MusicOrder = musicOrder;
}
public bool IsSelected { get; set; } = false;
public bool IsCut { get; set; } = false;
}
}