Exemplo n.º 1
0
        public override void Draw(SpriteBatch sb)
        {
            sb.End();
            sb.Begin();
            MoneyLabel.Draw(sb);
            if (drawBox)
            {
                sb.Draw(Game1.Pixel, HitBox, Color.Red);
            }
            sb.End();
            sb.Begin(sortMode: SpriteSortMode.Immediate);

            if (!Apply)
            {
                base.Draw(sb);
                return;
            }

            if (Effect == null)
            {
                base.Draw(sb);
                return;
            }
            Effect.Parameters["Skin"].SetValue(AppliedSkin);
            foreach (var pass in Effect.CurrentTechnique.Passes)
            {
                pass.Apply();
                base.Draw(sb);
            }
        }
Exemplo n.º 2
0
 public override void DrawChildren(IRenderer Renderer)
 {
     if (this.State == ButtonState.Pushed)
     {
         if (TextLabel != null && TextLabel.Visible)
         {
             TextLabel.Bounds.Location.Add(1);
             TextLabel.Draw(Renderer);
             TextLabel.Bounds.Location.Add(-1);
         }
         if (MyPicture != null && MyPicture.Visible)
         {
             MyPicture.Bounds.Location.Add(1);
             MyPicture.Draw(Renderer);
             MyPicture.Bounds.Location.Add(-1);
         }
     }
     else
     {
         if (TextLabel != null && TextLabel.Visible)
         {
             TextLabel.Draw(Renderer);
         }
         if (MyPicture != null && MyPicture.Visible)
         {
             MyPicture.Draw(Renderer);
         }
     }
 }
Exemplo n.º 3
0
 public override void Draw(GameTime gameTime)
 {
     cell.Draw(gameTime);
     code.Draw(gameTime);
     label.Draw(gameTime);
     blocked.Draw(gameTime);
 }
Exemplo n.º 4
0
        public override void Draw(GameTime gameTime)
        {
            background.Draw(gameTime);

            layer1.Draw(gameTime);
            layer2.Draw(gameTime);

            fog.Draw(gameTime);

            wall.Draw(gameTime);
            fan.Draw(gameTime);

            lightLamp.Location = new Vector2(-24, 400); lightLamp.Draw(gameTime);
            lightLamp.Location = new Vector2(250, 400); lightLamp.Draw(gameTime);
            lightLamp.Location = new Vector2(325, 400); lightLamp.Draw(gameTime);

            joss.Draw(gameTime);
            shine.Draw(gameTime);

            logo.Draw(gameTime);

            footstepShadow.Draw(gameTime);
            footstep.Draw(gameTime);

            pressStartShadow.Draw(gameTime);
            pressStart.Draw(gameTime);

            base.Draw(gameTime);
        }
Exemplo n.º 5
0
 public override void Draw(GameTime gameTime)
 {
     button.Draw(gameTime);
     code.Draw(gameTime);
     shadow.Draw(gameTime);
     caption.Draw(gameTime);
     base.Draw(gameTime);
 }
Exemplo n.º 6
0
        public override void Draw(GameTime gameTime)
        {
            shadow.Draw(gameTime);
            caption.Draw(gameTime);
            spriteButton.Draw(gameTime);

            base.Draw(gameTime);
        }
Exemplo n.º 7
0
        public override void Draw(GameTime gameTime)
        {
            shadow.Draw(gameTime);
            sliderShadow.Draw(gameTime);

            caption.Draw(gameTime);
            slider.Draw(gameTime);

            base.Draw(gameTime);
        }
Exemplo n.º 8
0
        private void Draw()
        {
            graphics.FillRectangle(Program.BackgroundBrush, 0, 0, Program.Width, Program.Height);

            scorePositionLabel.Draw(graphics);
            scoreLabel.Draw(graphics);
            missedPositionLabel.Draw(graphics);
            missedLabel.Draw(graphics);
            answersPositionLabel.Draw(graphics);
            answersLabel.Draw(graphics);

            returnButton.Draw(graphics);
        }
Exemplo n.º 9
0
 public override void Draw(SpriteBatch spriteBatch)
 {
     CreateButton.Draw(spriteBatch);
     UsernameBox.Draw(spriteBatch);
     PasswordBox.Draw(spriteBatch);
     LoginButton.Draw(spriteBatch);
     PlayButton.Draw(spriteBatch);
     UsernameLabel.Draw(spriteBatch);
     PasswordLabel.Draw(spriteBatch);
     WelcomeLabel.Draw(spriteBatch);
     ResponseLabel.Draw(spriteBatch);
     MakeMapButton.Draw(spriteBatch);
     base.Draw(spriteBatch);
 }
Exemplo n.º 10
0
        public override void Draw(SpriteBatch spriteBatch)
        {
            MoneyLabel.Draw(spriteBatch);
            goToGameButton.Draw(spriteBatch);
            BuyButton.Draw(spriteBatch);
            CurrentSkinNameLabel.Draw(spriteBatch);
            GameScreen.pac.Draw(spriteBatch);

            foreach (var skin in Skins)
            {
                skin.Draw(spriteBatch);
            }
            base.Draw(spriteBatch);
        }
Exemplo n.º 11
0
        private void Draw()
        {
            graphics.FillRectangle(Program.BackgroundBrush, 0, 0, Program.Width, Program.Height);

            foreach (Boat boat in boats)
            {
                boat.Draw(graphics);
            }

            foreach (AnswerBlock block in blocks)
            {
                block.Draw(graphics);
            }

            water.Draw(graphics);

            scoreLabel.Draw(graphics);
            scoreAddLabel.Draw(graphics);
            timeLabel.Draw(graphics);
        }
Exemplo n.º 12
0
        private void Draw()
        {
            graphics.FillRectangle(Program.BackgroundBrush, 0, 0, Program.Width, Program.Height);

            for (int i = firstDrawIndex; i <= lastDrawIndex; i++)
            {
                containers[i].Draw(graphics);
            }

            scrollBar.Draw(graphics);

            if (drawNameLabel)
            {
                int alpha = nameLabelFade >= nameLabelFadeTime ? 255 : (int)((nameLabelFade / nameLabelFadeTime) * (float)255);

                NameLabel.Color         = Color.FromArgb((NameLabel.Color.ToArgb() & 0x00FFFFFF) | alpha << 24);
                NameLabel.BackdropColor = Color.FromArgb((NameLabel.BackdropColor.ToArgb() & 0x00FFFFFF) | alpha << 24);

                NameLabel.Draw(graphics);
            }
        }
Exemplo n.º 13
0
        protected override void Draw(GameTime gameTime)
        {
            GraphicsDevice.Clear(Color.CornflowerBlue);

            // TODO: Add your drawing code here

            spriteBatch.Begin();

            //Has to be first, so everything draws over the background
            if (CurrentState != States.Game)
            {
                spriteBatch.Draw(backGroundTexture, new Vector2(0, 0), Color.White);
                label.Draw(spriteBatch);
            }

            screens[CurrentState].Draw(spriteBatch);

            spriteBatch.End();

            base.Draw(gameTime);
        }
Exemplo n.º 14
0
        private void Draw()
        {
            graphics.FillRectangle(Program.BackgroundBrush, 0, 0, Program.Width, Program.Height);

            QuestionCounter.Draw(graphics);

            for (int i = 0; i < flags.Length; i++)
            {
                if (flags[i] != null)
                {
                    flags[i].Draw(graphics);
                }
            }

            foreach (QuizButton b in buttons)
            {
                b.Draw(graphics);
            }

            tracker.Draw(graphics);
            scoreLabel.Draw(graphics);
            scoreAddLabel.Draw(graphics);
        }
Exemplo n.º 15
0
        private void Draw()
        {
            graphics.FillRectangle(Program.BackgroundBrush, 0, 0, Program.Width, Program.Height);

            graphics.DrawImage(logo, Program.Width / 2 - (logo.Width / 2), stateButtonY / 2 - (logo.Height / 2), logo.Width, logo.Height);

            foreach (Button b in stateButtons)
            {
                b.Draw(graphics);
            }

            if (selectedStartButtons >= 0)
            {
                foreach (Button b in startButtons[selectedStartButtons])
                {
                    if (b != null)
                    {
                        b.Draw(graphics);
                    }
                }
            }

            descLabel.Draw(graphics);
        }
Exemplo n.º 16
0
 public override void Draw(GameTime gameTime)
 {
     window.Draw(gameTime);
     title.Draw(gameTime);
     base.Draw(gameTime);
 }
Exemplo n.º 17
0
 public override void Draw(SpriteBatch spriteBatch)
 {
     label.Draw(spriteBatch);
     base.Draw(spriteBatch);
 }
Exemplo n.º 18
0
 public override void Draw(GameTime gameTime)
 {
     background.Draw(gameTime);
     label.Draw(gameTime);
 }
Exemplo n.º 19
0
 public void Draw(GameTime gameTime)
 {
     shadow.Draw(gameTime);
     label.Draw(gameTime);
 }