Skip to content

Commit

Permalink
Update nuget package and fix compile error.
Browse files Browse the repository at this point in the history
  • Loading branch information
andy840119 committed Nov 1, 2020
1 parent 7ea5def commit 8ced477
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
9 changes: 5 additions & 4 deletions osu.Game.Rulesets.Karaoke/Statistics/BeatmapInfoGraph.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,18 +33,19 @@ protected override bool OnClick(ClickEvent e)
}

[BackgroundDependencyLoader(true)]
private void load([CanBeNull] IBindable<WorkingBeatmap> workingBeatmap)
private void load([CanBeNull] IBindable<WorkingBeatmap> 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)
{
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion osu.Game.Rulesets.Karaoke/osu.Game.Rulesets.Karaoke.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<PackageReference Include="Octokit" Version="0.48.0" />
<PackageReference Include="osu.Framework.KaraokeFont" Version="1.0.0" />
<PackageReference Include="osu.Framework.Microphone" Version="1.0.10" />
<PackageReference Include="ppy.osu.Game" Version="2020.1020.0" />
<PackageReference Include="ppy.osu.Game" Version="2020.1031.0" />
<PackageReference Include="LyricMaker" Version="1.1.1" />
<PackageReference Include="NicoKaraParser" Version="1.1.0" />
</ItemGroup>
Expand Down

0 comments on commit 8ced477

Please sign in to comment.