@@ -30,6 +30,11 @@ namespace FlaxEngine.GUI
|
||||
/// </summary>
|
||||
protected Float2 _offset;
|
||||
|
||||
/// <summary>
|
||||
/// The child controls alignment within layout area.
|
||||
/// </summary>
|
||||
protected TextAlignment _alignment = TextAlignment.Near;
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the left margin.
|
||||
/// </summary>
|
||||
@@ -172,6 +177,23 @@ namespace FlaxEngine.GUI
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the child controls alignment within layout area.
|
||||
/// </summary>
|
||||
[EditorOrder(50), VisibleIf(nameof(AutoSize), true)]
|
||||
public TextAlignment Alignment
|
||||
{
|
||||
get => _alignment;
|
||||
set
|
||||
{
|
||||
if (_alignment != value)
|
||||
{
|
||||
_alignment = value;
|
||||
PerformLayout();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="PanelWithMargins"/> class.
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user