1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-15 18:52:55 +08:00

Use new header in the RankingsOverlay

This commit is contained in:
Andrei Zavatski 2020-02-03 20:53:30 +03:00
parent dc1d0d0f32
commit 3b6ed3fb27
2 changed files with 5 additions and 3 deletions

View File

@ -25,7 +25,8 @@ namespace osu.Game.Tests.Visual.Online
typeof(TableRowBackground), typeof(TableRowBackground),
typeof(UserBasedTable), typeof(UserBasedTable),
typeof(RankingsTable<>), typeof(RankingsTable<>),
typeof(RankingsOverlay) typeof(RankingsOverlay),
typeof(RankingsOverlayHeader)
}; };
[Cached] [Cached]

View File

@ -55,12 +55,13 @@ namespace osu.Game.Overlays
Direction = FillDirection.Vertical, Direction = FillDirection.Vertical,
Children = new Drawable[] Children = new Drawable[]
{ {
new RankingsHeader new RankingsOverlayHeader
{ {
Anchor = Anchor.TopCentre, Anchor = Anchor.TopCentre,
Origin = Anchor.TopCentre, Origin = Anchor.TopCentre,
Depth = -float.MaxValue,
Country = { BindTarget = Country }, Country = { BindTarget = Country },
Scope = { BindTarget = Scope }, Current = { BindTarget = Scope },
Ruleset = { BindTarget = ruleset } Ruleset = { BindTarget = ruleset }
}, },
new Container new Container