1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-22 06:47:24 +08:00

Fix visuals in circle gameplay and greedy hover

This commit is contained in:
Dean Herbert 2022-06-10 20:25:33 +09:00
parent b956a916c1
commit 8ce545ff9d

View File

@ -120,7 +120,7 @@ namespace osu.Game.Screens.Utility
private void hit(HitEvent h) private void hit(HitEvent h)
{ {
hitEvents.Add(h); hitEvents.Add(h);
unstableRate.Text = $"UR: {hitEvents.CalculateUnstableRate()}"; unstableRate.Text = $"UR: {hitEvents.CalculateUnstableRate():N0}";
} }
public class SampleHitCircle : LatencySampleComponent public class SampleHitCircle : LatencySampleComponent
@ -149,7 +149,7 @@ namespace osu.Game.Screens.Utility
} }
[BackgroundDependencyLoader] [BackgroundDependencyLoader]
private void load() private void load(OsuColour colours)
{ {
InternalChildren = new Drawable[] InternalChildren = new Drawable[]
{ {
@ -162,7 +162,7 @@ namespace osu.Game.Screens.Utility
}, },
approach = new CircularContainer approach = new CircularContainer
{ {
BorderColour = OverlayColourProvider.Colour1, BorderColour = colours.Blue,
Size = new Vector2(size), Size = new Vector2(size),
Masking = true, Masking = true,
BorderThickness = 4, BorderThickness = 4,
@ -181,8 +181,6 @@ namespace osu.Game.Screens.Utility
}; };
} }
protected override bool OnHover(HoverEvent e) => true;
protected override bool OnMouseDown(MouseDownEvent e) protected override bool OnMouseDown(MouseDownEvent e)
{ {
if (HitEvent != null) if (HitEvent != null)