1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 16:12:57 +08:00

Use better glow in beatmap selection.

This commit is contained in:
Thomas Müller 2016-11-01 22:57:11 +01:00
parent cd5ad5a05c
commit 50de8528a5

View File

@ -23,7 +23,6 @@ namespace osu.Game.Beatmaps.Drawable
Masking = true;
CornerRadius = 10;
BorderColour = new Color4(221, 255, 255, 0);
GlowColour = new Color4(102, 204, 255, 100);
RelativeSizeAxes = Axes.X;
}
@ -54,21 +53,29 @@ namespace osu.Game.Beatmaps.Drawable
protected virtual void Selected()
{
BorderColour = new Color4(BorderColour.R, BorderColour.G, BorderColour.B, 255);
GlowRadius = 10;
BorderThickness = 2.5f;
EdgeEffect = new EdgeEffect
{
Type = EdgeEffectType.Glow,
Colour = new Color4(150, 204, 255, 150),
Radius = 20,
Roundness = 10,
};
}
protected virtual void Deselected()
{
BorderColour = new Color4(BorderColour.R, BorderColour.G, BorderColour.B, 0);
GlowRadius = 0;
BorderThickness = 0;
EdgeEffect = new EdgeEffect { Type = EdgeEffectType.None };
}
protected override bool OnClick(InputState state)
{
State = PanelSelectedState.Selected;
return true;
protected override bool OnClick(InputState state)
{
State = PanelSelectedState.Selected;
return true;
}
}