1
0
mirror of https://github.com/ppy/osu.git synced 2024-10-01 09:47:29 +08:00
osu-lazer/osu.Game/Screens/Select/Leaderboards/MessagePlaceholder.cs

27 lines
786 B
C#
Raw Normal View History

2018-04-13 17:19:50 +08:00
// 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.Screens.Select.Leaderboards
{
public class MessagePlaceholder : Placeholder
{
private readonly string message;
public MessagePlaceholder(string message)
{
2018-06-28 12:04:39 +08:00
AddIcon(FontAwesome.fa_exclamation_circle, cp =>
2018-04-13 17:19:50 +08:00
{
2018-06-28 12:04:39 +08:00
cp.TextSize = TEXT_SIZE;
cp.Padding = new MarginPadding { Right = 10 };
});
AddText(this.message = message);
2018-04-13 17:19:50 +08:00
}
public override bool Equals(Placeholder other) => (other as MessagePlaceholder)?.message == message;
}
}