Exemplo n.º 1
0
 public LNLabel(string text, LNLabel.LabelType type, LFont spriteFont)
     : base()
 {
     this._spriteFont = spriteFont;
     this._type = type;
     SetString(text);
     this.SetNodeSize(_spriteFont.StringWidth(text), _spriteFont.GetHeight());
 }
Exemplo n.º 2
0
 public LNLabel(string text, LNLabel.LabelType type, LFont spriteFont)
     : base()
 {
     this._spriteFont = spriteFont;
     this._type       = type;
     SetString(text);
     this.SetNodeSize(_spriteFont.StringWidth(text), _spriteFont.GetHeight());
 }
Exemplo n.º 3
0
		public LNLabel() {
			this._type = LabelType.TEXT_ALIGNMENT_LEFT;
			this._spriteFont = LFont.GetDefaultFont();
			this.SetNodeSize(1, 1);
		}
Exemplo n.º 4
0
 public LNLabel(string text, LNLabel.LabelType type) : this(text, type, LFont.GetDefaultFont())
 {
 }
Exemplo n.º 5
0
 public LNLabel()
 {
     this._type       = LabelType.TEXT_ALIGNMENT_LEFT;
     this._spriteFont = LFont.GetDefaultFont();
     this.SetNodeSize(1, 1);
 }