mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 07:32:55 +08:00
Adjust results screen transition tweens to feel better
This commit is contained in:
parent
03f311d086
commit
82babbf8fa
@ -305,7 +305,7 @@ namespace osu.Game.Screens.Ranking
|
|||||||
float origLocation = detachedPanelContainer.ToLocalSpace(screenSpacePos).X;
|
float origLocation = detachedPanelContainer.ToLocalSpace(screenSpacePos).X;
|
||||||
expandedPanel.MoveToX(origLocation)
|
expandedPanel.MoveToX(origLocation)
|
||||||
.Then()
|
.Then()
|
||||||
.MoveToX(StatisticsPanel.SIDE_PADDING, 150, Easing.OutQuint);
|
.MoveToX(StatisticsPanel.SIDE_PADDING, 400, Easing.OutElasticQuarter);
|
||||||
|
|
||||||
// Hide contracted panels.
|
// Hide contracted panels.
|
||||||
foreach (var contracted in ScorePanelList.GetScorePanels().Where(p => p.State == PanelState.Contracted))
|
foreach (var contracted in ScorePanelList.GetScorePanels().Where(p => p.State == PanelState.Contracted))
|
||||||
@ -313,7 +313,7 @@ namespace osu.Game.Screens.Ranking
|
|||||||
ScorePanelList.HandleInput = false;
|
ScorePanelList.HandleInput = false;
|
||||||
|
|
||||||
// Dim background.
|
// Dim background.
|
||||||
ApplyToBackground(b => b.FadeColour(OsuColour.Gray(0.1f), 150));
|
ApplyToBackground(b => b.FadeColour(OsuColour.Gray(0.4f), 400, Easing.OutQuint));
|
||||||
|
|
||||||
detachedPanel = expandedPanel;
|
detachedPanel = expandedPanel;
|
||||||
}
|
}
|
||||||
@ -329,7 +329,7 @@ namespace osu.Game.Screens.Ranking
|
|||||||
float origLocation = detachedPanel.Parent.ToLocalSpace(screenSpacePos).X;
|
float origLocation = detachedPanel.Parent.ToLocalSpace(screenSpacePos).X;
|
||||||
detachedPanel.MoveToX(origLocation)
|
detachedPanel.MoveToX(origLocation)
|
||||||
.Then()
|
.Then()
|
||||||
.MoveToX(0, 150, Easing.OutQuint);
|
.MoveToX(0, 250, Easing.OutElasticQuarter);
|
||||||
|
|
||||||
// Show contracted panels.
|
// Show contracted panels.
|
||||||
foreach (var contracted in ScorePanelList.GetScorePanels().Where(p => p.State == PanelState.Contracted))
|
foreach (var contracted in ScorePanelList.GetScorePanels().Where(p => p.State == PanelState.Contracted))
|
||||||
@ -337,7 +337,7 @@ namespace osu.Game.Screens.Ranking
|
|||||||
ScorePanelList.HandleInput = true;
|
ScorePanelList.HandleInput = true;
|
||||||
|
|
||||||
// Un-dim background.
|
// Un-dim background.
|
||||||
ApplyToBackground(b => b.FadeColour(OsuColour.Gray(0.5f), 150));
|
ApplyToBackground(b => b.FadeColour(OsuColour.Gray(0.5f), 250, Easing.OutQuint));
|
||||||
|
|
||||||
detachedPanel = null;
|
detachedPanel = null;
|
||||||
}
|
}
|
||||||
|
@ -223,7 +223,7 @@ namespace osu.Game.Screens.Ranking.Statistics
|
|||||||
|
|
||||||
protected override void PopIn()
|
protected override void PopIn()
|
||||||
{
|
{
|
||||||
this.FadeIn(150, Easing.OutQuint);
|
this.FadeIn(350, Easing.OutQuint);
|
||||||
|
|
||||||
popInSample?.Play();
|
popInSample?.Play();
|
||||||
wasOpened = true;
|
wasOpened = true;
|
||||||
@ -231,7 +231,7 @@ namespace osu.Game.Screens.Ranking.Statistics
|
|||||||
|
|
||||||
protected override void PopOut()
|
protected override void PopOut()
|
||||||
{
|
{
|
||||||
this.FadeOut(150, Easing.OutQuint);
|
this.FadeOut(250, Easing.OutQuint);
|
||||||
|
|
||||||
if (wasOpened)
|
if (wasOpened)
|
||||||
popOutSample?.Play();
|
popOutSample?.Play();
|
||||||
|
Loading…
Reference in New Issue
Block a user