1
0
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:
Salman Alshamrani
2025-12-18 18:56:18 -05:00
Unverified
parent de0c191c47
commit a4215e0442
@@ -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();