mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 22:22:54 +08:00
Minor refactoring
This commit is contained in:
parent
f75c4ba95f
commit
f6c376c090
@ -21,9 +21,11 @@ namespace osu.Game.Graphics.UserInterface
|
||||
/// </summary>
|
||||
public class HoverClickSounds : HoverSounds
|
||||
{
|
||||
public Bindable<bool> Enabled = new Bindable<bool>(true);
|
||||
|
||||
private Sample sampleClick;
|
||||
private Sample sampleClickDisabled;
|
||||
public Bindable<bool> Enabled = new Bindable<bool>(true);
|
||||
|
||||
private readonly MouseButton[] buttons;
|
||||
|
||||
/// <summary>
|
||||
|
@ -124,7 +124,7 @@ namespace osu.Game.Overlays.Toolbar
|
||||
base.OnHoverLost(e);
|
||||
}
|
||||
|
||||
protected override HoverSounds CreateHoverSounds(HoverSampleSet sampleSet) => new HoverClickSounds(sampleSet) { Enabled = { Value = true } };
|
||||
protected override HoverSounds CreateHoverSounds(HoverSampleSet sampleSet) => new HoverClickSounds(sampleSet);
|
||||
|
||||
private void cycleDisplayMode()
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user