/// <summary> /// Draw a text for every frame until removetextcontinuous is used.. /// </summary> public static DrawableString DrawTextContinuous(string text, TextType type, RectangleF pos, SpriteTextRenderer.TextAlignment alignment, Color color) { DrawableString d = new DrawableString(text, type, pos, alignment, color); textPerFrame.Add(d); return(d); }
/// <summary> /// remove text from drawtextcontinuous. /// </summary> /// <param name="d"></param> public static void RemoveTextContinuous(DrawableString d) { textPerFrame.Remove(d); }
/// <summary> /// Text UI. /// </summary> public UI(string text, UIManagerSpriteRenderer.TextType type, RectangleF offset, SpriteTextRenderer.TextAlignment alignment, Color color) { UIText = UIManagerSpriteRenderer.DrawTextContinuous(text, type, offset, alignment, color); }