mirror of
https://github.com/ppy/osu.git
synced 2025-02-21 20:12:57 +08:00
Fix stats not displaying on showcase screen
This commit is contained in:
parent
f91d2e2e07
commit
7d3bcdfc17
@ -53,6 +53,7 @@ namespace osu.Game.Tournament.Components
|
|||||||
private float panelWidth => expanded ? 0.6f : 1;
|
private float panelWidth => expanded ? 0.6f : 1;
|
||||||
|
|
||||||
private const float main_width = 0.97f;
|
private const float main_width = 0.97f;
|
||||||
|
private const float inner_panel_width = 0.7f;
|
||||||
|
|
||||||
private bool expanded;
|
private bool expanded;
|
||||||
|
|
||||||
@ -66,7 +67,7 @@ namespace osu.Game.Tournament.Components
|
|||||||
|
|
||||||
if (expanded)
|
if (expanded)
|
||||||
{
|
{
|
||||||
innerPanel.ResizeWidthTo(0.7f, 800, Easing.OutQuint);
|
innerPanel.ResizeWidthTo(inner_panel_width, 800, Easing.OutQuint);
|
||||||
outerPanel.ResizeWidthTo(main_width, 800, Easing.OutQuint);
|
outerPanel.ResizeWidthTo(main_width, 800, Easing.OutQuint);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -126,7 +127,7 @@ namespace osu.Game.Tournament.Components
|
|||||||
Anchor = Anchor.Centre,
|
Anchor = Anchor.Centre,
|
||||||
Origin = Anchor.Centre,
|
Origin = Anchor.Centre,
|
||||||
RelativeSizeAxes = Axes.Both,
|
RelativeSizeAxes = Axes.Both,
|
||||||
Width = 0.7f,
|
Width = inner_panel_width,
|
||||||
Children = new Drawable[]
|
Children = new Drawable[]
|
||||||
{
|
{
|
||||||
new Box
|
new Box
|
||||||
@ -143,6 +144,8 @@ namespace osu.Game.Tournament.Components
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Expanded = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void update()
|
private void update()
|
||||||
|
Loading…
Reference in New Issue
Block a user