1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-28 06:03:08 +08:00

Remove health line detail

This commit is contained in:
Salman Ahmed 2023-11-05 01:52:12 +03:00
parent 91cf237fc1
commit 1c844a155e
2 changed files with 29 additions and 39 deletions

View File

@ -11,7 +11,6 @@ using osu.Framework.Graphics;
using osu.Framework.Graphics.Colour; using osu.Framework.Graphics.Colour;
using osu.Framework.Graphics.Containers; using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.Lines; using osu.Framework.Graphics.Lines;
using osu.Framework.Graphics.Shapes;
using osu.Framework.Layout; using osu.Framework.Layout;
using osu.Framework.Threading; using osu.Framework.Threading;
using osu.Framework.Utils; using osu.Framework.Utils;
@ -101,17 +100,9 @@ namespace osu.Game.Screens.Play.HUD
RelativeSizeAxes = Axes.X; RelativeSizeAxes = Axes.X;
AutoSizeAxes = Axes.Y; AutoSizeAxes = Axes.Y;
InternalChildren = new[] InternalChild = new Container
{
new Circle
{
Position = new Vector2(-4f, main_path_radius - 1.5f),
Size = new Vector2(50f, 3f),
},
new Container
{ {
AutoSizeAxes = Axes.Both, AutoSizeAxes = Axes.Both,
Margin = new MarginPadding { Left = 50f },
Children = new Drawable[] Children = new Drawable[]
{ {
background = new BackgroundPath background = new BackgroundPath
@ -140,7 +131,6 @@ namespace osu.Game.Screens.Play.HUD
GlowPortion = 0.6f, GlowPortion = 0.6f,
}, },
} }
}
}; };
} }

View File

@ -130,8 +130,8 @@ namespace osu.Game.Skinning
// elements default to beneath the health bar // elements default to beneath the health bar
const float components_x_offset = 50; const float components_x_offset = 50;
health.Anchor = Anchor.TopLeft; health.Anchor = Anchor.TopCentre;
health.Origin = Anchor.TopLeft; health.Origin = Anchor.TopCentre;
health.Y = 15; health.Y = 15;
if (scoreWedge != null) if (scoreWedge != null)