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

fixed music attribute initialization issues

This commit is contained in:
NotImplementedLife 2023-07-21 19:40:13 +03:00
parent 6024970ebd
commit b030ac6c38
4 changed files with 13 additions and 9 deletions

View File

@ -31,14 +31,14 @@ namespace TaikoSoundEditor.Data
[JsonPropertyName("danceFeverBg")] public string DanceFeverBg { get; set; } = "";
[JsonPropertyName("rendaEffect")] public string RendaEffect { get; set; } = "";
[JsonPropertyName("fever")] public string Fever { get; set; } = "";
[JsonPropertyName("donBg1p1")] public string DonBg1p1 { get; set; }
[JsonPropertyName("donBg2p1")] public string DonBg2p1 { get; set; }
[JsonPropertyName("dancerDai1")] public string DancerDai1 { get; set; }
[JsonPropertyName("dancer1")] public string Dancer1 { get; set; }
[JsonPropertyName("danceNormalBg1")] public string DanceNormalBg1 { get; set; }
[JsonPropertyName("danceFeverBg1")] public string DanceFeverBg1 { get; set; }
[JsonPropertyName("rendaEffect1")] public string RendaEffect1 { get; set; }
[JsonPropertyName("fever1")] public string Fever1 { get; set; }
[JsonPropertyName("donBg1p1")] public string DonBg1p1 { get; set; } = "";
[JsonPropertyName("donBg2p1")] public string DonBg2p1 { get; set; } = "";
[JsonPropertyName("dancerDai1")] public string DancerDai1 { get; set; } = "";
[JsonPropertyName("dancer1")] public string Dancer1 { get; set; } = "";
[JsonPropertyName("danceNormalBg1")] public string DanceNormalBg1 { get; set; } = "";
[JsonPropertyName("danceFeverBg1")] public string DanceFeverBg1 { get; set; } = "";
[JsonPropertyName("rendaEffect1")] public string RendaEffect1 { get; set; } = "";
[JsonPropertyName("fever1")] public string Fever1 { get; set; } = "";
public MusicAttribute Clone()
{

1
MainForm.Designer.cs generated
View File

@ -322,6 +322,7 @@
//
// RemoveSongButton
//
this.RemoveSongButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.RemoveSongButton.Location = new System.Drawing.Point(220, 343);
this.RemoveSongButton.Name = "RemoveSongButton";
this.RemoveSongButton.Size = new System.Drawing.Size(75, 23);

View File

@ -459,6 +459,9 @@ namespace TaikoSoundEditor
private string JsonFix(string json)
{
return json
.Replace("\u0022 ", "\\\"")
.Replace("\u0026 ", "\\&")
.Replace("\r\n ", "\r\n\t\t")
.Replace("\r\n ", "\r\n\t\t")
.Replace("{\r\n \"items\": [", "{\"items\":[")
.Replace(" }", "\t}")

View File

@ -4,7 +4,7 @@ https://go.microsoft.com/fwlink/?LinkID=208121.
-->
<Project>
<PropertyGroup>
<History>True|2023-07-19T09:08:17.2430335Z;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-19T10:08:33.4726289Z;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 />
</PropertyGroup>
</Project>