mirror of
https://github.com/ppy/osu.git
synced 2025-01-21 06:02:56 +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 backgroundBox;
|
||||||
private readonly Box selectionIndicator;
|
private readonly Box selectionIndicator;
|
||||||
private readonly Container text;
|
private readonly Container text;
|
||||||
public Action<SettingsSection, bool> Action;
|
public Action<SettingsSection> Action;
|
||||||
|
|
||||||
private SettingsSection section;
|
private SettingsSection section;
|
||||||
public SettingsSection Section
|
public SettingsSection Section
|
||||||
@ -112,7 +112,7 @@ namespace osu.Game.Overlays.Settings
|
|||||||
|
|
||||||
protected override bool OnClick(InputState state)
|
protected override bool OnClick(InputState state)
|
||||||
{
|
{
|
||||||
Action?.Invoke(section, true);
|
Action?.Invoke(section);
|
||||||
backgroundBox.FlashColour(Color4.White, 400);
|
backgroundBox.FlashColour(Color4.White, 400);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@ -93,7 +93,7 @@ namespace osu.Game.Overlays
|
|||||||
new SidebarButton
|
new SidebarButton
|
||||||
{
|
{
|
||||||
Section = section,
|
Section = section,
|
||||||
Action = sectionsContainer.ScrollContainer.ScrollTo,
|
Action = b => sectionsContainer.ScrollContainer.ScrollTo(b),
|
||||||
}
|
}
|
||||||
).ToArray()
|
).ToArray()
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user