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

Only show hover effect on one nub at a time

This commit is contained in:
Dean Herbert 2022-07-03 03:06:03 +09:00
parent 7d8ea5e286
commit 052a786eff

View File

@ -7,6 +7,7 @@ using osu.Framework.Allocation;
using osu.Framework.Bindables;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Framework.Input.Events;
using osu.Framework.Localisation;
using osu.Game.Configuration;
using osu.Game.Graphics;
@ -102,6 +103,12 @@ namespace osu.Game.Screens.Select
? UserInterfaceStrings.NoLimit
: Current.Value.ToString(@"0.## stars");
protected override bool OnHover(HoverEvent e)
{
base.OnHover(e);
return true; // Make sure only one nub shows hover effect at once.
}
protected override void LoadComplete()
{
base.LoadComplete();