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:
parent
cd5ad5a05c
commit
50de8528a5
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user