mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 21:02:55 +08:00
Ensure containers which are being used to hide HUD elements still update for now
I don't think this is necessarily a final solution (as this means all HUD elements are adding overhead even when not visible), but this will make the implementations much easier for the time being. I've checked and can't notice any perceivable overhead in profiling so we should be fine for now.
This commit is contained in:
parent
bd9ea9bd6f
commit
a20e43c2ae
@ -86,7 +86,10 @@ namespace osu.Game.Screens.Play
|
|||||||
Children = new Drawable[]
|
Children = new Drawable[]
|
||||||
{
|
{
|
||||||
CreateFailingLayer(),
|
CreateFailingLayer(),
|
||||||
mainComponents = new MainComponentsContainer(),
|
mainComponents = new MainComponentsContainer
|
||||||
|
{
|
||||||
|
AlwaysPresent = true,
|
||||||
|
},
|
||||||
topRightElements = new FillFlowContainer
|
topRightElements = new FillFlowContainer
|
||||||
{
|
{
|
||||||
Anchor = Anchor.TopRight,
|
Anchor = Anchor.TopRight,
|
||||||
@ -108,6 +111,7 @@ namespace osu.Game.Screens.Play
|
|||||||
Margin = new MarginPadding(10),
|
Margin = new MarginPadding(10),
|
||||||
Spacing = new Vector2(10),
|
Spacing = new Vector2(10),
|
||||||
AutoSizeAxes = Axes.Both,
|
AutoSizeAxes = Axes.Both,
|
||||||
|
AlwaysPresent = true,
|
||||||
LayoutDuration = FADE_DURATION / 2,
|
LayoutDuration = FADE_DURATION / 2,
|
||||||
LayoutEasing = FADE_EASING,
|
LayoutEasing = FADE_EASING,
|
||||||
Direction = FillDirection.Vertical,
|
Direction = FillDirection.Vertical,
|
||||||
|
Loading…
Reference in New Issue
Block a user