Fix pulp and use relative sizse

This commit is contained in:
smoogipoo 2020-08-21 12:29:28 +09:00
parent f956c9fe37
commit f00bc67aaa
2 changed files with 2 additions and 3 deletions

View File

@ -27,8 +27,7 @@ namespace osu.Game.Rulesets.Catch.Objects.Drawables
InternalChild = new Pulp InternalChild = new Pulp
{ {
// RelativeSizeAxes is not used since the edge effect uses Size. RelativeSizeAxes = Axes.Both,
Size = Size,
AccentColour = { BindTarget = drawableObject.AccentColour } AccentColour = { BindTarget = drawableObject.AccentColour }
}; };

View File

@ -36,7 +36,7 @@ namespace osu.Game.Rulesets.Catch.Objects.Drawables.Pieces
EdgeEffect = new EdgeEffectParameters EdgeEffect = new EdgeEffectParameters
{ {
Type = EdgeEffectType.Glow, Type = EdgeEffectType.Glow,
Radius = Size.X / 2, Radius = DrawWidth / 2,
Colour = colour.NewValue.Darken(0.2f).Opacity(0.75f) Colour = colour.NewValue.Darken(0.2f).Opacity(0.75f)
}; };
} }