31 lines
987 B
C#
31 lines
987 B
C#
|
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
using TaikoSoundEditor.Data;
|
|||
|
using TaikoSoundEditor.Extensions;
|
|||
|
using TaikoSoundEditor.Utils;
|
|||
|
|
|||
|
namespace TaikoSoundEditor.Controls
|
|||
|
{
|
|||
|
public class SongCard
|
|||
|
{
|
|||
|
internal WordList WordList { get; }
|
|||
|
public MusicOrder 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, MusicOrder musicOrder)
|
|||
|
{
|
|||
|
WordList = wordList;
|
|||
|
MusicOrder = musicOrder;
|
|||
|
}
|
|||
|
|
|||
|
public bool IsSelected { get; set; } = false;
|
|||
|
|
|||
|
public bool IsCut { get; set; } = false;
|
|||
|
}
|
|||
|
}
|