BFLYT : Fix loading some values in text pane editor.

This commit is contained in:
KillzXGaming 2020-07-06 19:13:42 -04:00
parent a5ab81cc9b
commit 21067aa72f

View file

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