mirror of
https://github.com/ppy/osu.git
synced 2025-02-15 11:52:56 +08:00
Move load-complete fade specification inside
This commit is contained in:
parent
e8f96b2401
commit
8ec7970b6a
@ -35,5 +35,11 @@ namespace osu.Game.Users.Drawables
|
|||||||
|
|
||||||
Texture ??= textures.Get(@"Online/avatar-guest");
|
Texture ??= textures.Get(@"Online/avatar-guest");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected override void LoadComplete()
|
||||||
|
{
|
||||||
|
base.LoadComplete();
|
||||||
|
this.FadeInFromZero(300, Easing.OutQuint);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -70,7 +70,6 @@ namespace osu.Game.Users.Drawables
|
|||||||
RelativeSizeAxes = Axes.Both,
|
RelativeSizeAxes = Axes.Both,
|
||||||
};
|
};
|
||||||
|
|
||||||
avatar.OnLoadComplete += d => d.FadeInFromZero(300, Easing.OutQuint);
|
|
||||||
avatar.OpenOnClick.BindTo(OpenOnClick);
|
avatar.OpenOnClick.BindTo(OpenOnClick);
|
||||||
|
|
||||||
return avatar;
|
return avatar;
|
||||||
|
Loading…
Reference in New Issue
Block a user