protected override void Dispose(bool disposeManagedResources) { base.Dispose(disposeManagedResources); if (DrawableText != null) { RemoveAndDispose(ref DrawableText); DrawableText = null; } }
public void Initialize() { DrawableText = AddDisposable(new TextRender.Text(Gui.TextRenderer, Content) { Position = Position, Size = Size, TextAlignment = TextAlignment, FontName = FontName, FontSize = FontSize }); DrawableText.Initialize(); }