mirror of
https://github.com/ppy/osu.git
synced 2025-01-12 13:15:08 +08:00
Provide particle drawable as a function (for future use)
This commit is contained in:
parent
24d7fa03d8
commit
85c5c68dfa
@ -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;
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user