public void Draw(SpriteBatch theSpriteBatch, ContentManager theContentManager) { if (MyMenuState == MenuState.Startup) { Logo.Draw(theSpriteBatch, theContentManager); PlayButton.Draw(theSpriteBatch, theContentManager); OptionsButton.Draw(theSpriteBatch, theContentManager); HighScoresButton.Draw(theSpriteBatch, theContentManager); ExitGameButton.Draw(theSpriteBatch, theContentManager); } else if (MyMenuState == MenuState.Options1) { MusicOn.Draw(theSpriteBatch, theContentManager); MusicOff.Draw(theSpriteBatch, theContentManager); SoundOn.Draw(theSpriteBatch, theContentManager); SoundOff.Draw(theSpriteBatch, theContentManager); Cheats.Draw(theSpriteBatch, theContentManager); Debug.Draw(theSpriteBatch, theContentManager); Cave1.Draw(theSpriteBatch, theContentManager); Cave2.Draw(theSpriteBatch, theContentManager); Cave3.Draw(theSpriteBatch, theContentManager); Back.Draw(theSpriteBatch, theContentManager); OptionsLabel.Draw(theSpriteBatch, theContentManager); MusicLabel.Draw(theSpriteBatch, theContentManager); SoundFXLabel.Draw(theSpriteBatch, theContentManager); CaveLabel.Draw(theSpriteBatch, theContentManager); } }
public void Draw(SpriteBatch theSpriteBatch, ContentManager theContentManager) { if (MyMenuState == MenuState.Startup) { Logo.Draw(theSpriteBatch, theContentManager); PlayButton.Draw(theSpriteBatch, theContentManager); OptionsButton.Draw(theSpriteBatch, theContentManager); HighScoresButton.Draw(theSpriteBatch, theContentManager); ExitGameButton.Draw(theSpriteBatch, theContentManager); } else if (MyMenuState == MenuState.Options) { MusicOn.Draw(theSpriteBatch, theContentManager); MusicOff.Draw(theSpriteBatch, theContentManager); SoundOn.Draw(theSpriteBatch, theContentManager); SoundOff.Draw(theSpriteBatch, theContentManager); Cheats.Draw(theSpriteBatch, theContentManager); Debug.Draw(theSpriteBatch, theContentManager); Mouse.Draw(theSpriteBatch, theContentManager); Keyboard.Draw(theSpriteBatch, theContentManager); Kinect.Draw(theSpriteBatch, theContentManager); Back.Draw(theSpriteBatch, theContentManager); OptionsLabel.Draw(theSpriteBatch, theContentManager); MusicLabel.Draw(theSpriteBatch, theContentManager); SoundFXLabel.Draw(theSpriteBatch, theContentManager); ControlsLabel.Draw(theSpriteBatch, theContentManager); } else if (MyMenuState == MenuState.Pause) { backdrop.Draw(theSpriteBatch, theContentManager); Resume.Draw(theSpriteBatch, theContentManager); MainMenu.Draw(theSpriteBatch, theContentManager); Quit.Draw(theSpriteBatch, theContentManager); } }