mirror of
https://github.com/ppy/osu.git
synced 2025-03-15 15:27:20 +08:00
Merge pull request #26003 from bdach/big-slider-judgements
Fix slider tick / end misses displaying with full size on legacy skins with animated misses
This commit is contained in:
commit
472a9da6da
@ -50,17 +50,16 @@ namespace osu.Game.Skinning
|
||||
|
||||
// legacy judgements don't play any transforms if they are an animation.... UNLESS they are the temporary displayed judgement from new piece.
|
||||
if (animation?.FrameCount > 1 && !forceTransforms)
|
||||
{
|
||||
if (isMissedTick())
|
||||
applyMissedTickScaling();
|
||||
return;
|
||||
}
|
||||
|
||||
if (result.IsMiss())
|
||||
{
|
||||
bool isTick = result != HitResult.Miss;
|
||||
|
||||
if (isTick)
|
||||
{
|
||||
this.ScaleTo(0.6f);
|
||||
this.ScaleTo(0.3f, 100, Easing.In);
|
||||
}
|
||||
if (isMissedTick())
|
||||
applyMissedTickScaling();
|
||||
else
|
||||
{
|
||||
this.ScaleTo(1.6f);
|
||||
@ -95,6 +94,14 @@ namespace osu.Game.Skinning
|
||||
}
|
||||
}
|
||||
|
||||
private bool isMissedTick() => result.IsMiss() && result != HitResult.Miss;
|
||||
|
||||
private void applyMissedTickScaling()
|
||||
{
|
||||
this.ScaleTo(0.6f);
|
||||
this.ScaleTo(0.3f, 100, Easing.In);
|
||||
}
|
||||
|
||||
public Drawable GetAboveHitObjectsProxiedContent() => CreateProxy();
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user