mirror of
https://github.com/ppy/osu.git
synced 2025-01-28 20:32:55 +08:00
Remove fades when changing trail colour across skins
This commit is contained in:
parent
db45d9aa8a
commit
60695bee8c
@ -285,8 +285,6 @@ namespace osu.Game.Rulesets.Catch.UI
|
|||||||
|
|
||||||
private void runHyperDashStateTransition(bool hyperDashing)
|
private void runHyperDashStateTransition(bool hyperDashing)
|
||||||
{
|
{
|
||||||
trails.HyperDashTrailsColour = hyperDashColour;
|
|
||||||
trails.EndGlowSpritesColour = hyperDashEndGlowColour;
|
|
||||||
updateTrailVisibility();
|
updateTrailVisibility();
|
||||||
|
|
||||||
if (hyperDashing)
|
if (hyperDashing)
|
||||||
@ -403,6 +401,9 @@ namespace osu.Game.Rulesets.Catch.UI
|
|||||||
skin.GetConfig<CatchSkinColour, Color4>(CatchSkinColour.HyperDashAfterImage)?.Value ??
|
skin.GetConfig<CatchSkinColour, Color4>(CatchSkinColour.HyperDashAfterImage)?.Value ??
|
||||||
hyperDashColour;
|
hyperDashColour;
|
||||||
|
|
||||||
|
trails.HyperDashTrailsColour = hyperDashColour;
|
||||||
|
trails.EndGlowSpritesColour = hyperDashEndGlowColour;
|
||||||
|
|
||||||
runHyperDashStateTransition(HyperDashing);
|
runHyperDashStateTransition(HyperDashing);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -35,7 +35,7 @@ namespace osu.Game.Rulesets.Catch.UI
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
hyperDashTrailsColour = value;
|
hyperDashTrailsColour = value;
|
||||||
hyperDashTrails.FadeColour(hyperDashTrailsColour, Catcher.HYPER_DASH_TRANSITION_DURATION, Easing.OutQuint);
|
hyperDashTrails.Colour = hyperDashTrailsColour;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -50,7 +50,7 @@ namespace osu.Game.Rulesets.Catch.UI
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
endGlowSpritesColour = value;
|
endGlowSpritesColour = value;
|
||||||
endGlowSprites.FadeColour(endGlowSpritesColour, Catcher.HYPER_DASH_TRANSITION_DURATION, Easing.OutQuint);
|
endGlowSprites.Colour = endGlowSpritesColour;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user