From ba39a9df8ec61c364ca8c62813d3138025a95783 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20M=C3=BCller?= Date: Sat, 5 Nov 2016 12:24:15 +0100 Subject: [PATCH] Fix wrong initial state of beatmap panels. --- osu.Game/Beatmaps/Drawable/Panel.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/osu.Game/Beatmaps/Drawable/Panel.cs b/osu.Game/Beatmaps/Drawable/Panel.cs index c9da9e9ac2..5e77e152ff 100644 --- a/osu.Game/Beatmaps/Drawable/Panel.cs +++ b/osu.Game/Beatmaps/Drawable/Panel.cs @@ -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