diff --git a/osu.Game.Rulesets.Karaoke/Statistics/BeatmapInfoGraph.cs b/osu.Game.Rulesets.Karaoke/Statistics/BeatmapInfoGraph.cs index 2bb80f99d..af8642e81 100644 --- a/osu.Game.Rulesets.Karaoke/Statistics/BeatmapInfoGraph.cs +++ b/osu.Game.Rulesets.Karaoke/Statistics/BeatmapInfoGraph.cs @@ -33,18 +33,19 @@ protected override bool OnClick(ClickEvent e) } [BackgroundDependencyLoader(true)] - private void load([CanBeNull] IBindable workingBeatmap) + private void load([CanBeNull] IBindable workingBeatmap, [CanBeNull] BeatmapDifficultyManager difficultyManager) { + var beatmapDifficulty = difficultyManager.GetDifficulty(beatmap.BeatmapInfo); if (workingBeatmap != null) { - LoadComponentAsync(new BeatmapInfoWedge(workingBeatmap.Value), Add); + LoadComponentAsync(new BeatmapInfoWedge(workingBeatmap.Value, beatmapDifficulty), Add); } } public class BeatmapInfoWedge : BufferedWedgeInfo { - public BeatmapInfoWedge(WorkingBeatmap beatmap) - : base(beatmap, new KaraokeRuleset().RulesetInfo) + public BeatmapInfoWedge(WorkingBeatmap beatmap, StarDifficulty difficulty) + : base(beatmap, new KaraokeRuleset().RulesetInfo, difficulty) { } diff --git a/osu.Game.Rulesets.Karaoke/UI/Components/SaitenVisualization.cs b/osu.Game.Rulesets.Karaoke/UI/Components/SaitenVisualization.cs index d85680950..8ec99a427 100644 --- a/osu.Game.Rulesets.Karaoke/UI/Components/SaitenVisualization.cs +++ b/osu.Game.Rulesets.Karaoke/UI/Components/SaitenVisualization.cs @@ -12,6 +12,7 @@ using osu.Framework.Graphics.Colour; using osu.Framework.Graphics.Containers; using osu.Framework.Graphics.Lines; +using osu.Framework.Graphics.Performance; using osu.Framework.Layout; using osu.Framework.Threading; using osu.Game.Rulesets.Karaoke.Replays; diff --git a/osu.Game.Rulesets.Karaoke/osu.Game.Rulesets.Karaoke.csproj b/osu.Game.Rulesets.Karaoke/osu.Game.Rulesets.Karaoke.csproj index 5a7e5be9a..278cae648 100644 --- a/osu.Game.Rulesets.Karaoke/osu.Game.Rulesets.Karaoke.csproj +++ b/osu.Game.Rulesets.Karaoke/osu.Game.Rulesets.Karaoke.csproj @@ -14,7 +14,7 @@ - +