draw rubber band on top of items
This commit is contained in:
@@ -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);
|
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 />
|
/// <inheritdoc />
|
||||||
@@ -759,16 +764,6 @@ namespace FlaxEditor.Content.GUI
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <inheritdoc />
|
|
||||||
public override void DrawSelf()
|
|
||||||
{
|
|
||||||
base.DrawSelf();
|
|
||||||
if (_isRubberBandSpanning)
|
|
||||||
{
|
|
||||||
Render2D.DrawRectangle(_rubberBandRectangle, Color.White);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
protected override void PerformLayoutBeforeChildren()
|
protected override void PerformLayoutBeforeChildren()
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user