1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-12 17:23:22 +08:00

Fix storyboard not showing on disabled user dim

This commit is contained in:
iiSaLMaN 2019-08-07 22:18:10 +03:00
parent 73cd7b0cc2
commit d5b26b86da

View File

@ -76,9 +76,9 @@ namespace osu.Game.Graphics.Containers
/// </summary>
protected virtual void UpdateVisuals()
{
ContentDisplayed = ShowDimContent;
ContentDisplayed = !EnableUserDim.Value || ShowDimContent;
dimContent.FadeTo((ContentDisplayed) ? 1 : 0, BACKGROUND_FADE_DURATION, Easing.OutQuint);
dimContent.FadeTo(ContentDisplayed ? 1 : 0, BACKGROUND_FADE_DURATION, Easing.OutQuint);
dimContent.FadeColour(EnableUserDim.Value ? OsuColour.Gray(1 - (float)UserDimLevel.Value) : Color4.White, BACKGROUND_FADE_DURATION, Easing.OutQuint);
}
}