mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 17:07:38 +08:00
fix alpha value in disabled state
This commit is contained in:
parent
ce4567f87b
commit
d5397a2139
@ -119,9 +119,14 @@ namespace osu.Game.Graphics.UserInterface
|
||||
Expanded.BindValueChanged(v =>
|
||||
{
|
||||
label.Text = v.NewValue ? expandedLabelText : contractedLabelText;
|
||||
slider.FadeTo(v.NewValue ? 1f : 0f, 500, Easing.OutQuint);
|
||||
slider.FadeTo(v.NewValue ? Current.Disabled ? 0.3f : 1f : 0f, 500, Easing.OutQuint);
|
||||
slider.BypassAutoSizeAxes = !v.NewValue ? Axes.Y : Axes.None;
|
||||
}, true);
|
||||
|
||||
Current.BindDisabledChanged(disabled =>
|
||||
{
|
||||
slider.Alpha = Expanded.Value ? disabled ? 0.3f : 1 : 0f;
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user