mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 18:42:56 +08:00
Fix wrong initial state of beatmap panels.
This commit is contained in:
parent
223a9c6282
commit
ba39a9df8e
@ -23,12 +23,14 @@ 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, 255);
|
||||||
|
|
||||||
RelativeSizeAxes = Axes.X;
|
RelativeSizeAxes = Axes.X;
|
||||||
|
|
||||||
|
Deselected();
|
||||||
}
|
}
|
||||||
|
|
||||||
private PanelSelectedState state;
|
private PanelSelectedState state = PanelSelectedState.NotSelected;
|
||||||
|
|
||||||
public PanelSelectedState State
|
public PanelSelectedState State
|
||||||
{
|
{
|
||||||
@ -53,7 +55,6 @@ namespace osu.Game.Beatmaps.Drawable
|
|||||||
|
|
||||||
protected virtual void Selected()
|
protected virtual void Selected()
|
||||||
{
|
{
|
||||||
BorderColour = new Color4(BorderColour.R, BorderColour.G, BorderColour.B, 1f);
|
|
||||||
BorderThickness = 2.5f;
|
BorderThickness = 2.5f;
|
||||||
|
|
||||||
EdgeEffect = new EdgeEffect
|
EdgeEffect = new EdgeEffect
|
||||||
@ -67,7 +68,6 @@ namespace osu.Game.Beatmaps.Drawable
|
|||||||
|
|
||||||
protected virtual void Deselected()
|
protected virtual void Deselected()
|
||||||
{
|
{
|
||||||
BorderColour = new Color4(BorderColour.R, BorderColour.G, BorderColour.B, 0);
|
|
||||||
BorderThickness = 0;
|
BorderThickness = 0;
|
||||||
|
|
||||||
EdgeEffect = new EdgeEffect
|
EdgeEffect = new EdgeEffect
|
||||||
|
Loading…
Reference in New Issue
Block a user