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:
parent
d1ae12b4f7
commit
45d07e39c1
@ -1 +1 @@
|
||||
Subproject commit af9ffbd8b945e526801c469dd55464363e502962
|
||||
Subproject commit 8dc785a0aecfb6df53496eff5bd9f961ff8deee6
|
@ -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;
|
||||
}
|
||||
|
@ -93,7 +93,7 @@ namespace osu.Game.Overlays
|
||||
new SidebarButton
|
||||
{
|
||||
Section = section,
|
||||
Action = sectionsContainer.ScrollContainer.ScrollTo,
|
||||
Action = b => sectionsContainer.ScrollContainer.ScrollTo(b),
|
||||
}
|
||||
).ToArray()
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user