Remove a lot of customisation from Avatar (and add it in individual usages).

This commit is contained in:
Dean Herbert
2017-03-15 15:22:28 +09:00
parent 7bc0a1fdfe
commit 1ae4c2dfbb
3 changed files with 29 additions and 31 deletions

View File

@ -21,22 +21,11 @@ namespace osu.Game.Users
private OsuGame game;
private Texture guestTexture;
public Avatar()
[BackgroundDependencyLoader(permitNulls: true)]
private void load(OsuGameBase game, TextureStore textures)
{
Size = new Vector2(32);
Anchor = Anchor.CentreLeft;
Origin = Anchor.CentreLeft;
CornerRadius = Size.X / 8;
EdgeEffect = new EdgeEffect
{
Type = EdgeEffectType.Shadow,
Radius = 4,
Colour = Color4.Black.Opacity(0.1f),
};
Masking = true;
this.game = game;
guestTexture = textures.Get(@"Online/avatar-guest");
}
[BackgroundDependencyLoader(permitNulls: true)]