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

added simple view for new songs

This commit is contained in:
NotImplementedLife 2023-07-28 19:40:31 +03:00
parent 205c6b4bd8
commit e8e6693306
2 changed files with 35 additions and 2 deletions

View File

@ -76,6 +76,22 @@ namespace TaikoSoundEditor
WordSubGrid.SelectedObject = item?.WordSub; WordSubGrid.SelectedObject = item?.WordSub;
WordDetailGrid.SelectedObject = item?.WordDetail; WordDetailGrid.SelectedObject = item?.WordDetail;
indexChanging = false; 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; private bool indexChanging = false;
@ -194,7 +210,7 @@ namespace TaikoSoundEditor
WordList.GetBySong(item.Id).JapaneseText = SimpleTitleBox.Text; WordList.GetBySong(item.Id).JapaneseText = SimpleTitleBox.Text;
WordList.GetBySongSub(item.Id).JapaneseText = SimpleSubtitleBox.Text; WordList.GetBySongSub(item.Id).JapaneseText = SimpleSubtitleBox.Text;
WordList.GetBySongDetail(item.Id).JapaneseText = SimpleDetailBox.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.StarEasy = (int)SimpleStarEasyBox.Value;
item.StarNormal = (int)SimpleStarNormalBox.Value; item.StarNormal = (int)SimpleStarNormalBox.Value;
item.StarHard = (int)SimpleStarHardBox.Value; item.StarHard = (int)SimpleStarHardBox.Value;
@ -202,6 +218,23 @@ namespace TaikoSoundEditor
item.StarUra = (int)SimpleStarUraBox.Value; item.StarUra = (int)SimpleStarUraBox.Value;
return; 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;
}
}); });
} }

View File

@ -4,7 +4,7 @@ https://go.microsoft.com/fwlink/?LinkID=208121.
--> -->
<Project> <Project>
<PropertyGroup> <PropertyGroup>
<History>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;</History> <History>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;</History>
<LastFailureDetails /> <LastFailureDetails />
</PropertyGroup> </PropertyGroup>
</Project> </Project>