/// <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; }
/// <summary> /// Opens the advice window. /// </summary> public void OpenAdviceWindow() { _activeWindow = new AdviceWindow(); }
/// <summary> /// Opens the shop. /// </summary> public void OpenShop() { _activeWindow = new Shop(); }
/// <summary> /// Opens the options window. /// </summary> public void OpenOptionsWindow() { _activeWindow = new OptionsWindow(); }
/// <summary> /// Opens the minimenu. /// </summary> /// <param name="mode"></param> public void OpenMiniMenu(MiniMenuMode mode) { _activeWindow = new MiniMenu(mode); }
/// <summary> /// If there is currently a window open, closes it. /// </summary> public void CloseWindow() { IsGameMenuOpen = false; IsTextBoxOpen = false; _activeWindow = null; }