From 355835439a05339e54f4a863206eced8e763c30e Mon Sep 17 00:00:00 2001 From: nothingTVatYT <34131388+nothingTVatYT@users.noreply.github.com> Date: Wed, 14 Feb 2024 23:48:30 +0100 Subject: [PATCH] draw rubber band on top of items --- Source/Editor/Content/GUI/ContentView.cs | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/Source/Editor/Content/GUI/ContentView.cs b/Source/Editor/Content/GUI/ContentView.cs index ab31530f1..26d89aac0 100644 --- a/Source/Editor/Content/GUI/ContentView.cs +++ b/Source/Editor/Content/GUI/ContentView.cs @@ -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); + } } /// @@ -759,16 +764,6 @@ namespace FlaxEditor.Content.GUI return false; } - /// - public override void DrawSelf() - { - base.DrawSelf(); - if (_isRubberBandSpanning) - { - Render2D.DrawRectangle(_rubberBandRectangle, Color.White); - } - } - /// protected override void PerformLayoutBeforeChildren() {