mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 11:37:28 +08:00
Fix TierColours
assignment
This commit is contained in:
parent
65bd2e74fd
commit
b62b5714e8
@ -48,17 +48,14 @@ namespace osu.Game.Graphics.UserInterface
|
||||
}
|
||||
}
|
||||
|
||||
private Colour4[] tierColours;
|
||||
private IReadOnlyList<Colour4> tierColours;
|
||||
|
||||
public Colour4[] TierColours
|
||||
public IReadOnlyList<Colour4> TierColours
|
||||
{
|
||||
get => tierColours;
|
||||
set
|
||||
{
|
||||
if (value.Length == 0 || value == tierColours)
|
||||
return;
|
||||
|
||||
tierCount = value.Length;
|
||||
tierCount = value.Count;
|
||||
tierColours = value;
|
||||
|
||||
graphNeedsUpdate = true;
|
||||
|
@ -53,10 +53,12 @@ namespace osu.Game.Screens.Play.HUD
|
||||
public ArgonSongProgressGraph()
|
||||
: base(5)
|
||||
{
|
||||
var colours = new List<Colour4>();
|
||||
|
||||
for (int i = 0; i < 5; i++)
|
||||
{
|
||||
TierColours[i] = Colour4.White.Opacity(1 / 5f * 0.85f);
|
||||
}
|
||||
colours.Add(Colour4.White.Opacity(1 / 5f * 0.85f));
|
||||
|
||||
TierColours = colours;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user