Exemple #1
0
        protected override void Dispose(bool disposeManagedResources)
        {
            base.Dispose(disposeManagedResources);

            if (DrawableText != null)
            {
                RemoveAndDispose(ref DrawableText);
                DrawableText = null;
            }
        }
Exemple #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();
 }