mirror of
https://github.com/ppy/osu.git
synced 2025-01-13 16:32:54 +08:00
Adjust transition for smaller sizes
This commit is contained in:
parent
a1ece4f308
commit
c86a003ef9
@ -102,12 +102,14 @@ namespace osu.Game.Screens.Ranking
|
||||
{
|
||||
Anchor = Anchor.Centre,
|
||||
Origin = Anchor.Centre,
|
||||
Size = new Vector2(40),
|
||||
Children = new Drawable[]
|
||||
{
|
||||
topLayerContainer = new Container
|
||||
{
|
||||
Name = "Top layer",
|
||||
RelativeSizeAxes = Axes.X,
|
||||
Alpha = 0,
|
||||
Height = 120,
|
||||
Children = new Drawable[]
|
||||
{
|
||||
@ -214,6 +216,8 @@ namespace osu.Game.Screens.Ranking
|
||||
// If the top layer was already expanded, then we don't need to wait for the resize and can instead transform immediately. This looks better when changing the panel state.
|
||||
using (BeginDelayedSequence(topLayerExpanded ? 0 : resize_duration + top_layer_expand_delay, true))
|
||||
{
|
||||
topLayerContainer.FadeIn();
|
||||
|
||||
switch (state)
|
||||
{
|
||||
case PanelState.Expanded:
|
||||
|
Loading…
Reference in New Issue
Block a user