From b26c8dd1c73bf23ae774440c67f4e2411bf2fe92 Mon Sep 17 00:00:00 2001 From: DrabWeb Date: Wed, 17 May 2017 18:42:40 -0300 Subject: [PATCH] Added temporary difficulties on the panels --- osu.Game/Overlays/Direct/DirectGridPanel.cs | 7 ------- osu.Game/Overlays/Direct/DirectPanel.cs | 9 ++++++++- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/osu.Game/Overlays/Direct/DirectGridPanel.cs b/osu.Game/Overlays/Direct/DirectGridPanel.cs index 95405544a8..ec0b625fe4 100644 --- a/osu.Game/Overlays/Direct/DirectGridPanel.cs +++ b/osu.Game/Overlays/Direct/DirectGridPanel.cs @@ -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), - }, - }, }, }, }, diff --git a/osu.Game/Overlays/Direct/DirectPanel.cs b/osu.Game/Overlays/Direct/DirectPanel.cs index a5aa7b92fa..8cb7f4f299 100644 --- a/osu.Game/Overlays/Direct/DirectPanel.cs +++ b/osu.Game/Overlays/Direct/DirectPanel.cs @@ -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