1
0
mirror of https://github.com/ppy/osu.git synced 2026-06-04 23:44:44 +08:00

Fix default argon health bar width being zero

Closes #25460.
This commit is contained in:
Bartłomiej Dach
2023-11-15 12:24:47 +09:00
Unverified
parent 3b619d4c34
commit 159cf41f82
@@ -94,6 +94,13 @@ namespace osu.Game.Screens.Play.HUD
public ArgonHealthDisplay()
{
AddLayout(drawSizeLayout);
// sane default width specification.
// this only matters if the health display isn't part of the default skin
// (in which case width will be set to 300 via `ArgonSkin.GetDrawableComponent()`),
// and if the user hasn't applied their own modifications
// (which are applied via `SerialisedDrawableInfo.ApplySerialisedInfo()`).
Width = 0.98f;
}
[BackgroundDependencyLoader]