Add SpotlightsLayout to RankingsOverlay

This commit is contained in:
Andrei Zavatski
2020-02-11 02:35:23 +03:00
parent b04a4b5c8a
commit 0b6558dc40
6 changed files with 85 additions and 167 deletions

View File

@ -5,7 +5,6 @@ using System;
using System.Collections.Generic;
using osu.Framework.Allocation;
using osu.Framework.Bindables;
using osu.Game.Online.API.Requests.Responses;
using osu.Game.Overlays;
using osu.Game.Overlays.Rankings;
using osu.Game.Rulesets;
@ -35,25 +34,7 @@ namespace osu.Game.Tests.Visual.Online
{
Current = { BindTarget = scope },
Country = { BindTarget = countryBindable },
Ruleset = { BindTarget = ruleset },
Spotlights = new[]
{
new APISpotlight
{
Id = 1,
Name = "Spotlight 1"
},
new APISpotlight
{
Id = 2,
Name = "Spotlight 2"
},
new APISpotlight
{
Id = 3,
Name = "Spotlight 3"
}
}
Ruleset = { BindTarget = ruleset }
});
var country = new Country