mirror of
https://github.com/ppy/osu.git
synced 2025-01-15 06:42:56 +08:00
Move private methods below
This commit is contained in:
parent
ced0ad404e
commit
e170cd2892
@ -57,6 +57,18 @@ namespace osu.Game.Overlays.BeatmapSet
|
|||||||
modsContainer.ForEach(button => button.OnSelectionChanged = selectionChanged);
|
modsContainer.ForEach(button => button.OnSelectionChanged = selectionChanged);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected override bool OnHover(HoverEvent e)
|
||||||
|
{
|
||||||
|
updateHighlighted();
|
||||||
|
return base.OnHover(e);
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override void OnHoverLost(HoverLostEvent e)
|
||||||
|
{
|
||||||
|
base.OnHoverLost(e);
|
||||||
|
updateHighlighted();
|
||||||
|
}
|
||||||
|
|
||||||
private void selectionChanged(Mod mod, bool selected)
|
private void selectionChanged(Mod mod, bool selected)
|
||||||
{
|
{
|
||||||
if (selected)
|
if (selected)
|
||||||
@ -75,18 +87,6 @@ namespace osu.Game.Overlays.BeatmapSet
|
|||||||
modsContainer.Children.Where(button => !button.IsHovered).ForEach(button => button.Highlighted.Value = !IsHovered);
|
modsContainer.Children.Where(button => !button.IsHovered).ForEach(button => button.Highlighted.Value = !IsHovered);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override bool OnHover(HoverEvent e)
|
|
||||||
{
|
|
||||||
updateHighlighted();
|
|
||||||
return base.OnHover(e);
|
|
||||||
}
|
|
||||||
|
|
||||||
protected override void OnHoverLost(HoverLostEvent e)
|
|
||||||
{
|
|
||||||
base.OnHoverLost(e);
|
|
||||||
updateHighlighted();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void DeselectAll() => modsContainer.ForEach(mod => mod.Selected.Value = false);
|
public void DeselectAll() => modsContainer.ForEach(mod => mod.Selected.Value = false);
|
||||||
|
|
||||||
private class ModButton : ModIcon
|
private class ModButton : ModIcon
|
||||||
|
Loading…
Reference in New Issue
Block a user