Seperate updateable from drawable

This commit is contained in:
KingLuigi4932
2019-06-19 03:50:16 +03:00
parent bc8ce5d188
commit 97dd34e26c
6 changed files with 129 additions and 107 deletions

View File

@ -0,0 +1,27 @@
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
namespace osu.Game.Users.Drawables
{
public class UpdateableFlag : ModelBackedDrawable<Country>
{
public Country Country
{
get => Model;
set => Model = value;
}
public UpdateableFlag(Country country = null)
{
Country = country;
}
protected override Drawable CreateDrawable(Country country) => new DrawableFlag(country)
{
RelativeSizeAxes = Axes.Both,
};
}
}