mirror of
https://github.com/ppy/osu
synced 2024-12-14 19:06:07 +00:00
Added animation parameter
This commit is contained in:
parent
ba783f984c
commit
d914a1b00e
@ -22,7 +22,7 @@ namespace osu.Game.Overlays.Settings
|
||||
private readonly Box backgroundBox;
|
||||
private readonly Box selectionIndicator;
|
||||
private readonly Container text;
|
||||
public Action<SettingsSection> Action;
|
||||
public Action<SettingsSection, bool> 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);
|
||||
Action?.Invoke(section, true);
|
||||
backgroundBox.FlashColour(Color4.White, 400);
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user