예제 #1
0
        protected override void Run(float perc)
        {
            var bounds = FRectangle.Lerp(rectStart, rectFinal, FloatMath.FunctionEaseOutSine(perc));

            vp.ChangeVirtualSize(bounds.Width, bounds.Height);
            Screen.MapViewportCenterX = bounds.CenterX;
            Screen.MapViewportCenterY = bounds.CenterY;

            _gdScreen.ColorOverdraw = FloatMath.FunctionEaseOutExpo(1 - perc, 10);
        }
예제 #2
0
        protected override void OnProgress(GDWorldMapScreen screen, float perc, SAMTime gameTime, InputState istate)
        {
            var bounds = FRectangle.Lerp(rectStart, rectFinal, FloatMath.FunctionEaseOutSine(perc));

            vp.ChangeVirtualSize(bounds.Width, bounds.Height);
            screen.MapViewportCenterX = bounds.CenterX;
            screen.MapViewportCenterY = bounds.CenterY;

            screen.ColorOverdraw = FloatMath.FunctionEaseOutExpo(perc, 10);
        }
예제 #3
0
        protected override void OnStart(GDWorldMapScreen screen)
        {
            var bounds = rectStart;

            vp.ChangeVirtualSize(bounds.Width, bounds.Height);
            screen.MapViewportCenterX = bounds.CenterX;
            screen.MapViewportCenterY = bounds.CenterY;

            screen.ColorOverdraw = 0f;
        }
예제 #4
0
        protected override void OnProgress(GDWorldMapScreen screen, float perc, SAMTime gameTime, InputState istate)
        {
            var bounds = FRectangle.Lerp(rectStart, rectFinal, FloatMath.FunctionEaseOutQuad(perc));

            vp.ChangeVirtualSize(bounds.Width, bounds.Height);
            screen.MapViewportCenterX = bounds.CenterX;
            screen.MapViewportCenterY = bounds.CenterY;

            screen.GDBackground.GridLineAlpha = perc;
        }
예제 #5
0
        protected override void Run(float perc)
        {
            var bounds = FRectangle.Lerp(rectStart, rectFinal, FloatMath.FunctionEaseInOutCubic(perc));

            vp.ChangeVirtualSize(bounds.Width, bounds.Height);
            Screen.MapViewportCenterX = bounds.CenterX;
            Screen.MapViewportCenterY = bounds.CenterY;

            _gdScreen.GDBackground.GridLineAlpha = 1 - perc;
        }
        protected override void OnStart(GDWorldMapScreen screen)
        {
            var bounds = rectStart;

            vp.ChangeVirtualSize(bounds.Width, bounds.Height);
            screen.MapViewportCenterX = bounds.CenterX;
            screen.MapViewportCenterY = bounds.CenterY;

            screen.ZoomState = BistateProgress.Reverting;

            screen.ColorOverdraw = 1f;
        }