Added arrow as default to groups

This commit is contained in:
Chandler Cox
2023-01-21 10:32:37 -06:00
parent 1e98fe2920
commit a91990138b
2 changed files with 7 additions and 2 deletions

View File

@@ -642,7 +642,7 @@ namespace FlaxEditor.CustomEditors.Dedicated
Checked = script.Enabled,
Parent = group.Panel,
Size = new Float2(14, 14),
Bounds = new Rectangle(2, 0, 14, 14),
Bounds = new Rectangle(16, 0, 14, 14),
BoxSize = 12.0f,
Tag = script,
};

View File

@@ -13,7 +13,12 @@ namespace FlaxEditor.CustomEditors.Elements
/// <summary>
/// The drop panel.
/// </summary>
public readonly DropPanel Panel = new DropPanel();
public readonly DropPanel Panel = new DropPanel
{
ArrowImageClosed = new SpriteBrush(Style.Current.ArrowRight),
ArrowImageOpened = new SpriteBrush(Style.Current.ArrowDown),
EnableDropDownIcon = true,
};
/// <inheritdoc />
public override ContainerControl ContainerControl => Panel;