public IScreen OpenSignupPage(MenuArgs args) { var menu = (SignupForm)SpawnScreen(m_signupFormPrefab); menu.OpenMenu(this, args); return(menu); }
public IScreen OpenLoginPage(MenuArgs args) { var menu = SpawnScreen(m_loginFormPrefab); ((MenuScreen)menu).OpenMenu(this, args); m_menuOn = true; return(menu); }
public virtual IScreen OpenMenu(MenuArgs args) { var menu = (MenuScreen)SpawnScreen(m_mainMenuPrefab, args.Items.Length > 4, false); menu.OpenMenu(this, args); m_menuOn = true; return(menu); }
public void OpenMenu(MenuArgs args) { m_standaloneInterface.OpenMenu(args); if (m_vrInterface != null) { m_vrInterface.OpenMenu(args); m_menuOn = true; } }
public IScreen OpenContextUI(MenuArgs args) { if (!args.Position.HasValue) { args.Position = new Vector2(Screen.width / 2, -Screen.height / 2); } m_screensRoot.gameObject.SetActive(true); PrepareForNewScreen(); var menu = Instantiate(m_contextMenuPrefab, m_screensRoot).GetComponent <IScreen>(); var screen = menu as MenuScreen; var rectTransform = screen.transform as RectTransform; screen.transform.position = new Vector3(args.Position.Value.x, args.Position.Value.y - rectTransform.sizeDelta.y, screen.transform.position.z); m_screenStack.Push(menu); ((MenuScreen)menu).OpenMenu(this, args); m_menuOn = true; return(menu); }
public void OpenContextUI(MenuArgs args) { m_standaloneInterface.OpenContextUI(args); m_vrInterface?.OpenContextUI(args); }
public void OpenLoginPage(MenuArgs args) { m_standaloneInterface.OpenLoginPage(args); m_vrInterface?.OpenLoginPage(args); }
public void OpenStandaloneMenu(MenuArgs args) { m_standaloneInterface.OpenMenu(args); }