mirror of
https://github.com/ppy/osu.git
synced 2025-01-15 06:42:56 +08:00
Only play results panel animation once (and only for the local user)
This commit is contained in:
parent
11f85779d5
commit
0a0239a7c7
@ -270,6 +270,9 @@ namespace osu.Game.Screens.Ranking.Expanded
|
|||||||
delay += 200;
|
delay += 200;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!withFlair)
|
||||||
|
FinishTransforms(true);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -85,7 +85,7 @@ namespace osu.Game.Screens.Ranking
|
|||||||
|
|
||||||
public readonly ScoreInfo Score;
|
public readonly ScoreInfo Score;
|
||||||
|
|
||||||
private readonly bool isNewLocalScore;
|
private bool displayWithFlair;
|
||||||
|
|
||||||
private Container content;
|
private Container content;
|
||||||
|
|
||||||
@ -102,7 +102,7 @@ namespace osu.Game.Screens.Ranking
|
|||||||
public ScorePanel(ScoreInfo score, bool isNewLocalScore = false)
|
public ScorePanel(ScoreInfo score, bool isNewLocalScore = false)
|
||||||
{
|
{
|
||||||
Score = score;
|
Score = score;
|
||||||
this.isNewLocalScore = isNewLocalScore;
|
displayWithFlair = isNewLocalScore;
|
||||||
}
|
}
|
||||||
|
|
||||||
[BackgroundDependencyLoader]
|
[BackgroundDependencyLoader]
|
||||||
@ -191,7 +191,7 @@ namespace osu.Game.Screens.Ranking
|
|||||||
|
|
||||||
state = value;
|
state = value;
|
||||||
|
|
||||||
if (LoadState >= LoadState.Ready)
|
if (IsLoaded)
|
||||||
updateState();
|
updateState();
|
||||||
|
|
||||||
StateChanged?.Invoke(value);
|
StateChanged?.Invoke(value);
|
||||||
@ -212,7 +212,10 @@ namespace osu.Game.Screens.Ranking
|
|||||||
middleLayerBackground.FadeColour(expanded_middle_layer_colour, resize_duration, Easing.OutQuint);
|
middleLayerBackground.FadeColour(expanded_middle_layer_colour, resize_duration, Easing.OutQuint);
|
||||||
|
|
||||||
topLayerContentContainer.Add(topLayerContent = new ExpandedPanelTopContent(Score.User).With(d => d.Alpha = 0));
|
topLayerContentContainer.Add(topLayerContent = new ExpandedPanelTopContent(Score.User).With(d => d.Alpha = 0));
|
||||||
middleLayerContentContainer.Add(middleLayerContent = new ExpandedPanelMiddleContent(Score, isNewLocalScore).With(d => d.Alpha = 0));
|
middleLayerContentContainer.Add(middleLayerContent = new ExpandedPanelMiddleContent(Score, displayWithFlair).With(d => d.Alpha = 0));
|
||||||
|
|
||||||
|
// only the first expanded display should happen with flair.
|
||||||
|
displayWithFlair = false;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case PanelState.Contracted:
|
case PanelState.Contracted:
|
||||||
|
Loading…
Reference in New Issue
Block a user