1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-22 19:27:31 +08:00

Ensure badges are ordered correctly

This commit is contained in:
jorolf 2018-05-22 13:05:15 +02:00
parent 088deee70a
commit a7bdaf75b0

View File

@ -113,7 +113,11 @@ namespace osu.Game.Overlays.Profile.Header
{
Anchor = Anchor.TopCentre,
Origin = Anchor.TopCentre,
}, badgeFlowContainer.Add);
}, asyncBadge =>
{
badgeFlowContainer.Add(asyncBadge);
badgeFlowContainer.ChangeChildDepth(asyncBadge, Array.IndexOf(badges, asyncBadge)); //Ensure the badges are ordered correctly
});
}
}