1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 20:07:29 +08:00

Fix default health bar not being considered for top-right flow layout

This commit is contained in:
Dean Herbert 2021-05-11 14:22:19 +09:00
parent 944f09ec98
commit 03d5f10744

View File

@ -213,11 +213,11 @@ namespace osu.Game.Screens.Play
foreach (var element in mainComponents.Children)
{
// for now align top-right components with the bottom-edge of the lowest top-anchored hud element.
if (!element.Anchor.HasFlagFast(Anchor.TopRight))
if (!element.Anchor.HasFlagFast(Anchor.TopRight) && !element.RelativeSizeAxes.HasFlagFast(Axes.X))
continue;
// health bars are excluded for the sake of hacky legacy skins which extend the health bar to take up the full screen area.
if (element is HealthDisplay)
if (element is LegacyHealthDisplay)
continue;
var bottomRight = element.ScreenSpaceDrawQuad.BottomRight;