Ejemplo n.º 1
0
        protected override void Dispose(bool disposeManagedResources)
        {
            base.Dispose(disposeManagedResources);

            if (DrawableText != null)
            {
                RemoveAndDispose(ref DrawableText);
                DrawableText = null;
            }
        }
Ejemplo n.º 2
0
 public void Initialize()
 {
     DrawableText = AddDisposable(new TextRender.Text(Gui.TextRenderer, Content)
     {
         Position      = Position,
         Size          = Size,
         TextAlignment = TextAlignment,
         FontName      = FontName,
         FontSize      = FontSize
     });
     DrawableText.Initialize();
 }