mirror of
https://github.com/KillzXGaming/Switch-Toolbox
synced 2024-11-22 04:23:09 +00:00
Bflyt : Fix text pane alignment property for X/Y being swapped
This commit is contained in:
parent
dfea7c72a8
commit
071fb61418
1 changed files with 6 additions and 6 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue