Consolidate HoverClickSounds constructors

As suggested in review, merge both HoverClickSounds constructors into
one accepting optional arguments. Due to existing usages the parameter
is added as second and supplied by name in ModButton.
This commit is contained in:
Bartłomiej Dach
2019-09-01 13:10:11 +02:00
parent 658e0edc3e
commit c4dc34eefd
2 changed files with 7 additions and 13 deletions

View File

@ -283,7 +283,7 @@ namespace osu.Game.Overlays.Mods
Anchor = Anchor.TopCentre,
Font = OsuFont.GetFont(size: 18)
},
new HoverClickSounds(new[] { MouseButton.Left, MouseButton.Right })
new HoverClickSounds(buttons: new[] { MouseButton.Left, MouseButton.Right })
};
Mod = mod;