예제 #1
0
파일: MainSettings.cs 프로젝트: tgi74/osu
        private void keyBindingOverlay_StateChanged(VisibilityContainer container, Visibility visibility)
        {
            switch (visibility)
            {
            case Visibility.Visible:
                Background.FadeTo(0.9f, 300, Easing.OutQuint);
                Sidebar?.FadeColour(Color4.DarkGray, 300, Easing.OutQuint);

                SectionsContainer.FadeOut(300, Easing.OutQuint);
                ContentContainer.MoveToX(hidden_width - WIDTH, 500, Easing.OutQuint);

                backButton.Delay(100).FadeIn(100);
                break;

            case Visibility.Hidden:
                Background.FadeTo(0.6f, 500, Easing.OutQuint);
                Sidebar?.FadeColour(Color4.White, 300, Easing.OutQuint);

                SectionsContainer.FadeIn(500, Easing.OutQuint);
                ContentContainer.MoveToX(0, 500, Easing.OutQuint);

                backButton.FadeOut(100);
                break;
            }
        }
예제 #2
0
        private void subPanelStateChanged(ValueChangedEvent <Visibility> state)
        {
            switch (state.NewValue)
            {
            case Visibility.Visible:
                Sidebar?.FadeColour(Color4.DarkGray, 300, Easing.OutQuint);

                SectionsContainer.FadeOut(300, Easing.OutQuint);
                ContentContainer.MoveToX(-WIDTH, 500, Easing.OutQuint);
                break;

            case Visibility.Hidden:
                Sidebar?.FadeColour(Color4.White, 300, Easing.OutQuint);

                SectionsContainer.FadeIn(500, Easing.OutQuint);
                ContentContainer.MoveToX(0, 500, Easing.OutQuint);
                break;
            }
        }
예제 #3
0
        private void keyBindingPanelStateChanged(Visibility visibility)
        {
            switch (visibility)
            {
            case Visibility.Visible:
                Background.FadeTo(0.9f, 300, Easing.OutQuint);
                Sidebar?.FadeColour(Color4.DarkGray, 300, Easing.OutQuint);

                SectionsContainer.FadeOut(300, Easing.OutQuint);
                ContentContainer.MoveToX(-WIDTH, 500, Easing.OutQuint);
                break;

            case Visibility.Hidden:
                Background.FadeTo(0.6f, 500, Easing.OutQuint);
                Sidebar?.FadeColour(Color4.White, 300, Easing.OutQuint);

                SectionsContainer.FadeIn(500, Easing.OutQuint);
                ContentContainer.MoveToX(0, 500, Easing.OutQuint);
                break;
            }
        }