Visually disable options which aren't yet wired up.

This commit is contained in:
Dean Herbert
2017-02-14 00:35:24 +09:00
parent bc95666736
commit 4f9d1a6c39
8 changed files with 178 additions and 162 deletions

View File

@ -32,10 +32,15 @@ namespace osu.Game.Graphics.UserInterface
Font = @"Exo2.0-Bold",
};
public override bool HandleInput => Action != null;
[BackgroundDependencyLoader]
private void load(OsuColour colours)
{
Colour = colours.BlueDark;
if (Action == null)
Colour = OsuColour.Gray(0.5f);
BackgroundColour = colours.BlueDark;
Content.Masking = true;
Content.CornerRadius = 5;