mirror of
https://github.com/ppy/osu.git
synced 2025-01-28 11:42:55 +08:00
Use a better default size for line
This commit is contained in:
parent
f31c1c9c79
commit
99d9db5b76
@ -137,7 +137,12 @@ namespace osu.Game.Skinning
|
|||||||
health.Position = new Vector2(components_x_offset, 20f);
|
health.Position = new Vector2(components_x_offset, 20f);
|
||||||
|
|
||||||
if (healthLine != null)
|
if (healthLine != null)
|
||||||
healthLine.Y = health.Y;
|
{
|
||||||
|
healthLine.Anchor = Anchor.TopLeft;
|
||||||
|
healthLine.Origin = Anchor.CentreLeft;
|
||||||
|
healthLine.Y = health.Y + ArgonHealthDisplay.MAIN_PATH_RADIUS;
|
||||||
|
healthLine.Size = new Vector2(45, 3);
|
||||||
|
}
|
||||||
|
|
||||||
if (scoreWedge != null)
|
if (scoreWedge != null)
|
||||||
{
|
{
|
||||||
|
@ -1,29 +1,18 @@
|
|||||||
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
||||||
// See the LICENCE file in the repository root for full licence text.
|
// See the LICENCE file in the repository root for full licence text.
|
||||||
|
|
||||||
using osu.Framework.Allocation;
|
|
||||||
using osu.Framework.Graphics;
|
|
||||||
using osu.Framework.Graphics.Containers;
|
|
||||||
using osu.Framework.Graphics.Shapes;
|
using osu.Framework.Graphics.Shapes;
|
||||||
|
using osuTK;
|
||||||
|
|
||||||
namespace osu.Game.Skinning.Components
|
namespace osu.Game.Skinning.Components
|
||||||
{
|
{
|
||||||
public partial class RoundedLine : CompositeDrawable, ISerialisableDrawable
|
public partial class RoundedLine : Circle, ISerialisableDrawable
|
||||||
{
|
{
|
||||||
public bool UsesFixedAnchor { get; set; }
|
public bool UsesFixedAnchor { get; set; }
|
||||||
|
|
||||||
[BackgroundDependencyLoader]
|
public RoundedLine()
|
||||||
private void load()
|
|
||||||
{
|
{
|
||||||
AutoSizeAxes = Axes.Both;
|
Size = new Vector2(200, 8);
|
||||||
|
|
||||||
InternalChild = new Circle
|
|
||||||
{
|
|
||||||
Anchor = Anchor.CentreLeft,
|
|
||||||
Origin = Anchor.CentreLeft,
|
|
||||||
Width = 45f,
|
|
||||||
Height = 3f,
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user