Esempio n. 1
0
 public override void Draw(SpriteBatch spriteBatch)
 {
     if (Visible)
     {
         render.Draw(spriteBatch);
         if (label != null)
         {
             label.Draw(spriteBatch);
         }
         if (Scrolls)
         {
             scroller.Draw(spriteBatch);
             // -- Draw in Scissor Rectangle -- //
             spriteBatch.End();
             _contentsRenderer.Draw(ContentManager);
             // -- Resume Master Sprite Batch
             spriteBatch.Begin();
         }
         else
         {
             // Draw my contents:
             ContentManager.Draw();
         }
     }
 }
Esempio n. 2
0
 public override void Draw(SpriteBatch spriteBatch)
 {
     if (Visible)
     {
         _render.Draw(spriteBatch);
         if (Label != null)
         {
             Label.Draw(spriteBatch);
         }
     }
 }