mirror of
https://github.com/ppy/osu
synced 2025-01-19 12:30:50 +00:00
Correct scale of taiko-glow element
This commit is contained in:
parent
d55fa423e9
commit
76f13b21da
@ -21,6 +21,8 @@ namespace osu.Game.Rulesets.Taiko.Skinning.Legacy
|
|||||||
|
|
||||||
private Sprite sprite = null!;
|
private Sprite sprite = null!;
|
||||||
|
|
||||||
|
private const float base_scale = 0.8f;
|
||||||
|
|
||||||
[BackgroundDependencyLoader(true)]
|
[BackgroundDependencyLoader(true)]
|
||||||
private void load(ISkinSource skin, HealthProcessor? healthProcessor)
|
private void load(ISkinSource skin, HealthProcessor? healthProcessor)
|
||||||
{
|
{
|
||||||
@ -30,7 +32,7 @@ namespace osu.Game.Rulesets.Taiko.Skinning.Legacy
|
|||||||
Origin = Anchor.Centre,
|
Origin = Anchor.Centre,
|
||||||
Anchor = Anchor.Centre,
|
Anchor = Anchor.Centre,
|
||||||
Alpha = 0,
|
Alpha = 0,
|
||||||
Scale = new Vector2(0.7f),
|
Scale = new Vector2(base_scale),
|
||||||
Colour = new Colour4(255, 228, 0, 255),
|
Colour = new Colour4(255, 228, 0, 255),
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -58,8 +60,8 @@ namespace osu.Game.Rulesets.Taiko.Skinning.Legacy
|
|||||||
if (!result.IsHit || !isKiaiActive)
|
if (!result.IsHit || !isKiaiActive)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
sprite.ScaleTo(0.85f).Then()
|
sprite.ScaleTo(base_scale + 0.15f).Then()
|
||||||
.ScaleTo(0.7f, 80, Easing.OutQuad);
|
.ScaleTo(base_scale, 80, Easing.OutQuad);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user