mirror of
https://github.com/ppy/osu.git
synced 2025-01-28 12:32:56 +08:00
fix mod button samples
This commit is contained in:
parent
2ba3c4b87a
commit
c9784f57d3
@ -151,8 +151,8 @@ namespace osu.Game.Overlays.Mods
|
||||
[BackgroundDependencyLoader]
|
||||
private void load(AudioManager audio)
|
||||
{
|
||||
sampleOn = audio.Sample.Get(@"Checkbox/check-on");
|
||||
sampleOff = audio.Sample.Get(@"Checkbox/check-off");
|
||||
sampleOn = audio.Sample.Get(@"UI/check-on");
|
||||
sampleOff = audio.Sample.Get(@"UI/check-off");
|
||||
}
|
||||
|
||||
protected override bool OnMouseDown(InputState state, MouseDownEventArgs args)
|
||||
@ -171,7 +171,7 @@ namespace osu.Game.Overlays.Mods
|
||||
|
||||
public void SelectNext()
|
||||
{
|
||||
(++SelectedIndex == -1 ? sampleOff : sampleOn).Play();
|
||||
(++SelectedIndex == Mods.Count() ? sampleOff : sampleOn).Play();
|
||||
Action?.Invoke(SelectedMod);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user