public override void Draw(Transform2 parentTransform) { if (_isVisible()) { UI.Draw(_currentRect, new Rectangle(Area.Location + parentTransform.Location.ToPoint(), Area.Size), Color); UI.DrawTextCentered(_text, new Rectangle(Area.Location + parentTransform.Location.ToPoint(), Area.Size), Color, Font); } }
public void Draw(Transform2 parentTransform) { if (_isVisible()) { World.Draw(_current, new Rectangle(Area.Location + parentTransform.Location.ToPoint(), Area.Size)); UI.DrawTextCentered(_text, new Rectangle(Area.Location + parentTransform.Location.ToPoint(), Area.Size), Color.White); } }
public void Draw(Transform2 parentTransform) { _background.Draw(parentTransform); UI.DrawTextCentered(Text, new Rectangle((parentTransform.Location + Transform.Location).ToPoint(), Transform.Size.ToPoint()), TextColor, Font); }