mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 11:28:00 +08:00
Adjust adjustment to 1px based on review feedback
Also split out `Size` variable for clarity
This commit is contained in:
parent
03a5b701e9
commit
bddb91dc0a
@ -48,12 +48,14 @@ namespace osu.Game.Rulesets.Osu.Skinning.Argon
|
|||||||
|
|
||||||
private Bindable<bool> configHitLighting = null!;
|
private Bindable<bool> configHitLighting = null!;
|
||||||
|
|
||||||
|
private static readonly Vector2 circle_size = new Vector2(OsuHitObject.OBJECT_RADIUS * 2);
|
||||||
|
|
||||||
[Resolved]
|
[Resolved]
|
||||||
private DrawableHitObject drawableObject { get; set; } = null!;
|
private DrawableHitObject drawableObject { get; set; } = null!;
|
||||||
|
|
||||||
public ArgonMainCirclePiece(bool withOuterFill)
|
public ArgonMainCirclePiece(bool withOuterFill)
|
||||||
{
|
{
|
||||||
Size = new Vector2(OsuHitObject.OBJECT_RADIUS * 2);
|
Size = circle_size;
|
||||||
|
|
||||||
Anchor = Anchor.Centre;
|
Anchor = Anchor.Centre;
|
||||||
Origin = Anchor.Centre;
|
Origin = Anchor.Centre;
|
||||||
@ -65,7 +67,7 @@ namespace osu.Game.Rulesets.Osu.Skinning.Argon
|
|||||||
Anchor = Anchor.Centre,
|
Anchor = Anchor.Centre,
|
||||||
Origin = Anchor.Centre,
|
Origin = Anchor.Centre,
|
||||||
// Slightly inset to prevent bleeding outside the ring
|
// Slightly inset to prevent bleeding outside the ring
|
||||||
Size = Size - new Vector2(0.5f),
|
Size = circle_size - new Vector2(1),
|
||||||
Alpha = withOuterFill ? 1 : 0,
|
Alpha = withOuterFill ? 1 : 0,
|
||||||
},
|
},
|
||||||
outerGradient = new Circle // renders the outer bright gradient
|
outerGradient = new Circle // renders the outer bright gradient
|
||||||
@ -91,7 +93,7 @@ namespace osu.Game.Rulesets.Osu.Skinning.Argon
|
|||||||
Masking = true,
|
Masking = true,
|
||||||
Anchor = Anchor.Centre,
|
Anchor = Anchor.Centre,
|
||||||
Origin = Anchor.Centre,
|
Origin = Anchor.Centre,
|
||||||
Size = Size,
|
Size = circle_size,
|
||||||
Child = new KiaiFlash
|
Child = new KiaiFlash
|
||||||
{
|
{
|
||||||
RelativeSizeAxes = Axes.Both,
|
RelativeSizeAxes = Axes.Both,
|
||||||
|
Loading…
Reference in New Issue
Block a user