public TextUnit(SpriteFont font, string Value, TextSortMode sortmode) : base("UI\\null") { _font = font; _sortmode = sortmode; _spriteeffect = SpriteEffects.None; _Color = Color.White; _scale = 1f; _text = Value; Origin = Vector2.Zero; }
public TextPanel(SpriteFont font, string Value, TextSortMode sortmode) : base("UI\\null") { _font = font; _sortmode = sortmode; _spriteeffect = SpriteEffects.None; _Color = Color.White; _scale = 1f; _text = Value; SetOrigin(); //_bounds = new Rectangle((int)(Position.X - Origin.X * _scale), (int)(Position.Y - Origin.Y * _scale), (int)(Texture.Width * _scale), (int)(Texture.Height * _scale)); }
public TextPanel(Panel parrent, SpriteFont font, string Value, TextSortMode sortmode) : this(font, Value, sortmode) { AddParrent(parrent); }