mirror of
https://github.com/ppy/osu.git
synced 2025-01-06 19:02:58 +08:00
Revert hacky fade value and fix test
This commit is contained in:
parent
f9a9ab1d9b
commit
a7f4325d3c
@ -21,6 +21,8 @@ namespace osu.Game.Rulesets.Taiko.Tests.Skinning
|
||||
{
|
||||
var controlPointInfo = new ControlPointInfo();
|
||||
|
||||
controlPointInfo.Add(0, new TimingControlPoint { BeatLength = 500 });
|
||||
|
||||
if (withKiai)
|
||||
controlPointInfo.Add(0, new EffectControlPoint { KiaiMode = true });
|
||||
|
||||
@ -28,6 +30,8 @@ namespace osu.Game.Rulesets.Taiko.Tests.Skinning
|
||||
{
|
||||
ControlPointInfo = controlPointInfo
|
||||
});
|
||||
|
||||
Beatmap.Value.Track.Start();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -16,8 +16,6 @@ namespace osu.Game.Rulesets.Taiko.Skinning.Legacy
|
||||
{
|
||||
internal partial class LegacyKiaiGlow : BeatSyncedContainer
|
||||
{
|
||||
private const float colour_compensation = 1.58f;
|
||||
|
||||
public LegacyKiaiGlow()
|
||||
{
|
||||
AlwaysPresent = true;
|
||||
@ -60,7 +58,7 @@ namespace osu.Game.Rulesets.Taiko.Skinning.Legacy
|
||||
protected override void OnNewBeat(int beatIndex, TimingControlPoint timingPoint, EffectControlPoint effectPoint, ChannelAmplitudes amplitudes)
|
||||
{
|
||||
if (effectPoint.KiaiMode)
|
||||
this.FadeTo(colour_compensation, 180);
|
||||
this.FadeIn(180);
|
||||
else
|
||||
this.FadeOut(180);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user