mirror of
https://github.com/osukey/osukey.git
synced 2025-05-23 14:37:39 +09:00
Fix weird glow + add small pre-beat transition.
This commit is contained in:
parent
445b469e47
commit
c29f4b2ee8
@ -24,6 +24,7 @@ namespace osu.Game.Rulesets.Taiko.Objects.Drawables.Pieces
|
|||||||
public const float SYMBOL_SIZE = TaikoHitObject.DEFAULT_CIRCLE_DIAMETER * 0.45f;
|
public const float SYMBOL_SIZE = TaikoHitObject.DEFAULT_CIRCLE_DIAMETER * 0.45f;
|
||||||
public const float SYMBOL_BORDER = 8;
|
public const float SYMBOL_BORDER = 8;
|
||||||
public const float SYMBOL_INNER_SIZE = SYMBOL_SIZE - 2 * SYMBOL_BORDER;
|
public const float SYMBOL_INNER_SIZE = SYMBOL_SIZE - 2 * SYMBOL_BORDER;
|
||||||
|
private const double pre_beat_transition_time = 50;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The colour of the inner circle and outer glows.
|
/// The colour of the inner circle and outer glows.
|
||||||
@ -65,6 +66,8 @@ namespace osu.Game.Rulesets.Taiko.Objects.Drawables.Pieces
|
|||||||
|
|
||||||
public CirclePiece(bool isStrong = false)
|
public CirclePiece(bool isStrong = false)
|
||||||
{
|
{
|
||||||
|
EarlyActivationMilliseconds = pre_beat_transition_time;
|
||||||
|
|
||||||
AddInternal(new Drawable[]
|
AddInternal(new Drawable[]
|
||||||
{
|
{
|
||||||
background = new CircularContainer
|
background = new CircularContainer
|
||||||
@ -159,9 +162,11 @@ namespace osu.Game.Rulesets.Taiko.Objects.Drawables.Pieces
|
|||||||
if (beatIndex % (int)timingPoint.TimeSignature != 0)
|
if (beatIndex % (int)timingPoint.TimeSignature != 0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
background.FadeEdgeEffectTo(KiaiFlashColour);
|
double duration = timingPoint.BeatLength * (int)timingPoint.TimeSignature;
|
||||||
using (BeginDelayedSequence(200))
|
|
||||||
background.FadeEdgeEffectTo(AccentColour, 500, EasingTypes.OutQuint);
|
background.FadeEdgeEffectTo(KiaiFlashColour, pre_beat_transition_time, EasingTypes.OutQuint);
|
||||||
|
using (background.BeginDelayedSequence(pre_beat_transition_time))
|
||||||
|
background.FadeEdgeEffectTo(AccentColour, duration, EasingTypes.OutQuint);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user