Unify disable logic.

This commit is contained in:
Dean Herbert
2017-04-10 16:22:36 +09:00
parent b7cfdff8d1
commit f12b5a8954
4 changed files with 8 additions and 11 deletions

View File

@ -24,11 +24,8 @@ namespace osu.Game.Graphics.UserInterface
set
{
bindable = value;
if (bindable != null)
Current = bindable;
if (bindable?.Disabled ?? true)
Current = bindable;
if (value?.Disabled ?? true)
Alpha = 0.3f;
}
}