1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-21 18:07:19 +08:00

Fix CI issues + slight change

This commit is contained in:
KingLuigi4932 2019-06-17 22:33:27 +03:00
parent fec0db8fe1
commit d6a39b8a2a
4 changed files with 22 additions and 6 deletions

View File

@ -20,7 +20,10 @@ namespace osu.Game.Online.Leaderboards
set => Model = value;
}
public UpdateableRank(ScoreRank rank) => Rank = rank;
public UpdateableRank(ScoreRank rank)
{
Rank = rank;
}
protected override Drawable CreateDrawable(ScoreRank rank) => new DrawableRank(rank)
{
@ -33,9 +36,12 @@ namespace osu.Game.Online.Leaderboards
public class DrawableRank : Sprite
{
private ScoreRank rank;
private readonly ScoreRank rank;
public DrawableRank(ScoreRank rank) => this.rank = rank;
public DrawableRank(ScoreRank rank)
{
this.rank = rank;
}
[BackgroundDependencyLoader(true)]
private void load(TextureStore ts)

View File

@ -13,7 +13,6 @@ using osu.Game.Graphics.Containers;
using osu.Game.Graphics.Sprites;
using osu.Game.Online.Leaderboards;
using osu.Game.Scoring;
using osu.Game.Users;
using osu.Game.Users.Drawables;
using osuTK;
using osuTK.Graphics;

View File

@ -53,6 +53,11 @@ namespace osu.Game.Users.Drawables
/// </summary>
public readonly BindableBool OpenOnClick = new BindableBool(true);
public UpdateableAvatar(User user = null)
{
User = user;
}
protected override Drawable CreateDrawable(User user)
{
if (user == null && !ShowGuestOnNull)

View File

@ -19,7 +19,10 @@ namespace osu.Game.Users.Drawables
set => Model = value;
}
public UpdateableFlag(Country country = null) => Country = country;
public UpdateableFlag(Country country = null)
{
Country = country;
}
protected override Drawable CreateDrawable(Country country) => new DrawableFlag(country)
{
@ -33,7 +36,10 @@ namespace osu.Game.Users.Drawables
public string TooltipText => country?.FullName;
public DrawableFlag(Country country) => this.country = country;
public DrawableFlag(Country country)
{
this.country = country;
}
[BackgroundDependencyLoader]
private void load(TextureStore ts)