sub folder for element containers + horizontal panel + shorthands for horizontal and vertical panel
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user