1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 19:22:54 +08:00

Update framework & change logic slightly

This commit is contained in:
Thomas Müller 2017-07-08 12:41:15 +03:00
parent d1ae12b4f7
commit 45d07e39c1
3 changed files with 4 additions and 4 deletions

@ -1 +1 @@
Subproject commit af9ffbd8b945e526801c469dd55464363e502962
Subproject commit 8dc785a0aecfb6df53496eff5bd9f961ff8deee6

View File

@ -22,7 +22,7 @@ namespace osu.Game.Overlays.Settings
private readonly Box backgroundBox;
private readonly Box selectionIndicator;
private readonly Container text;
public Action<SettingsSection, bool> Action;
public Action<SettingsSection> Action;
private SettingsSection section;
public SettingsSection Section
@ -112,7 +112,7 @@ namespace osu.Game.Overlays.Settings
protected override bool OnClick(InputState state)
{
Action?.Invoke(section, true);
Action?.Invoke(section);
backgroundBox.FlashColour(Color4.White, 400);
return true;
}

View File

@ -93,7 +93,7 @@ namespace osu.Game.Overlays
new SidebarButton
{
Section = section,
Action = sectionsContainer.ScrollContainer.ScrollTo,
Action = b => sectionsContainer.ScrollContainer.ScrollTo(b),
}
).ToArray()
}