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); }
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); }
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; }
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; }
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; }