mirror of
https://github.com/osukey/osukey.git
synced 2025-07-02 16:59:53 +09:00
Minor refactoring
This commit is contained in:
@ -21,9 +21,11 @@ namespace osu.Game.Graphics.UserInterface
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public class HoverClickSounds : HoverSounds
|
public class HoverClickSounds : HoverSounds
|
||||||
{
|
{
|
||||||
|
public Bindable<bool> Enabled = new Bindable<bool>(true);
|
||||||
|
|
||||||
private Sample sampleClick;
|
private Sample sampleClick;
|
||||||
private Sample sampleClickDisabled;
|
private Sample sampleClickDisabled;
|
||||||
public Bindable<bool> Enabled = new Bindable<bool>(true);
|
|
||||||
private readonly MouseButton[] buttons;
|
private readonly MouseButton[] buttons;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -124,7 +124,7 @@ namespace osu.Game.Overlays.Toolbar
|
|||||||
base.OnHoverLost(e);
|
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()
|
private void cycleDisplayMode()
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user