mirror of
https://github.com/osukey/osukey.git
synced 2025-05-18 20:17:23 +09:00
Clear table if no scores are provided
This commit is contained in:
parent
2c18b6df1c
commit
e246fad301
@ -52,6 +52,9 @@ namespace osu.Game.Overlays.BeatmapSet.Scores
|
|||||||
{
|
{
|
||||||
set
|
set
|
||||||
{
|
{
|
||||||
|
scoresGrid.Content = new Drawable[0][];
|
||||||
|
backgroundFlow.Clear();
|
||||||
|
|
||||||
if (value == null || !value.Any())
|
if (value == null || !value.Any())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
@ -60,8 +63,6 @@ namespace osu.Game.Overlays.BeatmapSet.Scores
|
|||||||
new ScoreTableHeaderRow(value.First()).CreateDrawables().ToArray()
|
new ScoreTableHeaderRow(value.First()).CreateDrawables().ToArray()
|
||||||
};
|
};
|
||||||
|
|
||||||
backgroundFlow.Clear();
|
|
||||||
|
|
||||||
for (int i = 0; i < value.Count; i++)
|
for (int i = 0; i < value.Count; i++)
|
||||||
{
|
{
|
||||||
content.Add(new ScoreTableScoreRow(i, value[i]).CreateDrawables().ToArray());
|
content.Add(new ScoreTableScoreRow(i, value[i]).CreateDrawables().ToArray());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user