Merge pull request #136 from Tom94/general-fixes

Fix wrong initial state of beatmap panels.
This commit is contained in:
Dean Herbert 2016-11-05 23:04:37 +09:00 committed by GitHub
commit 3c8f94dd0f

View File

@ -23,12 +23,14 @@ namespace osu.Game.Beatmaps.Drawable
Masking = true;
CornerRadius = 10;
BorderColour = new Color4(221, 255, 255, 0);
BorderColour = new Color4(221, 255, 255, 255);
RelativeSizeAxes = Axes.X;
Deselected();
}
private PanelSelectedState state;
private PanelSelectedState state = PanelSelectedState.NotSelected;
public PanelSelectedState State
{
@ -53,7 +55,6 @@ namespace osu.Game.Beatmaps.Drawable
protected virtual void Selected()
{
BorderColour = new Color4(BorderColour.R, BorderColour.G, BorderColour.B, 1f);
BorderThickness = 2.5f;
EdgeEffect = new EdgeEffect
@ -67,7 +68,6 @@ namespace osu.Game.Beatmaps.Drawable
protected virtual void Deselected()
{
BorderColour = new Color4(BorderColour.R, BorderColour.G, BorderColour.B, 0);
BorderThickness = 0;
EdgeEffect = new EdgeEffect