/// <summary> /// Goes to the given page in the tab menu's stack. /// Closes any other pages above it in the stack. /// The given page must already be in the stack. /// </summary> /// <param name="uiPage">The page to open</param> public void GoBackToMenu(UIPage uiPage) => UiManager.GoBackToMenu(this.uiPage, uiPage);
/// <summary> /// Removes the given sub menu from the tab menu's stack. /// </summary> /// <param name="uiPage">The page to remove</param> /// <returns>The page that was removed</returns> public UIPage RemovePageFromStack(UIPage uiPage) => UiManager.RemovePageFromStack(this.uiPage, uiPage);
/// <summary> /// Returns the most recently open menu of the tab menu. /// </summary> /// <returns>The most recently open menu of the tab menu</returns> public UIPage CurrentPage() => UiManager.CurrentPage(uiPage);
/// <summary> /// Closes the most recently open sub menu of the tab menu. /// </summary> public void PopSubMenu() => UiManager.PopSubMenu(uiPage);
/// <summary> /// Closes all sub menus of the tab menu. /// </summary> public void CloseAllSubMenus() => UiManager.CloseAllSubMenus(uiPage);
/// <summary> /// Opens a the specified menu as a sub menu of the tab menu. /// </summary> /// <param name="uiPage">The page to open</param> public void OpenSubMenu(UIPage uiPage) => UiManager.OpenSubMenu(this.uiPage, uiPage);