Add IconsScale to editor interface options

This commit is contained in:
Wojtek Figat
2021-01-03 22:13:31 +01:00
parent 4043e35b10
commit bf9204f146
12 changed files with 24 additions and 27 deletions

View File

@@ -27,6 +27,8 @@ namespace FlaxEditor.GUI
/// <inheritdoc />
protected override void Arrange()
{
base.Arrange();
// Arrange buttons
float x = DefaultButtonsMargin;
for (int i = 0; i < _children.Count; i++)
@@ -50,10 +52,11 @@ namespace FlaxEditor.GUI
return;
var lastToolstripButton = toolstrip.LastButton;
var parentSize = Parent.Size;
Bounds = new Rectangle
(
new Vector2(lastToolstripButton.Right + 8.0f, 0),
new Vector2(Parent.Width - X - 8.0f, 32)
new Vector2(parentSize.X - X - 8.0f, toolstrip.Height)
);
}
}