1
0
mirror of synced 2025-02-20 04:31:01 +01:00

31 lines
1.0 KiB
C#
Raw Normal View History

2023-10-01 19:40:41 +03:00
using TaikoSoundEditor.Data;
using TaikoSoundEditor.Commons.Extensions;
using TaikoSoundEditor.Commons.Utils;
using System.Drawing;
using TaikoSoundEditor.Collections;
2023-07-28 22:28:05 +03:00
2023-10-01 19:40:41 +03:00
namespace TaikoSoundEditor.Commons.Controls
2023-07-28 22:28:05 +03:00
{
public class SongCard
{
internal WordList WordList { get; }
2023-10-01 19:40:41 +03:00
public IMusicOrder MusicOrder { get; }
2023-07-28 22:28:05 +03:00
public string Id => $"{MusicOrder.UniqueId}. {MusicOrder.Id}";
2023-07-28 22:28:05 +03:00
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)];
2023-10-01 19:40:41 +03:00
public SongCard(WordList wordList, IMusicOrder musicOrder)
2023-07-28 22:28:05 +03:00
{
WordList = wordList;
MusicOrder = musicOrder;
}
public bool IsSelected { get; set; } = false;
public bool IsCut { get; set; } = false;
}
}