private void showCertifiedScreen() { Drawable background; Drawable certifiedText; resultsArea.AddRange(new[] { background = new Box { Colour = overlayColourProvider.Background4, RelativeSizeAxes = Axes.Both, }, (certifiedText = new OsuSpriteText { Alpha = 0, Font = OsuFont.TorusAlternate.With(size: 80, weight: FontWeight.Bold), Text = "Certified!", Blending = BlendingParameters.Additive, }).WithEffect(new GlowEffect { Colour = overlayColourProvider.Colour1, PadExtent = true }).With(e => { e.Anchor = Anchor.Centre; e.Origin = Anchor.Centre; }), new OsuSpriteText { Text = $"You should use a frame limiter with update rate of {mapDifficultyToTargetFrameRate(DifficultyLevel + 1)} Hz (or fps) for best results!", Anchor = Anchor.Centre, Origin = Anchor.Centre, Font = OsuFont.Torus.With(size: 24, weight: FontWeight.SemiBold), Y = 80, } }); background.FadeInFromZero(1000, Easing.OutQuint); certifiedText.FadeInFromZero(500, Easing.InQuint); certifiedText .ScaleTo(10) .ScaleTo(1, 600, Easing.InQuad) .Then() .ScaleTo(1.05f, 10000, Easing.OutQuint); }
private void appearTransform() { if (mods.Value.Any(m => !m.Ranked)) { unrankedText.FadeInFromZero(fade_duration, EasingTypes.OutQuint); } else { unrankedText.Hide(); } iconsContainer.Flush(); iconsContainer.FadeInFromZero(fade_duration, EasingTypes.OutQuint); expand(); using (iconsContainer.BeginDelayedSequence(1200)) contract(); }
private void updateState() { if (!IsLoaded) { return; } const double duration = 900; switch (state) { case DisplayState.None: medalContainer.ScaleTo(0); break; case DisplayState.Icon: medalContainer .FadeIn(duration) .ScaleTo(1, duration, Easing.OutElastic); break; case DisplayState.MedalUnlocked: medalContainer .FadeTo(1) .ScaleTo(1); this.ScaleTo(scale_when_unlocked, duration, Easing.OutExpo); this.MoveToY(MedalOverlay.DISC_SIZE / 2 - 30, duration, Easing.OutExpo); unlocked.FadeInFromZero(duration); break; case DisplayState.Full: medalContainer .FadeTo(1) .ScaleTo(1); this.ScaleTo(scale_when_full, duration, Easing.OutExpo); this.MoveToY(MedalOverlay.DISC_SIZE / 2 - 60, duration, Easing.OutExpo); unlocked.Show(); name.FadeInFromZero(duration + 100); description.FadeInFromZero(duration * 2); break; } }
protected override void ApplyHitAnimations() { Text.FadeInFromZero(50).TransformSpacingTo(new Vector2(10), 400, Easing.Out).Then().Delay(200).Then().FadeOut(200, Easing.Out); LifetimeEnd = LifetimeStart + 2000; base.ApplyHitAnimations(); }