mirror of
https://github.com/ppy/osu.git
synced 2025-02-14 23:33:23 +08:00
Rename and move skinnable line component to a more commomn place
This commit is contained in:
parent
d3af3c615f
commit
f31c1c9c79
@ -16,6 +16,7 @@ using osu.Game.IO;
|
||||
using osu.Game.Screens.Play;
|
||||
using osu.Game.Screens.Play.HUD;
|
||||
using osu.Game.Screens.Play.HUD.HitErrorMeters;
|
||||
using osu.Game.Skinning.Components;
|
||||
using osuTK;
|
||||
using osuTK.Graphics;
|
||||
|
||||
@ -115,7 +116,7 @@ namespace osu.Game.Skinning
|
||||
var skinnableTargetWrapper = new DefaultSkinComponentsContainer(container =>
|
||||
{
|
||||
var health = container.OfType<ArgonHealthDisplay>().FirstOrDefault();
|
||||
var healthLine = container.OfType<ArgonHealthRightLine>().FirstOrDefault();
|
||||
var healthLine = container.OfType<RoundedLine>().FirstOrDefault();
|
||||
var scoreWedge = container.OfType<ArgonScoreWedge>().FirstOrDefault();
|
||||
var score = container.OfType<ArgonScoreCounter>().FirstOrDefault();
|
||||
var accuracy = container.OfType<ArgonAccuracyCounter>().FirstOrDefault();
|
||||
@ -207,7 +208,7 @@ namespace osu.Game.Skinning
|
||||
new ArgonScoreWedge(),
|
||||
new ArgonScoreCounter(),
|
||||
new ArgonHealthDisplay(),
|
||||
new ArgonHealthRightLine(),
|
||||
new RoundedLine(),
|
||||
new ArgonAccuracyCounter(),
|
||||
new ArgonComboCounter(),
|
||||
new BarHitErrorMeter(),
|
||||
|
@ -5,19 +5,18 @@ using osu.Framework.Allocation;
|
||||
using osu.Framework.Graphics;
|
||||
using osu.Framework.Graphics.Containers;
|
||||
using osu.Framework.Graphics.Shapes;
|
||||
using osu.Game.Skinning;
|
||||
using osuTK;
|
||||
|
||||
namespace osu.Game.Screens.Play.HUD
|
||||
namespace osu.Game.Skinning.Components
|
||||
{
|
||||
public partial class ArgonHealthRightLine : CompositeDrawable, ISerialisableDrawable
|
||||
public partial class RoundedLine : CompositeDrawable, ISerialisableDrawable
|
||||
{
|
||||
public bool UsesFixedAnchor { get; set; }
|
||||
|
||||
[BackgroundDependencyLoader]
|
||||
private void load()
|
||||
{
|
||||
Size = new Vector2(50f, ArgonHealthDisplay.MAIN_PATH_RADIUS * 2);
|
||||
AutoSizeAxes = Axes.Both;
|
||||
|
||||
InternalChild = new Circle
|
||||
{
|
||||
Anchor = Anchor.CentreLeft,
|
Loading…
Reference in New Issue
Block a user