Example #1
0
        public IScreen OpenSignupPage(MenuArgs args)
        {
            var menu = (SignupForm)SpawnScreen(m_signupFormPrefab);

            menu.OpenMenu(this, args);
            return(menu);
        }
Example #2
0
        public IScreen OpenLoginPage(MenuArgs args)
        {
            var menu = SpawnScreen(m_loginFormPrefab);

            ((MenuScreen)menu).OpenMenu(this, args);
            m_menuOn = true;
            return(menu);
        }
Example #3
0
        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);
        }
Example #4
0
 public void OpenMenu(MenuArgs args)
 {
     m_standaloneInterface.OpenMenu(args);
     if (m_vrInterface != null)
     {
         m_vrInterface.OpenMenu(args);
         m_menuOn = true;
     }
 }
Example #5
0
        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);
        }
Example #6
0
 public void OpenContextUI(MenuArgs args)
 {
     m_standaloneInterface.OpenContextUI(args);
     m_vrInterface?.OpenContextUI(args);
 }
Example #7
0
 public void OpenLoginPage(MenuArgs args)
 {
     m_standaloneInterface.OpenLoginPage(args);
     m_vrInterface?.OpenLoginPage(args);
 }
Example #8
0
 public void OpenStandaloneMenu(MenuArgs args)
 {
     m_standaloneInterface.OpenMenu(args);
 }