1
0
mirror of synced 2024-11-24 04:20:10 +01:00
TaikoSoundEditor/Controls/SongCard.cs
2023-07-28 22:28:05 +03:00

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;
}
}