mirror of
https://github.com/ppy/osu.git
synced 2025-01-28 06:42:54 +08:00
Move bind to LoadComplete
This commit is contained in:
parent
c973739b08
commit
f44af1ad69
@ -91,6 +91,11 @@ namespace osu.Game.Graphics.UserInterface
|
|||||||
{
|
{
|
||||||
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));
|
||||||
|
Loading…
Reference in New Issue
Block a user