1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-27 03:39:53 +08:00

Update framework & change logic slightly

This commit is contained in:
Thomas Müller
2017-07-08 12:41:15 +03:00
Unverified
parent d1ae12b4f7
commit 45d07e39c1
3 changed files with 4 additions and 4 deletions
+2 -2
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;
}
+1 -1
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()
}