Skip to content

Commit

Permalink
Merge pull request #132 from goodtrailer/dependabot/nuget/ppy.osu.Gam…
Browse files Browse the repository at this point in the history
…e-2023.614.1

Bump ppy.osu.Game from 2023.511.0 to 2023.614.1
  • Loading branch information
goodtrailer committed Jun 15, 2023
2 parents c8dfd0d + 497f411 commit c859093
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 50 deletions.
76 changes: 27 additions & 49 deletions osu.Game.Rulesets.Soyokaze/SoyokazeRuleset.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
using osu.Framework.Graphics.Sprites;
using osu.Framework.Graphics.Textures;
using osu.Framework.Input.Bindings;
using osu.Framework.Logging;
using osu.Framework.Platform;
using osu.Game.Beatmaps;
using osu.Game.Configuration;
using osu.Game.Overlays.Settings;
Expand Down Expand Up @@ -77,66 +75,46 @@ public override ISkin CreateSkinTransformer(ISkin skin, IBeatmap beatmap)

public override IConvertibleReplayFrame CreateConvertibleReplayFrame() => new SoyokazeReplayFrame();

public override StatisticRow[] CreateStatisticsForScore(ScoreInfo score, IBeatmap playableBeatmap)
public override StatisticItem[] CreateStatisticsForScore(ScoreInfo score, IBeatmap playableBeatmap)
{
List<HitEvent>[] HitEventsLists = new List<HitEvent>[8];
for (int i = 0; i < HitEventsLists.Length; i++)
HitEventsLists[i] = new List<HitEvent>();
var hitEventLists = new List<HitEvent>[8];
for (int i = 0; i < hitEventLists.Length; i++)
hitEventLists[i] = new List<HitEvent>();

foreach (HitEvent hitEvent in score.HitEvents)
foreach (var hitEvent in score.HitEvents)
{
if (!(hitEvent.HitObject is SoyokazeHitObject soyokazeObject))
continue;

Logger.Log("OBJECT: " + hitEvent.HitObject.GetType());

HitEventsLists[(int)soyokazeObject.Button].Add(hitEvent);
hitEventLists[(int)soyokazeObject.Button].Add(hitEvent);
}

return new StatisticRow[]
return new[]
{
new StatisticRow
new StatisticItem("Button Accuracies", () =>
{
Columns = new StatisticItem[]
Container accuracyGraphsContainer = new Container()
{
new StatisticItem("Button Accuracies", () =>
{
Container accuracyGraphsContainer = new Container()
{
Anchor = Anchor.Centre,
Origin = Anchor.Centre,
AutoSizeAxes = Axes.Both,
};
Vector2[] positions = PositionExtensions.GetPositions(220, 110, true, Anchor.Centre);
for (int i = 0; i < positions.Length; i++)
accuracyGraphsContainer.Add(new AccuracyGraph(HitEventsLists[i]) { Position = positions[i] });
return accuracyGraphsContainer;
}),
},
},
new StatisticRow
Anchor = Anchor.Centre,
Origin = Anchor.Centre,
AutoSizeAxes = Axes.Both,
};
Vector2[] positions = PositionExtensions.GetPositions(220, 110, true, Anchor.Centre);
for (int i = 0; i < positions.Length; i++)
accuracyGraphsContainer.Add(new AccuracyGraph(hitEventLists[i]) { Position = positions[i] });
return accuracyGraphsContainer;
}, true),
new StatisticItem("Overall Distribution", () => new HitEventTimingDistributionGraph(score.HitEvents)
{
Columns = new StatisticItem[]
{
new StatisticItem("Overall Distribution", () => new HitEventTimingDistributionGraph(score.HitEvents)
{
RelativeSizeAxes = Axes.X,
Size = new Vector2(1f, 100f)
}),
}
},
new StatisticRow
RelativeSizeAxes = Axes.X,
Size = new Vector2(1f, 100f)
}, true),
new StatisticItem("", () => new UnstableRate(score.HitEvents)
{
Columns = new StatisticItem[]
{
new StatisticItem("", () => new UnstableRate(score.HitEvents)
{
AutoSizeAxes = Axes.None,
RelativeSizeAxes = Axes.X,
Size = new Vector2(0.2f, 10f)
}),
},
},
AutoSizeAxes = Axes.None,
RelativeSizeAxes = Axes.X,
Size = new Vector2(0.2f, 10f)
}, true),
};
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<EmbeddedResource Include="Resources\**" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="ppy.osu.Game" Version="2023.511.0" />
<PackageReference Include="ppy.osu.Game" Version="2023.614.1" />
</ItemGroup>
<ItemGroup>
<Folder Include="Resources\Samples\Gameplay" />
Expand Down

0 comments on commit c859093

Please sign in to comment.