Skip to content

Commit

Permalink
Apply osu! side changes in line with FocusedOverlayContainer.PopIn
Browse files Browse the repository at this point in the history
…`abstract` change

See ppy/osu-framework#5834
  • Loading branch information
peppy committed Jun 12, 2023
1 parent 659a042 commit 863c24b
Show file tree
Hide file tree
Showing 14 changed files with 5 additions and 23 deletions.
2 changes: 0 additions & 2 deletions osu.Game/Collections/ManageCollectionsDialog.cs
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,6 @@ private void load(OsuColour colours, AudioManager audio)

protected override void PopIn()
{
base.PopIn();

lowPassFilter.CutoffTo(300, 100, Easing.OutCubic);
this.FadeIn(enter_duration, Easing.OutQuint);
this.ScaleTo(0.9f).Then().ScaleTo(1f, enter_duration, Easing.OutQuint);
Expand Down
1 change: 0 additions & 1 deletion osu.Game/Graphics/Containers/OsuFocusedOverlayContainer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,6 @@ protected override void UpdateState(ValueChangedEvent<Visibility> state)

protected override void PopOut()
{
base.PopOut();
previewTrackManager.StopAnyPlaying(this);
}

Expand Down
1 change: 0 additions & 1 deletion osu.Game/Overlays/AccountCreationOverlay.cs
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ private void load(IAPIProvider api)

protected override void PopIn()
{
base.PopIn();
this.FadeIn(transition_time, Easing.OutQuint);

if (welcomeScreen.GetChildScreen() != null)
Expand Down
2 changes: 0 additions & 2 deletions osu.Game/Overlays/ChatOverlay.cs
Original file line number Diff line number Diff line change
Expand Up @@ -276,8 +276,6 @@ protected override void OnDragEnd(DragEndEvent e)

protected override void PopIn()
{
base.PopIn();

this.MoveToY(0, transition_length, Easing.OutQuint);
this.FadeIn(transition_length, Easing.OutQuint);
}
Expand Down
1 change: 0 additions & 1 deletion osu.Game/Overlays/DialogOverlay.cs
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,6 @@ void dismiss()

protected override void PopIn()
{
base.PopIn();
lowPassFilter.CutoffTo(300, 100, Easing.OutCubic);
}

Expand Down
2 changes: 0 additions & 2 deletions osu.Game/Overlays/LoginOverlay.cs
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,6 @@ private void load(OsuColour colours)

protected override void PopIn()
{
base.PopIn();

panel.Bounding = true;
this.FadeIn(transition_time, Easing.OutQuint);

Expand Down
6 changes: 5 additions & 1 deletion osu.Game/Overlays/MedalOverlay.cs
Original file line number Diff line number Diff line change
Expand Up @@ -246,9 +246,13 @@ private void startAnimation()
}
}

protected override void PopIn()
{
this.FadeIn(200);
}

protected override void PopOut()
{
base.PopOut();
this.FadeOut(200);
}

Expand Down
1 change: 0 additions & 1 deletion osu.Game/Overlays/Mods/ShearedOverlayContainer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,6 @@ protected override void PopIn()
{
const double fade_in_duration = 400;

base.PopIn();
this.FadeIn(fade_in_duration, Easing.OutQuint);

Header.MoveToY(0, fade_in_duration, Easing.OutQuint);
Expand Down
2 changes: 0 additions & 2 deletions osu.Game/Overlays/NotificationOverlay.cs
Original file line number Diff line number Diff line change
Expand Up @@ -206,8 +206,6 @@ protected override void Update()

protected override void PopIn()
{
base.PopIn();

this.MoveToX(0, TRANSITION_LENGTH, Easing.OutQuint);
mainContent.FadeTo(1, TRANSITION_LENGTH, Easing.OutQuint);
mainContent.FadeEdgeEffectTo(WaveContainer.SHADOW_OPACITY, WaveContainer.APPEAR_DURATION, Easing.Out);
Expand Down
2 changes: 0 additions & 2 deletions osu.Game/Overlays/NowPlayingOverlay.cs
Original file line number Diff line number Diff line change
Expand Up @@ -229,8 +229,6 @@ protected override void LoadComplete()

protected override void PopIn()
{
base.PopIn();

this.FadeIn(transition_length, Easing.OutQuint);
dragContainer.ScaleTo(1, transition_length, Easing.OutElastic);
}
Expand Down
2 changes: 0 additions & 2 deletions osu.Game/Overlays/SettingsPanel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,6 @@ protected void AddSection(SettingsSection section)

protected override void PopIn()
{
base.PopIn();

ContentContainer.MoveToX(ExpandedPosition, TRANSITION_LENGTH, Easing.OutQuint);

SectionsContainer.FadeEdgeEffectTo(WaveContainer.SHADOW_OPACITY, WaveContainer.APPEAR_DURATION, Easing.Out);
Expand Down
2 changes: 0 additions & 2 deletions osu.Game/Overlays/WaveOverlayContainer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@ protected WaveOverlayContainer()

protected override void PopIn()
{
base.PopIn();

Waves.Show();
this.FadeIn(100, Easing.OutQuint);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,12 @@ private void load()

protected override void PopIn()
{
base.PopIn();
Settings.MoveToY(0, TRANSITION_DURATION, Easing.OutQuint);
Settings.FadeIn(TRANSITION_DURATION / 2);
}

protected override void PopOut()
{
base.PopOut();
Settings.MoveToY(-1, TRANSITION_DURATION, Easing.InSine);
Settings.Delay(TRANSITION_DURATION / 2).FadeOut(TRANSITION_DURATION / 2);
}
Expand Down
2 changes: 0 additions & 2 deletions osu.Game/Screens/Select/Options/BeatmapOptionsOverlay.cs
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,6 @@ public void AddButton(LocalisableString firstLine, string secondLine, IconUsage

protected override void PopIn()
{
base.PopIn();

this.FadeIn(transition_duration, Easing.OutQuint);

if (buttonsContainer.Position.X == 1 || Alpha == 0)
Expand Down

0 comments on commit 863c24b

Please sign in to comment.