1
0
mirror of synced 2024-11-30 22:17:17 +01:00
TaikoSoundEditor/Controls/SongCard.cs

31 lines
987 B
C#
Raw Normal View History

2023-07-28 21:28:05 +02:00
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;
}
}