mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 20:22:55 +08:00
removed some unused stuff
This commit is contained in:
parent
187a0e3613
commit
9881889f88
@ -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;
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -451,63 +451,5 @@ namespace osu.Game.Screens.Select
|
||||
valueText.Colour = colour.GrayB;
|
||||
}
|
||||
}
|
||||
|
||||
private class RetryAndFailBar : Container<Bar>
|
||||
{
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user