mirror of
https://github.com/ppy/osu.git
synced 2024-09-23 16:07:24 +08:00
28 lines
717 B
C#
28 lines
717 B
C#
|
// 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,
|
|||
|
};
|
|||
|
}
|
|||
|
}
|