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()); }
public LNLabel() { this._type = LabelType.TEXT_ALIGNMENT_LEFT; this._spriteFont = LFont.GetDefaultFont(); this.SetNodeSize(1, 1); }
public LNLabel(string text, LNLabel.LabelType type) : this(text, type, LFont.GetDefaultFont()) { }