Less verbose DrawableFlag constructor.

This commit is contained in:
Nabile Rahmani
2017-07-24 09:25:49 +02:00
parent 65c26f9b24
commit c80f5c708a
5 changed files with 6 additions and 6 deletions

View File

@ -49,9 +49,9 @@ namespace osu.Game.Users
sprite.Texture = textures.Get($@"Flags/{flagName}");
}
public DrawableFlag(string name = @"__")
public DrawableFlag(string name = null)
{
flagName = name;
flagName = name ?? @"__";
Children = new Drawable[]
{