mirror of
https://github.com/ppy/osu.git
synced 2025-01-12 17:43:05 +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;
|
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;
|
this.result = result;
|
||||||
|
|
||||||
|
@ -377,7 +377,7 @@ namespace osu.Game.Skinning
|
|||||||
if (createDrawable() != null)
|
if (createDrawable() != null)
|
||||||
{
|
{
|
||||||
if (Configuration.LegacyVersion > 1)
|
if (Configuration.LegacyVersion > 1)
|
||||||
return new LegacyJudgementPieceNew(resultComponent.Component, createDrawable, getParticleDrawable(resultComponent.Component));
|
return new LegacyJudgementPieceNew(resultComponent.Component, createDrawable, () => getParticleDrawable(resultComponent.Component));
|
||||||
else
|
else
|
||||||
return new LegacyJudgementPieceOld(resultComponent.Component, createDrawable);
|
return new LegacyJudgementPieceOld(resultComponent.Component, createDrawable);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user