1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 21:07:33 +08:00

Added temporary difficulties on the panels

This commit is contained in:
DrabWeb 2017-05-17 18:42:40 -03:00
parent b3ef8b8fd4
commit b26c8dd1c7
2 changed files with 8 additions and 8 deletions

View File

@ -136,13 +136,6 @@ namespace osu.Game.Overlays.Direct
{
Margin = new MarginPadding { Top = vertical_padding, Bottom = vertical_padding },
AutoSizeAxes = Axes.Both,
Children = new[]
{
new Box //todo: placeholder
{
Size = new Vector2(16f),
},
},
},
},
},

View File

@ -7,6 +7,8 @@ using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.Sprites;
using osu.Framework.Graphics.Textures;
using osu.Game.Beatmaps.Drawables;
using osu.Game.Database;
using osu.Game.Graphics;
using osu.Game.Graphics.Sprites;
@ -24,7 +26,7 @@ namespace osu.Game.Overlays.Direct
protected virtual FillFlowContainer DifficultyIcons { get; }
[BackgroundDependencyLoader]
private void load(TextureStore textures)
private void load(TextureStore textures, RulesetDatabase rulesets)
{
Background.Texture = textures.Get(@"Backgrounds/bg4");
@ -34,6 +36,11 @@ namespace osu.Game.Overlays.Direct
Source.Text = @"from Cardcaptor Sakura";
PlayCount.Value = 4579492;
FavouriteCount.Value = 2659;
for (int i = 0; i < 4; i++)
{
DifficultyIcons.Add(new DifficultyIcon(new BeatmapInfo { Ruleset = rulesets.GetRuleset(i), StarDifficulty = i + 1 }));
}
}
public class Statistic : FillFlowContainer