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

Change RevertToDefaultButton and BackButton to use Default sampleset instead

This commit is contained in:
Jamie Taylor 2023-10-20 14:36:36 +09:00
parent 6dc4dbde13
commit 6b28f85615
No known key found for this signature in database
GPG Key ID: 2ACFA8B6370B8C8C
3 changed files with 8 additions and 8 deletions

View File

@ -13,7 +13,6 @@ using osu.Framework.Input.Events;
using osu.Framework.Localisation;
using osu.Game.Graphics;
using osu.Game.Graphics.Containers;
using osu.Game.Graphics.UserInterface;
using osu.Game.Localisation;
using osuTK;
@ -56,11 +55,6 @@ namespace osu.Game.Overlays
}
}
public RevertToDefaultButton()
: base(HoverSampleSet.Button)
{
}
[BackgroundDependencyLoader]
private void load()
{

View File

@ -14,8 +14,8 @@ namespace osu.Game.Overlays.Settings
[Resolved]
protected OverlayColourProvider ColourProvider { get; private set; } = null!;
protected SidebarButton()
: base(HoverSampleSet.ButtonSidebar)
protected SidebarButton(HoverSampleSet? hoverSounds = HoverSampleSet.ButtonSidebar)
: base(hoverSounds)
{
}

View File

@ -9,6 +9,7 @@ using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.Sprites;
using osu.Game.Graphics;
using osu.Game.Graphics.Sprites;
using osu.Game.Graphics.UserInterface;
using osu.Game.Overlays.Settings;
using osuTK;
@ -38,6 +39,11 @@ namespace osu.Game.Overlays
{
private Container content;
public BackButton()
: base(HoverSampleSet.Default)
{
}
[BackgroundDependencyLoader]
private void load()
{