コード例 #1
0
        /// <summary>
        /// Initialises a new instance of the <see cref="TextGraphics"/> class.
        /// </summary>
        public TextGraphics(string text, SpriteFont font, Color color, int maxWidth, FontFlow fontFlow, PositionProfile positionProfile)
            : base(positionProfile)
        {
            this.Text     = text;
            this.Font     = font;
            this.Color    = color;
            this.MaxWidth = maxWidth;
            this.FontFlow = fontFlow;

            this.displayText = text;
        }
コード例 #2
0
 public FontGraphics(string text, int maxWidth, int gutter, BasePositionProfile positionProfile,
                     FontFlow fontFlow, Colour colour, SpriteFont font)
     : base(positionProfile)
 {
     this.text        = text;
     this.displayText = text;
     this.maxWidth    = maxWidth;
     this.gutter      = gutter;
     this.fontFlow    = fontFlow;
     this.colour      = colour;
     this.font        = font;
     this.scale       = 1;
 }
コード例 #3
0
 /// <summary>
 /// Initialises a new instance of the <see cref="Text"/> class.
 /// </summary>
 public Text(string name, string value, SpriteFont font, Color color, int maxWidth, FontFlow fontFlow, Border border, PositionProfile positionProfile)
     : base(name, 0, 0, border, positionProfile)
 {
     this.Value    = value;
     this.Font     = font;
     this.Color    = color;
     this.MaxWidth = maxWidth;
     this.FontFlow = fontFlow;
 }