Exemple #1
0
 /// <summary>
 /// Narysuj na podanym SpriteBatch komponent z labelką.
 /// </summary>
 /// <param name="spriteBatch">Obiekt, do ktorego dorysowujemy własny komponent</param>
 public override void Draw(SpriteBatch spriteBatch)
 {
     base.Draw(spriteBatch);
     if (_textLabel != null && _textLabel.Text.Length > 0)
     {
         _textLabel.Draw(spriteBatch);
     }
 }
Exemple #2
0
 /// <summary>
 /// Narysuj wszystkie komponenty znajdujące się w silniku w aplikacji.
 /// </summary>
 /// <param name="spriteBatch">obiekt, w którym rysujemy komponenty</param>
 public override void Draw(SpriteBatch spriteBatch)
 {
     spriteBatch.Begin();
     _backButton.Draw(spriteBatch);
     _lpLabel.Draw(spriteBatch);
     _saveTimeLabel.Draw(spriteBatch);
     _levelLabel.Draw(spriteBatch);
     _pointsLabel.Draw(spriteBatch);
     _loadLabel.Draw(spriteBatch);
     for (int i = 0; i < _lpsLabels.Count; i++)
     {
         _lpsLabels[i].Draw(spriteBatch);
         _timesLabels[i].Draw(spriteBatch);
         _levelsLabels[i].Draw(spriteBatch);
         _pointsLabels[i].Draw(spriteBatch);
         _optionsButtons[i].Draw(spriteBatch);
     }
     spriteBatch.End();
 }