Beispiel #1
0
        public override void draw(GameTime gameTime)
        {
            mSpriteBatch.Begin();
            mCurrentBackground.draw(mSpriteBatch);

            if (cSCREEN == MainMenuScreen.SCREENS.MAINMENU_SCREEN)
            {
                if (mShowContinueScreen)
                {
                    mButtonContinue.setVisible(true); mButtonContinue.enableCollision(true);
                    mButtonNewGame.setVisible(true); mButtonNewGame.enableCollision(true);

                    mButtonPlay.setVisible(false); mButtonPlay.enableCollision(false);
                    mButtonHelp.setVisible(false); mButtonHelp.enableCollision(false);
                    mButtonCredits.setVisible(false); mButtonCredits.enableCollision(false);
                    mButtonExit.setVisible(false); mButtonExit.enableCollision(false);
                }
                else
                {
                    mButtonContinue.setVisible(false); mButtonContinue.enableCollision(false);
                    mButtonNewGame.setVisible(false); mButtonNewGame.enableCollision(false);

                    mButtonPlay.setVisible(true); mButtonPlay.enableCollision(true);
                    mButtonHelp.setVisible(true); mButtonHelp.enableCollision(true);
                    mButtonCredits.setVisible(true); mButtonCredits.enableCollision(true);
                    mButtonExit.setVisible(true); mButtonExit.enableCollision(true);
                }

                mGroupButtons.draw(mSpriteBatch);
                mSoundIcon.draw(mSpriteBatch);

                mCursor.draw(mSpriteBatch);

                if (mFade != null)
                {
                    mFade.draw(mSpriteBatch);
                }
            }

            mSpriteBatch.End();

            if (cSCREEN != MainMenuScreen.SCREENS.MAINMENU_SCREEN)
            {
                currentScreen.draw(gameTime);
            }
        }
Beispiel #2
0
 public override void Draw(GameTime gameTime)
 {
     base.Draw(gameTime);
     mCurrentScreen.draw(gameTime);
 }