add a hint to the Output Log if there are no messages shown because of filters

This commit is contained in:
xxSeys1
2025-04-10 00:01:31 +02:00
parent a9a9057304
commit 9e23c324bf

View File

@@ -767,6 +767,24 @@ namespace FlaxEditor.Windows
}
}
/// <inheritdoc/>
public override void Draw()
{
base.Draw();
bool showHint = (((int)LogType.Info & _logTypeShowMask) == 0 &&
((int)LogType.Warning & _logTypeShowMask) == 0 &&
((int)LogType.Error & _logTypeShowMask) == 0) ||
String.IsNullOrEmpty(_output.Text);
if (showHint)
{
var textRect = _output.Bounds;
var style = Style.Current;
Render2D.DrawText(style.FontMedium, "No log level filter active or no entries that apply to the current filter exist.", textRect, style.ForegroundGrey, TextAlignment.Center, TextAlignment.Center, TextWrapping.WrapWords);
}
}
/// <inheritdoc />
public override bool OnKeyDown(KeyboardKeys key)
{