mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 23:52:57 +08:00
Clarify usages of reverse child ID flow with inline comments
This commit is contained in:
parent
82ed8eae6b
commit
999bba439f
@ -151,6 +151,7 @@ namespace osu.Game.Overlays
|
||||
}
|
||||
|
||||
// spawn new children with the contained so we only clear old content at the last moment.
|
||||
// reverse ID flow is required for correct Z-ordering of the cards' expandable content (last card should be front-most).
|
||||
var content = new ReverseChildIDFillFlowContainer<BeatmapCard>
|
||||
{
|
||||
RelativeSizeAxes = Axes.X,
|
||||
|
@ -80,6 +80,8 @@ namespace osu.Game.Overlays.Profile
|
||||
}
|
||||
}
|
||||
},
|
||||
// reverse ID flow is required for correct Z-ordering of the content (last item should be front-most).
|
||||
// particularly important in BeatmapsSection, as it uses beatmap cards, which have expandable overhanging content.
|
||||
content = new ReverseChildIDFillFlowContainer<Drawable>
|
||||
{
|
||||
Direction = FillDirection.Vertical,
|
||||
|
@ -49,11 +49,14 @@ namespace osu.Game.Overlays.Profile.Sections
|
||||
Direction = FillDirection.Vertical,
|
||||
Children = new Drawable[]
|
||||
{
|
||||
// reverse ID flow is required for correct Z-ordering of the items (last item should be front-most).
|
||||
// particularly important in PaginatedBeatmapContainer, as it uses beatmap cards, which have expandable overhanging content.
|
||||
ItemsContainer = new ReverseChildIDFillFlowContainer<Drawable>
|
||||
{
|
||||
AutoSizeAxes = Axes.Y,
|
||||
RelativeSizeAxes = Axes.X,
|
||||
Spacing = new Vector2(0, 2),
|
||||
// ensure the container and its contents are in front of the "more" button.
|
||||
Depth = float.MinValue
|
||||
},
|
||||
moreButton = new ShowMoreButton
|
||||
|
@ -135,6 +135,7 @@ namespace osu.Game.Overlays.Rankings
|
||||
Children = new Drawable[]
|
||||
{
|
||||
new ScoresTable(1, response.Users),
|
||||
// reverse ID flow is required for correct Z-ordering of the cards' expandable content (last card should be front-most).
|
||||
new ReverseChildIDFillFlowContainer<BeatmapCard>
|
||||
{
|
||||
AutoSizeAxes = Axes.Y,
|
||||
|
Loading…
Reference in New Issue
Block a user