コード例 #1
0
        /// <summary>
        /// Opens the game menu to the specified menu window.
        /// </summary>
        /// <param name="whichWindow"></param>
        public void OpenGameMenu(GameMenuWindow window)
        {
            if (window == GameMenuWindow.Inventory)
            {
                _activeWindow = new Inventory();
            }
            else if (window == GameMenuWindow.AreaMap)
            {
                _activeWindow = new AreaMap();
            }
            else if (window == GameMenuWindow.WorldMap)
            {
                _activeWindow = new WorldMap();
            }

            IsGameMenuOpen = true;
        }
コード例 #2
0
 /// <summary>
 /// Opens the advice window.
 /// </summary>
 public void OpenAdviceWindow()
 {
     _activeWindow = new AdviceWindow();
 }
コード例 #3
0
 /// <summary>
 /// Opens the shop.
 /// </summary>
 public void OpenShop()
 {
     _activeWindow = new Shop();
 }
コード例 #4
0
 /// <summary>
 /// Opens the options window.
 /// </summary>
 public void OpenOptionsWindow()
 {
     _activeWindow = new OptionsWindow();
 }
コード例 #5
0
 /// <summary>
 /// Opens the minimenu.
 /// </summary>
 /// <param name="mode"></param>
 public void OpenMiniMenu(MiniMenuMode mode)
 {
     _activeWindow = new MiniMenu(mode);
 }
コード例 #6
0
 /// <summary>
 /// If there is currently a window open, closes it.
 /// </summary>
 public void CloseWindow()
 {
     IsGameMenuOpen = false;
     IsTextBoxOpen  = false;
     _activeWindow  = null;
 }