Update UI controls to understand DisabledChanged.

This commit is contained in:
Dean Herbert
2017-04-21 13:53:11 +09:00
parent 2d53ad4c0a
commit ef7bc0f92e
6 changed files with 21 additions and 9 deletions

View File

@ -74,6 +74,11 @@ namespace osu.Game.Graphics.UserInterface
Expanded = true,
}
};
Current.DisabledChanged += disabled =>
{
Alpha = disabled ? 0.3f : 1;
};
}
[BackgroundDependencyLoader]