Make toolbar buttons more independent logic-wise.

Also adds visual toggle state for toggleable buttons.
This commit is contained in:
Dean Herbert
2016-12-02 18:43:01 +09:00
parent bc2391578c
commit 9bf36418a0
8 changed files with 156 additions and 28 deletions

View File

@ -133,7 +133,7 @@ namespace osu.Game.Overlays.Toolbar
protected override bool OnClick(InputState state)
{
Action?.Invoke();
HoverBackground.FlashColour(new Color4(255, 255, 255, 180), 800, EasingTypes.OutQuint);
HoverBackground.FlashColour(new Color4(255, 255, 255, 100), 500, EasingTypes.OutQuint);
return true;
}