1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-06 11:25:25 +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 }, Margin = new MarginPadding { Top = vertical_padding, Bottom = vertical_padding },
AutoSizeAxes = Axes.Both, 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.Containers;
using osu.Framework.Graphics.Sprites; using osu.Framework.Graphics.Sprites;
using osu.Framework.Graphics.Textures; using osu.Framework.Graphics.Textures;
using osu.Game.Beatmaps.Drawables;
using osu.Game.Database;
using osu.Game.Graphics; using osu.Game.Graphics;
using osu.Game.Graphics.Sprites; using osu.Game.Graphics.Sprites;
@ -24,7 +26,7 @@ namespace osu.Game.Overlays.Direct
protected virtual FillFlowContainer DifficultyIcons { get; } protected virtual FillFlowContainer DifficultyIcons { get; }
[BackgroundDependencyLoader] [BackgroundDependencyLoader]
private void load(TextureStore textures) private void load(TextureStore textures, RulesetDatabase rulesets)
{ {
Background.Texture = textures.Get(@"Backgrounds/bg4"); Background.Texture = textures.Get(@"Backgrounds/bg4");
@ -34,6 +36,11 @@ namespace osu.Game.Overlays.Direct
Source.Text = @"from Cardcaptor Sakura"; Source.Text = @"from Cardcaptor Sakura";
PlayCount.Value = 4579492; PlayCount.Value = 4579492;
FavouriteCount.Value = 2659; 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 public class Statistic : FillFlowContainer