コード例 #1
0
 /// <summary>
 /// Used to create a new story mode game.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="eventArgs"></param>
 private void OnBackButtonReleased(Object sender, EventArgs eventArgs)
 {
     if (mStoryButtonSelected)
     {
         mStoryButtonSelected = false;
     }
     else
     {
         MainMenuManagerScreen.OnBackButtonReleased(sender, eventArgs);
     }
 }
コード例 #2
0
        private void OnSaveReleased(Object sender, EventArgs eventArgs)
        {
            int width;
            int height;

            if (GlobalVariables.IsFullScreen)
            {
                width  = mGame.mGraphicsAdapter.CurrentDisplayMode.Width;
                height = mGame.mGraphicsAdapter.CurrentDisplayMode.Height;
            }
            else
            {
                width  = GlobalVariables.ResolutionList[GlobalVariables.ChosenResolution].Item1;
                height = GlobalVariables.ResolutionList[GlobalVariables.ChosenResolution].Item2;
            }

            mGame.mGraphics.PreferredBackBufferWidth  = width;
            mGame.mGraphics.PreferredBackBufferHeight = height;
            mGame.mGraphics.ApplyChanges();
            MainMenuManagerScreen.SetResolution(new Vector2(width, height));
            LoadGameManagerScreen.SetResolution(new Vector2(width, height));
        }