1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-22 13:45:08 +08:00

Fix regression in hitcircle appearance.

This commit is contained in:
Dean Herbert 2016-11-04 16:08:04 +09:00
parent 9df43c6d33
commit 108b7092c9

View File

@ -215,6 +215,7 @@ namespace osu.Game.Beatmaps.Objects.Osu.Drawable
public FlashLayer() public FlashLayer()
{ {
Size = new Vector2(144); Size = new Vector2(144);
Masking = true; Masking = true;
CornerRadius = Size.X / 2; CornerRadius = Size.X / 2;
@ -271,7 +272,8 @@ namespace osu.Game.Beatmaps.Objects.Osu.Drawable
{ {
Texture = tex, Texture = tex,
Origin = Anchor.Centre, Origin = Anchor.Centre,
Position = new Vector2(RNG.NextSingle() * DrawSize.X, RNG.NextSingle() * DrawSize.Y), Position = new Vector2(RNG.NextSingle(), RNG.NextSingle()),
RelativePositionAxes = Axes.Both,
Scale = new Vector2(RNG.NextSingle() * 0.4f + 0.2f), Scale = new Vector2(RNG.NextSingle() * 0.4f + 0.2f),
Alpha = RNG.NextSingle() * 0.3f Alpha = RNG.NextSingle() * 0.3f
}); });
@ -283,7 +285,7 @@ namespace osu.Game.Beatmaps.Objects.Osu.Drawable
base.Update(); base.Update();
foreach (Framework.Graphics.Drawable d in Children) foreach (Framework.Graphics.Drawable d in Children)
d.Position -= new Vector2(0, (float)(d.Scale.X * (Clock.ElapsedFrameTime / 20))); d.Position -= new Vector2(0, (float)(d.Scale.X * (Clock.ElapsedFrameTime / 2880)));
} }
} }
} }
@ -348,7 +350,8 @@ namespace osu.Game.Beatmaps.Objects.Osu.Drawable
{ {
Texture = tex, Texture = tex,
Origin = Anchor.Centre, Origin = Anchor.Centre,
Position = new Vector2(RNG.NextSingle() * DrawSize.X, RNG.NextSingle() * DrawSize.Y), RelativePositionAxes = Axes.Both,
Position = new Vector2(RNG.NextSingle(), RNG.NextSingle()),
Scale = new Vector2(RNG.NextSingle() * 0.4f + 0.2f), Scale = new Vector2(RNG.NextSingle() * 0.4f + 0.2f),
Alpha = RNG.NextSingle() * 0.3f Alpha = RNG.NextSingle() * 0.3f
}); });
@ -360,7 +363,7 @@ namespace osu.Game.Beatmaps.Objects.Osu.Drawable
base.Update(); base.Update();
foreach (Framework.Graphics.Drawable d in Children) foreach (Framework.Graphics.Drawable d in Children)
d.Position -= new Vector2(0, (float)(d.Scale.X * (Clock.ElapsedFrameTime / 20))); d.Position -= new Vector2(0, (float)(d.Scale.X * (Clock.ElapsedFrameTime / 2880)));
} }
} }
} }