mirror of
https://github.com/ppy/osu.git
synced 2025-01-06 10:22:54 +08:00
Adjust animation length and colouring of hitting layer
This commit is contained in:
parent
300d81c46b
commit
f40a4b591f
@ -27,12 +27,12 @@ namespace osu.Game.Rulesets.Mania.Skinning.Argon
|
|||||||
|
|
||||||
AccentColour.BindValueChanged(colour =>
|
AccentColour.BindValueChanged(colour =>
|
||||||
{
|
{
|
||||||
Colour = colour.NewValue.Opacity(0.2f);
|
Colour = colour.NewValue.Lighten(0.2f).Opacity(0.3f);
|
||||||
}, true);
|
}, true);
|
||||||
|
|
||||||
IsHitting.BindValueChanged(hitting =>
|
IsHitting.BindValueChanged(hitting =>
|
||||||
{
|
{
|
||||||
const float animation_length = 50;
|
const float animation_length = 80;
|
||||||
|
|
||||||
ClearTransforms();
|
ClearTransforms();
|
||||||
|
|
||||||
@ -43,8 +43,8 @@ namespace osu.Game.Rulesets.Mania.Skinning.Argon
|
|||||||
|
|
||||||
using (BeginDelayedSequence(synchronisedOffset))
|
using (BeginDelayedSequence(synchronisedOffset))
|
||||||
{
|
{
|
||||||
this.FadeTo(1, animation_length).Then()
|
this.FadeTo(1, animation_length, Easing.OutSine).Then()
|
||||||
.FadeTo(0.5f, animation_length)
|
.FadeTo(0.5f, animation_length, Easing.InSine)
|
||||||
.Loop();
|
.Loop();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -52,7 +52,7 @@ namespace osu.Game.Rulesets.Mania.Skinning.Argon
|
|||||||
{
|
{
|
||||||
this.FadeOut(animation_length);
|
this.FadeOut(animation_length);
|
||||||
}
|
}
|
||||||
});
|
}, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Recycle()
|
public void Recycle()
|
||||||
|
Loading…
Reference in New Issue
Block a user