mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 17:07:38 +08:00
32 lines
898 B
C#
32 lines
898 B
C#
//Copyright (c) 2007-2016 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.Framework.Graphics.Containers;
|
|
using osu.Game.Database;
|
|
using osu.Game.Graphics;
|
|
using osu.Game.Modes;
|
|
using OpenTK;
|
|
using OpenTK.Graphics;
|
|
|
|
namespace osu.Game.Beatmaps.Drawables
|
|
{
|
|
class DifficultyIcon : Container
|
|
{
|
|
public DifficultyIcon(BeatmapInfo beatmap)
|
|
{
|
|
const float size = 20;
|
|
Size = new Vector2(size);
|
|
Children = new[]
|
|
{
|
|
new TextAwesome
|
|
{
|
|
Anchor = Anchor.Centre,
|
|
TextSize = size,
|
|
Colour = new Color4(159, 198, 0, 255),
|
|
Icon = Ruleset.GetRuleset(beatmap.Mode).Icon
|
|
}
|
|
};
|
|
}
|
|
}
|
|
} |