mirror of
https://github.com/ppy/osu.git
synced 2025-03-21 17:57:46 +08:00
Fix CI issues + slight change
This commit is contained in:
parent
fec0db8fe1
commit
d6a39b8a2a
@ -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)
|
||||
|
@ -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;
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user