diff --git a/MainForm.cs b/MainForm.cs index 86010c9..637c220 100644 --- a/MainForm.cs +++ b/MainForm.cs @@ -76,6 +76,22 @@ namespace TaikoSoundEditor WordSubGrid.SelectedObject = item?.WordSub; WordDetailGrid.SelectedObject = item?.WordDetail; indexChanging = false; + + if (item == null) return; + + simpleBoxLoading = true; + SimpleIdBox.Text = item.MusicInfo.Id; + SimpleTitleBox.Text = item.Word.JapaneseText; + SimpleSubtitleBox.Text = item.WordSub.JapaneseText; + SimpleDetailBox.Text = item.WordDetail.JapaneseText; + SimpleGenreBox.SelectedItem = item.MusicOrder.Genre; + SimpleStarEasyBox.Value = item.MusicInfo.StarEasy; + SimpleStarNormalBox.Value = item.MusicInfo.StarNormal; + SimpleStarHardBox.Value = item.MusicInfo.StarHard; + SimpleStarManiaBox.Value = item.MusicInfo.StarMania; + SimpleStarUraBox.Value = item.MusicInfo.StarUra; + SimpleStarUraBox.Enabled = item.MusicAttribute.CanPlayUra; + simpleBoxLoading = false; } private bool indexChanging = false; @@ -194,7 +210,7 @@ namespace TaikoSoundEditor WordList.GetBySong(item.Id).JapaneseText = SimpleTitleBox.Text; WordList.GetBySongSub(item.Id).JapaneseText = SimpleSubtitleBox.Text; WordList.GetBySongDetail(item.Id).JapaneseText = SimpleDetailBox.Text; - MusicOrders.GetByUniqueId(item.UniqueId).Genre = (Genre)SimpleGenreBox.SelectedItem; + MusicOrders.GetByUniqueId(item.UniqueId).Genre = (Genre)(SimpleGenreBox.SelectedItem ?? Genre.Pop); item.StarEasy = (int)SimpleStarEasyBox.Value; item.StarNormal = (int)SimpleStarNormalBox.Value; item.StarHard = (int)SimpleStarHardBox.Value; @@ -202,6 +218,23 @@ namespace TaikoSoundEditor item.StarUra = (int)SimpleStarUraBox.Value; return; } + else if(NewSoundsBox.SelectedItem!=null) + { + var item = NewSoundsBox.SelectedItem as NewSongData; + + Logger.Info($"Simple Box changed : {(sender as Control).Name} to value {(sender as Control).Text}"); + + item.Word.JapaneseText = SimpleTitleBox.Text; + item.WordSub.JapaneseText = SimpleSubtitleBox.Text; + item.WordDetail.JapaneseText = SimpleDetailBox.Text; + item.MusicOrder.Genre = (Genre)(SimpleGenreBox.SelectedItem ?? Genre.Pop); + item.MusicInfo.StarEasy=(int)SimpleStarEasyBox.Value; + item.MusicInfo.StarNormal=(int)SimpleStarNormalBox.Value; + item.MusicInfo.StarHard=(int)SimpleStarHardBox.Value; + item.MusicInfo.StarMania=(int)SimpleStarManiaBox.Value; + item.MusicInfo.StarUra = (int)SimpleStarUraBox.Value; + return; + } }); } diff --git a/Properties/PublishProfiles/FolderProfile.pubxml.user b/Properties/PublishProfiles/FolderProfile.pubxml.user index b1a73b2..f99835d 100644 --- a/Properties/PublishProfiles/FolderProfile.pubxml.user +++ b/Properties/PublishProfiles/FolderProfile.pubxml.user @@ -4,7 +4,7 @@ https://go.microsoft.com/fwlink/?LinkID=208121. --> - True|2023-07-22T16:07:39.3718711Z;True|2023-07-22T19:06:41.2393088+03:00;True|2023-07-22T12:07:26.2620601+03:00;True|2023-07-22T12:06:39.9230498+03:00;True|2023-07-22T11:29:18.0153916+03:00;True|2023-07-22T08:23:07.5000923+03:00;True|2023-07-21T20:03:15.6598520+03:00;True|2023-07-21T19:41:13.2800435+03:00;True|2023-07-19T13:08:33.4726289+03:00;True|2023-07-19T12:08:17.2430335+03:00;True|2023-07-18T09:38:50.7615921+03:00;True|2023-07-18T09:25:23.0403589+03:00;True|2023-07-17T17:57:08.1469738+03:00;True|2023-07-17T11:28:41.9554245+03:00;True|2023-07-17T11:15:26.2194507+03:00; + True|2023-07-28T16:30:15.3174413Z;True|2023-07-22T19:07:39.3718711+03:00;True|2023-07-22T19:06:41.2393088+03:00;True|2023-07-22T12:07:26.2620601+03:00;True|2023-07-22T12:06:39.9230498+03:00;True|2023-07-22T11:29:18.0153916+03:00;True|2023-07-22T08:23:07.5000923+03:00;True|2023-07-21T20:03:15.6598520+03:00;True|2023-07-21T19:41:13.2800435+03:00;True|2023-07-19T13:08:33.4726289+03:00;True|2023-07-19T12:08:17.2430335+03:00;True|2023-07-18T09:38:50.7615921+03:00;True|2023-07-18T09:25:23.0403589+03:00;True|2023-07-17T17:57:08.1469738+03:00;True|2023-07-17T11:28:41.9554245+03:00;True|2023-07-17T11:15:26.2194507+03:00; \ No newline at end of file