1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 11:37:28 +08:00

Move radius adjust local to fruit piece

This commit is contained in:
Dean Herbert 2020-02-19 09:39:56 +09:00
parent ded7f5ff1b
commit 73e5018696
2 changed files with 7 additions and 7 deletions

View File

@ -16,11 +16,6 @@ namespace osu.Game.Rulesets.Catch.Objects.Drawable
{
private Container scaleContainer;
/// <summary>
/// Because we're adding a border around the fruit, we need to scale down some.
/// </summary>
public const float RADIUS_ADJUST = 1.1f;
public DrawableFruit(Fruit h)
: base(h)
{

View File

@ -16,6 +16,11 @@ namespace osu.Game.Rulesets.Catch.Objects.Drawable
{
internal class FruitPiece : CompositeDrawable
{
/// <summary>
/// Because we're adding a border around the fruit, we need to scale down some.
/// </summary>
private const float radius_adjust = 1.1f;
private Circle border;
private CatchHitObject hitObject;
@ -44,7 +49,7 @@ namespace osu.Game.Rulesets.Catch.Objects.Drawable
Anchor = Anchor.Centre,
Origin = Anchor.Centre,
BorderColour = Color4.White,
BorderThickness = 6f * DrawableFruit.RADIUS_ADJUST,
BorderThickness = 6f * radius_adjust,
Children = new Framework.Graphics.Drawable[]
{
new Box
@ -82,7 +87,7 @@ namespace osu.Game.Rulesets.Catch.Objects.Drawable
private Framework.Graphics.Drawable createPulp(FruitVisualRepresentation representation)
{
const float large_pulp_3 = 16f * DrawableFruit.RADIUS_ADJUST;
const float large_pulp_3 = 16f * radius_adjust;
const float distance_from_centre_3 = 0.15f;
const float large_pulp_4 = large_pulp_3 * 0.925f;