refactor common code

This commit is contained in:
Matt Parker
2025-10-12 23:29:57 +10:00
parent c96fa9308a
commit d73187fde3
8 changed files with 4 additions and 21 deletions

View File

@@ -13,9 +13,6 @@ public static partial class SymbolInfoComponents
public static RichTextLabel GetUnknownTooltip(ISymbol symbol)
{
var label = new RichTextLabel();
label.FitContent = true;
label.AutowrapMode = TextServer.AutowrapMode.Off;
label.SetAnchorsPreset(Control.LayoutPreset.FullRect);
label.PushColor(CachedColors.White);
label.PushFont(MonospaceFont);
label.AddText($"UNHANDLED SYMBOL TYPE: {symbol.GetType().Name} - please create an issue!");