mirror of
https://github.com/ppy/osu.git
synced 2025-01-06 21:12:55 +08:00
Use better glow in beatmap selection.
This commit is contained in:
parent
cd5ad5a05c
commit
50de8528a5
@ -23,7 +23,6 @@ namespace osu.Game.Beatmaps.Drawable
|
|||||||
Masking = true;
|
Masking = true;
|
||||||
CornerRadius = 10;
|
CornerRadius = 10;
|
||||||
BorderColour = new Color4(221, 255, 255, 0);
|
BorderColour = new Color4(221, 255, 255, 0);
|
||||||
GlowColour = new Color4(102, 204, 255, 100);
|
|
||||||
|
|
||||||
RelativeSizeAxes = Axes.X;
|
RelativeSizeAxes = Axes.X;
|
||||||
}
|
}
|
||||||
@ -54,15 +53,23 @@ namespace osu.Game.Beatmaps.Drawable
|
|||||||
protected virtual void Selected()
|
protected virtual void Selected()
|
||||||
{
|
{
|
||||||
BorderColour = new Color4(BorderColour.R, BorderColour.G, BorderColour.B, 255);
|
BorderColour = new Color4(BorderColour.R, BorderColour.G, BorderColour.B, 255);
|
||||||
GlowRadius = 10;
|
|
||||||
BorderThickness = 2.5f;
|
BorderThickness = 2.5f;
|
||||||
|
|
||||||
|
EdgeEffect = new EdgeEffect
|
||||||
|
{
|
||||||
|
Type = EdgeEffectType.Glow,
|
||||||
|
Colour = new Color4(150, 204, 255, 150),
|
||||||
|
Radius = 20,
|
||||||
|
Roundness = 10,
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
protected virtual void Deselected()
|
protected virtual void Deselected()
|
||||||
{
|
{
|
||||||
BorderColour = new Color4(BorderColour.R, BorderColour.G, BorderColour.B, 0);
|
BorderColour = new Color4(BorderColour.R, BorderColour.G, BorderColour.B, 0);
|
||||||
GlowRadius = 0;
|
|
||||||
BorderThickness = 0;
|
BorderThickness = 0;
|
||||||
|
|
||||||
|
EdgeEffect = new EdgeEffect { Type = EdgeEffectType.None };
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override bool OnClick(InputState state)
|
protected override bool OnClick(InputState state)
|
||||||
|
Loading…
Reference in New Issue
Block a user