Made mod disabling better

This commit is contained in:
DrabWeb
2017-02-22 11:34:22 -04:00
parent 3f5d155583
commit 337a1004d3
3 changed files with 51 additions and 53 deletions

View File

@ -26,7 +26,7 @@ namespace osu.Game.Overlays.Mods
}
}
public Action<Mod[]> Action;
public Action<Mod> Action;
public Mod[] SelectedMods
{
@ -131,7 +131,7 @@ namespace osu.Game.Overlays.Mods
private void buttonPressed(Mod mod)
{
Action?.Invoke(SelectedMods);
Action?.Invoke(mod);
}
public ModSection()
@ -144,7 +144,7 @@ namespace osu.Game.Overlays.Mods
{
Origin = Anchor.TopLeft,
Anchor = Anchor.TopLeft,
Position = new Vector2(0f, 10f),
Position = new Vector2(0f, 0f),
Font = @"Exo2.0-Bold",
Text = Header,
},
@ -153,11 +153,10 @@ namespace osu.Game.Overlays.Mods
AutoSizeAxes = Axes.Both,
Origin = Anchor.BottomLeft,
Anchor = Anchor.BottomLeft,
//Direction = FlowDirections.Horizontal,
Spacing = new Vector2(50f, 0f),
Margin = new MarginPadding
{
Top = 16,
Top = 6,
},
},
};