draw rubber band on top of items

This commit is contained in:
nothingTVatYT
2024-02-14 23:48:30 +01:00
parent defe7454ce
commit 355835439a

View File

@@ -603,6 +603,11 @@ namespace FlaxEditor.Content.GUI
{
Render2D.DrawText(style.FontSmall, IsSearching ? "No results" : "Empty", new Rectangle(Float2.Zero, Size), style.ForegroundDisabled, TextAlignment.Center, TextAlignment.Center);
}
if (_isRubberBandSpanning)
{
Render2D.DrawRectangle(_rubberBandRectangle, Color.White);
}
}
/// <inheritdoc />
@@ -759,16 +764,6 @@ namespace FlaxEditor.Content.GUI
return false;
}
/// <inheritdoc />
public override void DrawSelf()
{
base.DrawSelf();
if (_isRubberBandSpanning)
{
Render2D.DrawRectangle(_rubberBandRectangle, Color.White);
}
}
/// <inheritdoc />
protected override void PerformLayoutBeforeChildren()
{