mirror of
https://github.com/KillzXGaming/Switch-Toolbox
synced 2024-11-22 20:43:09 +00:00
BFLYT : Fix loading some values in text pane editor.
This commit is contained in:
parent
a5ab81cc9b
commit
21067aa72f
1 changed files with 3 additions and 3 deletions
|
@ -60,7 +60,7 @@ namespace LayoutBXLYT
|
|||
scaleYUD.Value = pane.FontSize.Y;
|
||||
|
||||
italicTiltUD.Value = pane.ItalicTilt;
|
||||
italicTiltUD.Value = sliderItalicTilt.Value;
|
||||
sliderItalicTilt.Value = (int)italicTiltUD.Value;
|
||||
italicTiltUD.Maximum = sliderItalicTilt.Maximum;
|
||||
|
||||
vertexColorTopBottomBox1.TopColor = activePane.FontTopColor.Color;
|
||||
|
@ -71,8 +71,6 @@ namespace LayoutBXLYT
|
|||
spacingXTB.Value = pane.CharacterSpace;
|
||||
spacingYTB.Value = pane.LineSpace;
|
||||
|
||||
// pane.TextBoxName
|
||||
|
||||
alighmentHCB.Bind(typeof(OriginX), pane, "HorizontalAlignment");
|
||||
alighmentVCB.Bind(typeof(OriginY), pane, "VerticalAlignment");
|
||||
alighmentLineCB.Bind(typeof(LineAlign), pane, "LineAlignment");
|
||||
|
@ -132,6 +130,7 @@ namespace LayoutBXLYT
|
|||
return;
|
||||
|
||||
sliderItalicTilt.Value = (int)italicTiltUD.Value;
|
||||
activePane.ItalicTilt = (float)italicTiltUD.Value;
|
||||
}
|
||||
|
||||
private void sliderItalicTilt_ValueChanged(object sender, EventArgs e) {
|
||||
|
@ -139,6 +138,7 @@ namespace LayoutBXLYT
|
|||
|
||||
changing = true;
|
||||
italicTiltUD.Value = sliderItalicTilt.Value;
|
||||
activePane.ItalicTilt = (float)italicTiltUD.Value;
|
||||
parentEditor.PropertyChanged?.Invoke(sender, e);
|
||||
changing = false;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue