mirror of
https://github.com/ppy/osu.git
synced 2026-05-18 14:10:33 +08:00
Add tooltip to revert-to-default button
This commit is contained in:
@@ -6,8 +6,10 @@ using osu.Framework.Graphics;
|
||||
using osu.Framework.Graphics.Shapes;
|
||||
using osu.Framework.Graphics.Sprites;
|
||||
using osu.Framework.Input.Events;
|
||||
using osu.Framework.Localisation;
|
||||
using osu.Game.Graphics;
|
||||
using osu.Game.Graphics.Containers;
|
||||
using osu.Game.Localisation;
|
||||
using osuTK;
|
||||
|
||||
namespace osu.Game.Overlays.Settings
|
||||
@@ -64,6 +66,8 @@ namespace osu.Game.Overlays.Settings
|
||||
Enabled.BindValueChanged(_ => updateDisplay(), true);
|
||||
}
|
||||
|
||||
public override LocalisableString TooltipText => CommonStrings.RevertToDefault;
|
||||
|
||||
protected override bool OnHover(HoverEvent e)
|
||||
{
|
||||
updateDisplay();
|
||||
|
||||
Reference in New Issue
Block a user