1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-23 05:27:26 +08:00

current_colour -> currentColour, fix masked away playlist items not fading colours

This commit is contained in:
DrabWeb 2017-04-09 09:08:11 -03:00
parent 70756a069e
commit fc7eef091f

View File

@ -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<OsuSpriteText> 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)