mirror of
https://github.com/ppy/osu.git
synced 2025-01-13 15:52:54 +08:00
Remove health line detail
This commit is contained in:
parent
91cf237fc1
commit
1c844a155e
@ -11,7 +11,6 @@ using osu.Framework.Graphics;
|
||||
using osu.Framework.Graphics.Colour;
|
||||
using osu.Framework.Graphics.Containers;
|
||||
using osu.Framework.Graphics.Lines;
|
||||
using osu.Framework.Graphics.Shapes;
|
||||
using osu.Framework.Layout;
|
||||
using osu.Framework.Threading;
|
||||
using osu.Framework.Utils;
|
||||
@ -101,45 +100,36 @@ namespace osu.Game.Screens.Play.HUD
|
||||
RelativeSizeAxes = Axes.X;
|
||||
AutoSizeAxes = Axes.Y;
|
||||
|
||||
InternalChildren = new[]
|
||||
InternalChild = new Container
|
||||
{
|
||||
new Circle
|
||||
AutoSizeAxes = Axes.Both,
|
||||
Children = new Drawable[]
|
||||
{
|
||||
Position = new Vector2(-4f, main_path_radius - 1.5f),
|
||||
Size = new Vector2(50f, 3f),
|
||||
},
|
||||
new Container
|
||||
{
|
||||
AutoSizeAxes = Axes.Both,
|
||||
Margin = new MarginPadding { Left = 50f },
|
||||
Children = new Drawable[]
|
||||
background = new BackgroundPath
|
||||
{
|
||||
background = new BackgroundPath
|
||||
{
|
||||
PathRadius = main_path_radius,
|
||||
},
|
||||
glowBar = new BarPath
|
||||
{
|
||||
BarColour = Color4.White,
|
||||
GlowColour = main_bar_glow_colour,
|
||||
Blending = BlendingParameters.Additive,
|
||||
Colour = ColourInfo.GradientHorizontal(Color4.White.Opacity(0.8f), Color4.White),
|
||||
PathRadius = 40f,
|
||||
// Kinda hacky, but results in correct positioning with increased path radius.
|
||||
Margin = new MarginPadding(-30f),
|
||||
GlowPortion = 0.9f,
|
||||
},
|
||||
mainBar = new BarPath
|
||||
{
|
||||
AutoSizeAxes = Axes.None,
|
||||
RelativeSizeAxes = Axes.Both,
|
||||
Blending = BlendingParameters.Additive,
|
||||
BarColour = main_bar_colour,
|
||||
GlowColour = main_bar_glow_colour,
|
||||
PathRadius = main_path_radius,
|
||||
GlowPortion = 0.6f,
|
||||
},
|
||||
}
|
||||
PathRadius = main_path_radius,
|
||||
},
|
||||
glowBar = new BarPath
|
||||
{
|
||||
BarColour = Color4.White,
|
||||
GlowColour = main_bar_glow_colour,
|
||||
Blending = BlendingParameters.Additive,
|
||||
Colour = ColourInfo.GradientHorizontal(Color4.White.Opacity(0.8f), Color4.White),
|
||||
PathRadius = 40f,
|
||||
// Kinda hacky, but results in correct positioning with increased path radius.
|
||||
Margin = new MarginPadding(-30f),
|
||||
GlowPortion = 0.9f,
|
||||
},
|
||||
mainBar = new BarPath
|
||||
{
|
||||
AutoSizeAxes = Axes.None,
|
||||
RelativeSizeAxes = Axes.Both,
|
||||
Blending = BlendingParameters.Additive,
|
||||
BarColour = main_bar_colour,
|
||||
GlowColour = main_bar_glow_colour,
|
||||
PathRadius = main_path_radius,
|
||||
GlowPortion = 0.6f,
|
||||
},
|
||||
}
|
||||
};
|
||||
}
|
||||
|
@ -130,8 +130,8 @@ namespace osu.Game.Skinning
|
||||
// elements default to beneath the health bar
|
||||
const float components_x_offset = 50;
|
||||
|
||||
health.Anchor = Anchor.TopLeft;
|
||||
health.Origin = Anchor.TopLeft;
|
||||
health.Anchor = Anchor.TopCentre;
|
||||
health.Origin = Anchor.TopCentre;
|
||||
health.Y = 15;
|
||||
|
||||
if (scoreWedge != null)
|
||||
|
Loading…
Reference in New Issue
Block a user