diff --git a/osu.Game/Graphics/UserInterface/BarGraph.cs b/osu.Game/Graphics/UserInterface/BarGraph.cs index 2b1ea7aacd..e3f087b95c 100644 --- a/osu.Game/Graphics/UserInterface/BarGraph.cs +++ b/osu.Game/Graphics/UserInterface/BarGraph.cs @@ -2,7 +2,6 @@ // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE using OpenTK; -using OpenTK.Graphics; using osu.Framework.Graphics; using osu.Framework.Graphics.Containers; using System.Collections.Generic; diff --git a/osu.Game/Screens/Select/BeatmapDetailArea.cs b/osu.Game/Screens/Select/BeatmapDetailArea.cs index 480814d013..169530a0c2 100644 --- a/osu.Game/Screens/Select/BeatmapDetailArea.cs +++ b/osu.Game/Screens/Select/BeatmapDetailArea.cs @@ -24,7 +24,6 @@ namespace osu.Game.Screens.Select private APIAccess api; private WorkingBeatmap beatmap; - public WorkingBeatmap Beatmap { get @@ -34,11 +33,8 @@ namespace osu.Game.Screens.Select set { beatmap = value; - if (IsLoaded) - if (currentTab == BeatmapDetailTab.Details) - Schedule(updateDetails); - else - Schedule(updateScores); + Schedule(updateDetails); + Schedule(updateScores); } } diff --git a/osu.Game/Screens/Select/BeatmapDetails.cs b/osu.Game/Screens/Select/BeatmapDetails.cs index 433374509b..56dda7fd89 100644 --- a/osu.Game/Screens/Select/BeatmapDetails.cs +++ b/osu.Game/Screens/Select/BeatmapDetails.cs @@ -451,63 +451,5 @@ namespace osu.Game.Screens.Select valueText.Colour = colour.GrayB; } } - - private class RetryAndFailBar : Container - { - private readonly Bar retryBar; - private readonly Bar failBar; - - public float RetryLength - { - get - { - return retryBar.Length; - } - set - { - retryBar.Length = value + FailLength; - } - } - - public float FailLength - { - get - { - return failBar.Length; - } - set - { - failBar.Length = value; - } - } - - public RetryAndFailBar() - { - Children = new[] - { - retryBar = new Bar - { - RelativeSizeAxes = Axes.Both, - Direction = BarDirection.BottomToTop, - Length = 0, - BackgroundColour = new Color4(0,0,0,0), - }, - failBar = new Bar - { - RelativeSizeAxes = Axes.Both, - Direction = BarDirection.BottomToTop, - Length = 0, - BackgroundColour = new Color4(0,0,0,0), - }, - }; - } - - [BackgroundDependencyLoader] - private void load(OsuColour colour) - { - retryBar.Colour = colour.Yellow; - failBar.Colour = colour.YellowDarker; - } - } } } \ No newline at end of file