示例#1
0
 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);
     }
 }
示例#2
0
 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);
     }
 }
示例#3
0
 public void Draw(Transform2 parentTransform)
 {
     _background.Draw(parentTransform);
     UI.DrawTextCentered(Text, new Rectangle((parentTransform.Location + Transform.Location).ToPoint(), Transform.Size.ToPoint()), TextColor, Font);
 }