Separate out Leaderboard into BeatmapLeaderboard

This commit is contained in:
smoogipoo
2018-12-14 19:51:27 +09:00
committed by Dean Herbert
parent c1d316d06e
commit e657f13c15
19 changed files with 224 additions and 132 deletions

View File

@ -0,0 +1,26 @@
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using osu.Framework.Graphics;
using osu.Game.Graphics;
namespace osu.Game.Online.Leaderboards
{
public class MessagePlaceholder : Placeholder
{
private readonly string message;
public MessagePlaceholder(string message)
{
AddIcon(FontAwesome.fa_exclamation_circle, cp =>
{
cp.TextSize = TEXT_SIZE;
cp.Padding = new MarginPadding { Right = 10 };
});
AddText(this.message = message);
}
public override bool Equals(Placeholder other) => (other as MessagePlaceholder)?.message == message;
}
}