From 1d77d999688a97f153d4c4e5ce5b1eb7cb4d1cc6 Mon Sep 17 00:00:00 2001 From: KillzXGaming Date: Thu, 17 Sep 2020 17:12:03 -0400 Subject: [PATCH] BXLAN : Fix setters/getters for frame size and loop data. --- .../FileFormats/Layout/Common.cs | 22 +++++++++++-------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/File_Format_Library/FileFormats/Layout/Common.cs b/File_Format_Library/FileFormats/Layout/Common.cs index e36ae8a9..07076c0b 100644 --- a/File_Format_Library/FileFormats/Layout/Common.cs +++ b/File_Format_Library/FileFormats/Layout/Common.cs @@ -1829,8 +1829,19 @@ namespace LayoutBXLYT public class BxlanPAI1 : SectionCommon { - public ushort FrameSize; - public bool Loop; + [DisplayName("Frame Count"), CategoryAttribute("Frames")] + public ushort FrameSize { get; set; } + + [DisplayName("Loop"), CategoryAttribute("Frames")] + public bool Loop { get; set; } + + [Editor(@"System.Windows.Forms.Design.StringCollectionEditor," + + "System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", + typeof(System.Drawing.Design.UITypeEditor))] + [DisplayName("Textures"), CategoryAttribute("Textures")] + public List Textures { get; set; } = new List(); + + public List Entries = new List(); public bool ContainsEntry(string name) { @@ -1841,13 +1852,6 @@ namespace LayoutBXLYT { return new BxlanPaiEntry(); } - - [Editor(@"System.Windows.Forms.Design.StringCollectionEditor," + - "System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", - typeof(System.Drawing.Design.UITypeEditor))] - public List Textures { get; set; } = new List(); - - public List Entries = new List(); } public class BxlanPaiEntry