1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-12 10:22:56 +08:00

Provide particle drawable as a function (for future use)

This commit is contained in:
Dean Herbert 2020-11-19 13:20:21 +09:00
parent 24d7fa03d8
commit 85c5c68dfa
2 changed files with 2 additions and 2 deletions

View File

@ -20,7 +20,7 @@ namespace osu.Game.Skinning
private readonly Drawable mainPiece;
public LegacyJudgementPieceNew(HitResult result, Func<Drawable> createMainDrawable, Drawable particleDrawable)
public LegacyJudgementPieceNew(HitResult result, Func<Drawable> createMainDrawable, Func<Drawable> createParticleDrawable)
{
this.result = result;

View File

@ -377,7 +377,7 @@ namespace osu.Game.Skinning
if (createDrawable() != null)
{
if (Configuration.LegacyVersion > 1)
return new LegacyJudgementPieceNew(resultComponent.Component, createDrawable, getParticleDrawable(resultComponent.Component));
return new LegacyJudgementPieceNew(resultComponent.Component, createDrawable, () => getParticleDrawable(resultComponent.Component));
else
return new LegacyJudgementPieceOld(resultComponent.Component, createDrawable);
}