BFLYT : Fix loading some values in text pane editor.
This commit is contained in:
parent
a5ab81cc9b
commit
21067aa72f
@ -60,7 +60,7 @@ namespace LayoutBXLYT
|
|||||||
scaleYUD.Value = pane.FontSize.Y;
|
scaleYUD.Value = pane.FontSize.Y;
|
||||||
|
|
||||||
italicTiltUD.Value = pane.ItalicTilt;
|
italicTiltUD.Value = pane.ItalicTilt;
|
||||||
italicTiltUD.Value = sliderItalicTilt.Value;
|
sliderItalicTilt.Value = (int)italicTiltUD.Value;
|
||||||
italicTiltUD.Maximum = sliderItalicTilt.Maximum;
|
italicTiltUD.Maximum = sliderItalicTilt.Maximum;
|
||||||
|
|
||||||
vertexColorTopBottomBox1.TopColor = activePane.FontTopColor.Color;
|
vertexColorTopBottomBox1.TopColor = activePane.FontTopColor.Color;
|
||||||
@ -71,8 +71,6 @@ namespace LayoutBXLYT
|
|||||||
spacingXTB.Value = pane.CharacterSpace;
|
spacingXTB.Value = pane.CharacterSpace;
|
||||||
spacingYTB.Value = pane.LineSpace;
|
spacingYTB.Value = pane.LineSpace;
|
||||||
|
|
||||||
// pane.TextBoxName
|
|
||||||
|
|
||||||
alighmentHCB.Bind(typeof(OriginX), pane, "HorizontalAlignment");
|
alighmentHCB.Bind(typeof(OriginX), pane, "HorizontalAlignment");
|
||||||
alighmentVCB.Bind(typeof(OriginY), pane, "VerticalAlignment");
|
alighmentVCB.Bind(typeof(OriginY), pane, "VerticalAlignment");
|
||||||
alighmentLineCB.Bind(typeof(LineAlign), pane, "LineAlignment");
|
alighmentLineCB.Bind(typeof(LineAlign), pane, "LineAlignment");
|
||||||
@ -132,6 +130,7 @@ namespace LayoutBXLYT
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
sliderItalicTilt.Value = (int)italicTiltUD.Value;
|
sliderItalicTilt.Value = (int)italicTiltUD.Value;
|
||||||
|
activePane.ItalicTilt = (float)italicTiltUD.Value;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void sliderItalicTilt_ValueChanged(object sender, EventArgs e) {
|
private void sliderItalicTilt_ValueChanged(object sender, EventArgs e) {
|
||||||
@ -139,6 +138,7 @@ namespace LayoutBXLYT
|
|||||||
|
|
||||||
changing = true;
|
changing = true;
|
||||||
italicTiltUD.Value = sliderItalicTilt.Value;
|
italicTiltUD.Value = sliderItalicTilt.Value;
|
||||||
|
activePane.ItalicTilt = (float)italicTiltUD.Value;
|
||||||
parentEditor.PropertyChanged?.Invoke(sender, e);
|
parentEditor.PropertyChanged?.Invoke(sender, e);
|
||||||
changing = false;
|
changing = false;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user