Example #1
0
 protected virtual void draw_message_overlay(
     SpriteBatch spriteBatch,
     GraphicsDevice device,
     RenderTarget2D[] renderTargets)
 {
     if (SkipButton != null && Input.ControlScheme == ControlSchemes.Touch)
     {
         spriteBatch.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend);
         SkipButton.Draw(spriteBatch, -SkipButtonOffset);
         if (SceneButton != null)
         {
             SceneButton.Draw(spriteBatch, -SkipButtonOffset);
         }
         spriteBatch.End();
     }
 }
Example #2
0
 public override void Draw()
 {
     try
     {
         Globals.spriteBatch.Begin();
     }
     catch { }
     //Globals.spriteBatch.Draw(blank, new Rectangle(200, 20, 880, 680), Color.Wheat);
     Globals.spriteBatch.DrawString(bigfont, "Results", new Vector2(520, 50), Color.White);
     Globals.spriteBatch.DrawString(font, String.Format("{0:0000000} P", points), new Vector2(510, 150), Color.White);
     Globals.spriteBatch.Draw(blank, new Rectangle(480, 200, x1, 30), Color.Green);
     Globals.spriteBatch.Draw(blank, new Rectangle(480 + x1, 200, x2, 30), Color.Red);
     //Globals.spriteBatch.Draw(blank, new Rectangle(220, 250, 840, 200), Color.Turquoise);
     Globals.spriteBatch.DrawString(font, String.Format("Hits Dealt  {0:0000000}", hits), new Vector2(480, 270), Color.White);
     Globals.spriteBatch.DrawString(font, String.Format("Hits Taken {0:0000000}", dmg), new Vector2(480, 320), Color.White);
     Back.Draw();
 }
Example #3
0
        /// <summary>
        /// Draw the scene.
        /// </summary>
        public override void Draw()
        {
            // Draw the background.
            Globals.spriteBatch.Draw(background, new Vector2((float)backgroundOffset, -300f), Color.White);

            // Draw the messages that always display.
            for (int i = 0; i < 5; i++)
            {
                Globals.spriteBatch.DrawStringCentered(mainFont, messages[i], textPositions[i], textColour);
            }
            if (currentState == SceneStates.AfterFolderChosen)
            {
                // Draw the messages that only display when you've chosen a path.
                Globals.spriteBatch.DrawStringCentered(mainFont, messages[5], textPositions[5], textColour);
                Globals.spriteBatch.DrawStringCentered(mainFont, messages[6], textPositions[6], textColour);
                Globals.spriteBatch.DrawStringCentered(pathFont, chosenPath, chosenPathPosition, pathColour);
            }

            // Draw the buttons.
            ChooseFolderButton.Draw();
            AcceptButton.Draw();
            DenyButton.Draw();
        }