mirror of
https://github.com/ppy/osu.git
synced 2026-05-27 07:09:54 +08:00
Update framework & change logic slightly
This commit is contained in:
+1
-1
Submodule osu-framework updated: af9ffbd8b9...8dc785a0ae
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user