Ejemplo n.º 1
0
        public void Swap(CUIGroup newGroup, bool instant = false)
        {
            if (newGroup == activeGroup)
            {
                return;
            }

            if (activeGroup)
            {
                if (instant)
                {
                    CUIManager.SwapAnimate(activeGroup, newGroup, -1f, CUIAnimation.InstantOut, CUIAnimation.InstantIn);
                }
                else
                {
                    CUIManager.SwapAnimate(activeGroup, newGroup);
                }
            }
            else
            {
                if (instant)
                {
                    CUIManager.Animate(newGroup, CUIAnimation.InstantIn);
                }
                else
                {
                    CUIManager.Animate(newGroup, true);
                }
            }

            activeGroup = newGroup;
        }
Ejemplo n.º 2
0
        private void OnInteractedWith(bool interacting)
        {
            if (interacting)
            {
                foreach (WristBubble bubble in WristBubble.bubbles)
                {
                    CUIManager.Animate(bubble.cuiGroup, true);
                }
            }
            else
            {
                foreach (WristBubble bubble in WristBubble.bubbles)
                {
                    if (!bubble.isPinned)
                    {
                        CUIManager.Animate(bubble.cuiGroup, false);
                    }
                }
            }



            if (interacting)
            {
                CUIManager.SwapAnimate(songScrollerCUI, mediaControlButtonsCUI);
            }
            else
            {
                CUIManager.SwapAnimate(mediaControlButtonsCUI, songScrollerCUI);
            }
        }
Ejemplo n.º 3
0
        private void ShowGamesGrid()
        {
            if (activeGroup != gridView)
            {
                CUIManager.SwapAnimate(activeGroup, gridView);
                activeGroup = gridView;
            }

            gridDisplayGroup.MakeGames();
        }
Ejemplo n.º 4
0
        public void Button_Home()
        {
            // if (isShowingGameDetails) HideGameDetails();

            if (activeGroup == welcomeView)
            {
                return;
            }

            CUIManager.SwapAnimate(activeGroup, welcomeView);


            activeGroup = welcomeView;

            favoritesDispalyGroup.MakeGames();
        }
Ejemplo n.º 5
0
        private void Update()
        {
            float yay = (float)player.time / (float)player.length;

            if (yay <= 0f)
            {
                return;
            }

            if (float.IsNaN(yay))
            {
                return;
            }

            //Debug.Log(yay);

            slider.SetValueWithoutNotify(yay);


            if (Input.GetKeyDown(KeyCode.A))
            {
                CUIManager.SwapAnimate(myGroup, myGroup2);
            }
        }