sub folder for element containers + horizontal panel + shorthands for horizontal and vertical panel

This commit is contained in:
honzapatCZ
2021-03-04 23:39:38 +01:00
parent 3cba76277b
commit 06f3d68716
9 changed files with 43 additions and 0 deletions

View File

@@ -102,6 +102,28 @@ namespace FlaxEditor.CustomEditors
Editor.Instance.ProjectCache.SetCollapsedGroup(panel.HeaderText, panel.IsClosed);
}
/// <summary>
/// Adds new horizontal panel element.
/// </summary>
/// <returns>The created element.</returns>
public HorizontalPanelElement HorizontalPanel()
{
var element = new HorizontalPanelElement();
OnAddElement(element);
return element;
}
/// <summary>
/// Adds new horizontal panel element.
/// </summary>
/// <returns>The created element.</returns>
public VerticalPanelElement VerticalPanel()
{
var element = new VerticalPanelElement();
OnAddElement(element);
return element;
}
/// <summary>
/// Adds new button element.
/// </summary>