예제 #1
0
 public override void Draw(SpriteBatch spriteBatch)
 {
     // Draw the border rectangle,
     borderRectangle.Draw(spriteBatch);
     // then the inner rectangle,
     rectangle.Draw(spriteBatch);
     // and finally the text
     text.Draw(spriteBatch);
 }
예제 #2
0
 public override void Draw(SpriteBatch spriteBatch)
 {
     label.Draw(spriteBatch);
     outlineRectangle.Draw(spriteBatch);
     innerRectangle.Draw(spriteBatch);
     if (Checked)
     {
         checkRectangle.Draw(spriteBatch);
     }
 }
예제 #3
0
 public override void Draw(SpriteBatch spriteBatch)
 {
     if (isVisible)
     {
         sliderLineRectangle.Draw(spriteBatch);
         sliderButtonRectangle.Draw(spriteBatch);
         if (text != null)
         {
             text.Draw(spriteBatch);
         }
         if (valueText != null)
         {
             valueText.Draw(spriteBatch);
         }
     }
 }