コード例 #1
0
        /// <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);
        }
コード例 #2
0
 /// <summary>
 /// remove text from drawtextcontinuous.
 /// </summary>
 /// <param name="d"></param>
 public static void RemoveTextContinuous(DrawableString d)
 {
     textPerFrame.Remove(d);
 }
コード例 #3
0
ファイル: UI.cs プロジェクト: anikan/LeafMeAlone
 /// <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);
 }