コード例 #1
0
ファイル: DefaultWindow.cs プロジェクト: Encreedem/Carrion
 public void DrawAll()
 {
     GUI.Reset();
     Title.Draw();
     Menu.Draw();
     MenuCommandSeparator.Draw();
     CommandLogSeparator.Draw();
     LogTextBox.Draw();
     ControlsLabel.Draw();
 }
コード例 #2
0
        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);
            }
        }