From fc7eef091f1bf5978aa69d150aca3160ade42faf Mon Sep 17 00:00:00 2001 From: DrabWeb Date: Sun, 9 Apr 2017 09:08:11 -0300 Subject: [PATCH] current_colour -> currentColour, fix masked away playlist items not fading colours --- osu.Game/Overlays/PlaylistController.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/osu.Game/Overlays/PlaylistController.cs b/osu.Game/Overlays/PlaylistController.cs index a8e17040cf..8039b3597d 100644 --- a/osu.Game/Overlays/PlaylistController.cs +++ b/osu.Game/Overlays/PlaylistController.cs @@ -297,7 +297,7 @@ namespace osu.Game.Overlays private class PlaylistItem : Container { private const float fade_duration = 100; - private Color4 current_colour; + private Color4 currentColour; private TextAwesome icon; private readonly IEnumerable title, artist; @@ -315,9 +315,9 @@ namespace osu.Game.Overlays if (value == current) return; current = value; - //todo: fading when masked away is broken + Flush(true); foreach (OsuSpriteText t in title) - t.FadeColour(Current ? current_colour : Color4.White, fade_duration); + t.FadeColour(Current ? currentColour : Color4.White, fade_duration); } } @@ -382,7 +382,7 @@ namespace osu.Game.Overlays t.Colour = colours.Gray9; icon.Colour = colours.Gray5; - current_colour = colours.Yellow; + currentColour = colours.Yellow; } protected override bool OnHover(Framework.Input.InputState state)