Bflyt : Fix text pane alignment property for X/Y being swapped

This commit is contained in:
KillzXGaming 2022-04-20 18:10:19 -04:00
parent dfea7c72a8
commit 071fb61418

View file

@ -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);
}
}