mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 15:07:44 +08:00
Remove depth setting in SectionsContainer and profile.
This commit is contained in:
parent
0312103546
commit
8843d97895
@ -128,13 +128,11 @@ namespace osu.Game.Graphics.Containers
|
||||
RelativeSizeAxes = Axes.Both,
|
||||
Masking = true,
|
||||
ScrollbarVisible = false,
|
||||
Children = new Drawable[] { scrollContentContainer = CreateScrollContentContainer() },
|
||||
Depth = float.MaxValue
|
||||
Children = new Drawable[] { scrollContentContainer = CreateScrollContentContainer() }
|
||||
});
|
||||
AddInternal(headerBackgroundContainer = new Container
|
||||
{
|
||||
RelativeSizeAxes = Axes.X,
|
||||
Depth = float.MaxValue / 2
|
||||
RelativeSizeAxes = Axes.X
|
||||
});
|
||||
originalSectionsMargin = scrollContentContainer.Margin;
|
||||
}
|
||||
|
@ -169,13 +169,11 @@ namespace osu.Game.Overlays
|
||||
{
|
||||
header.User = user;
|
||||
|
||||
for (int i = 0; i < user.ProfileOrder.Length; i++)
|
||||
foreach (string id in user.ProfileOrder)
|
||||
{
|
||||
string id = user.ProfileOrder[i];
|
||||
var sec = sections.FirstOrDefault(s => s.Identifier == id);
|
||||
if (sec != null)
|
||||
{
|
||||
sec.Depth = -i;
|
||||
sectionsContainer.Add(sec);
|
||||
tabs.AddItem(sec);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user