mirror of
https://github.com/ppy/osu.git
synced 2024-09-23 07:27:24 +08:00
current_colour -> currentColour, fix masked away playlist items not fading colours
This commit is contained in:
parent
70756a069e
commit
fc7eef091f
@ -297,7 +297,7 @@ namespace osu.Game.Overlays
|
|||||||
private class PlaylistItem : Container
|
private class PlaylistItem : Container
|
||||||
{
|
{
|
||||||
private const float fade_duration = 100;
|
private const float fade_duration = 100;
|
||||||
private Color4 current_colour;
|
private Color4 currentColour;
|
||||||
|
|
||||||
private TextAwesome icon;
|
private TextAwesome icon;
|
||||||
private readonly IEnumerable<OsuSpriteText> title, artist;
|
private readonly IEnumerable<OsuSpriteText> title, artist;
|
||||||
@ -315,9 +315,9 @@ namespace osu.Game.Overlays
|
|||||||
if (value == current) return;
|
if (value == current) return;
|
||||||
current = value;
|
current = value;
|
||||||
|
|
||||||
//todo: fading when masked away is broken
|
Flush(true);
|
||||||
foreach (OsuSpriteText t in title)
|
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;
|
t.Colour = colours.Gray9;
|
||||||
|
|
||||||
icon.Colour = colours.Gray5;
|
icon.Colour = colours.Gray5;
|
||||||
current_colour = colours.Yellow;
|
currentColour = colours.Yellow;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override bool OnHover(Framework.Input.InputState state)
|
protected override bool OnHover(Framework.Input.InputState state)
|
||||||
|
Loading…
Reference in New Issue
Block a user