From 071fb61418a8383b87dd51d38a286565f2d21e01 Mon Sep 17 00:00:00 2001 From: KillzXGaming Date: Wed, 20 Apr 2022 18:10:19 -0400 Subject: [PATCH] Bflyt : Fix text pane alignment property for X/Y being swapped --- .../FileFormats/Layout/CAFE/Panes/TXT1.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/File_Format_Library/FileFormats/Layout/CAFE/Panes/TXT1.cs b/File_Format_Library/FileFormats/Layout/CAFE/Panes/TXT1.cs index e50f1108..db2fc575 100644 --- a/File_Format_Library/FileFormats/Layout/CAFE/Panes/TXT1.cs +++ b/File_Format_Library/FileFormats/Layout/CAFE/Panes/TXT1.cs @@ -96,22 +96,22 @@ namespace LayoutBXLYT.Cafe [DisplayName("Horizontal Alignment"), CategoryAttribute("Font")] public OriginX HorizontalAlignment { - get { return (OriginX)((TextAlignment >> 2) & 0x3); } + get { return (OriginY)((TextAlignment) & 0x3); } set { - TextAlignment &= unchecked((byte)(~0xC)); - TextAlignment |= (byte)((byte)(value) << 2); + TextAlignment &= unchecked((byte)(~0x3)); + TextAlignment |= (byte)(value); } } [DisplayName("Vertical Alignment"), CategoryAttribute("Font")] public OriginY VerticalAlignment { - get { return (OriginY)((TextAlignment) & 0x3); } + get { return (OriginX)((TextAlignment >> 2) & 0x3); } set { - TextAlignment &= unchecked((byte)(~0x3)); - TextAlignment |= (byte)(value); + TextAlignment &= unchecked((byte)(~0xC)); + TextAlignment |= (byte)((byte)(value) << 2); } }