Move bind to LoadComplete

This commit is contained in:
Dan Balasescu 2021-12-24 17:00:57 +09:00
parent c973739b08
commit f44af1ad69
1 changed files with 5 additions and 0 deletions

View File

@ -91,6 +91,11 @@ private void load(OsuColour colours)
{ {
if (backgroundColour == null) if (backgroundColour == null)
BackgroundColour = colours.BlueDark; BackgroundColour = colours.BlueDark;
}
protected override void LoadComplete()
{
base.LoadComplete();
Colour = enablementColour; Colour = enablementColour;
Enabled.BindValueChanged(_ => this.FadeColour(enablementColour, 200, Easing.OutQuint)); Enabled.BindValueChanged(_ => this.FadeColour(enablementColour, 200, Easing.OutQuint));