1
0
mirror of synced 2024-11-27 21:10:48 +01:00

added missing word details

This commit is contained in:
NotImplementedLife 2023-07-30 09:02:01 +03:00
parent 68fa74593f
commit 69b63c5803

View File

@ -124,6 +124,18 @@ namespace TaikoSoundEditor
return !MusicInfos.Items.Any(mi => mi.Id == key); return !MusicInfos.Items.Any(mi => mi.Id == key);
});*/ });*/
foreach(var mi in MusicInfos.Items)
{
var songId = mi.Id;
if (WordList.GetBySong(songId) != null)
WordList.Items.Add(new Word { Key = $"song_{songId}", JapaneseText="" });
if (WordList.GetBySongSub(songId) != null)
WordList.Items.Add(new Word { Key = $"song_sub_{songId}", JapaneseText = "" });
if (WordList.GetBySongDetail(songId) != null)
WordList.Items.Add(new Word { Key = $"song_detail_{songId}", JapaneseText = "" });
}
MusicOrderViewer.WordList = WordList; MusicOrderViewer.WordList = WordList;
foreach (var musicOrder in MusicOrders.Items.Where(_ => MusicInfos.Items.Any(mi => mi.UniqueId == _.UniqueId))) foreach (var musicOrder in MusicOrders.Items.Where(_ => MusicInfos.Items.Any(mi => mi.UniqueId == _.UniqueId)))
{ {