mirror of
https://github.com/ppy/osu.git
synced 2025-01-28 23:12:55 +08:00
Remove unused function
This commit is contained in:
parent
b71c776e65
commit
86c9d5251f
@ -84,7 +84,11 @@ namespace osu.Game.Overlays.BeatmapSet
|
|||||||
protected override bool OnHover(HoverEvent e)
|
protected override bool OnHover(HoverEvent e)
|
||||||
{
|
{
|
||||||
if (!SelectedMods.Value.Any())
|
if (!SelectedMods.Value.Any())
|
||||||
dehighlightAll();
|
modsContainer.ForEach(button =>
|
||||||
|
{
|
||||||
|
if (!button.IsHovered)
|
||||||
|
button.Highlighted.Value = false;
|
||||||
|
});
|
||||||
|
|
||||||
return base.OnHover(e);
|
return base.OnHover(e);
|
||||||
}
|
}
|
||||||
@ -99,15 +103,6 @@ namespace osu.Game.Overlays.BeatmapSet
|
|||||||
|
|
||||||
public void DeselectAll() => modsContainer.ForEach(mod => mod.Selected.Value = false);
|
public void DeselectAll() => modsContainer.ForEach(mod => mod.Selected.Value = false);
|
||||||
|
|
||||||
private void dehighlightAll()
|
|
||||||
{
|
|
||||||
modsContainer.ForEach(button =>
|
|
||||||
{
|
|
||||||
if (!button.IsHovered)
|
|
||||||
button.Highlighted.Value = false;
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
private class ModButton : ModIcon
|
private class ModButton : ModIcon
|
||||||
{
|
{
|
||||||
private const float mod_scale = 0.4f;
|
private const float mod_scale = 0.4f;
|
||||||
|
Loading…
Reference in New Issue
Block a user