Add back explicit binds.

This commit is contained in:
Dean Herbert
2017-04-10 17:10:15 +09:00
parent ba03a98992
commit 5af4259ab4
7 changed files with 16 additions and 16 deletions

View File

@ -24,7 +24,7 @@ namespace osu.Game.Graphics.UserInterface
set
{
bindable = value;
Current = bindable;
Current.BindTo(bindable);
if (value?.Disabled ?? true)
Alpha = 0.3f;
}
@ -69,13 +69,14 @@ namespace osu.Game.Graphics.UserInterface
labelSpriteText = new OsuSpriteText(),
nub = new Nub
{
Current = Current,
Anchor = Anchor.CentreRight,
Origin = Anchor.CentreRight,
Margin = new MarginPadding { Right = 5 },
}
};
nub.Current.BindTo(Current);
Current.ValueChanged += newValue =>
{
if (newValue)