Fix z-order of mod preview panel

This commit is contained in:
Bartłomiej Dach 2023-09-11 10:19:02 +02:00
parent 0822e8b925
commit 3deb6cb4ec
No known key found for this signature in database

View File

@ -227,27 +227,6 @@ namespace osu.Game.Overlays.Mods
}
});
if (ShowModEffects)
{
aboveColumnsContent.Add(multiplierDisplay = new DifficultyMultiplierDisplay
{
Anchor = Anchor.TopRight,
Origin = Anchor.TopRight
});
FooterContent.Add(modEffectPreviewPanel = new ModEffectPreviewPanel
{
Anchor = Anchor.BottomRight,
Origin = Anchor.BottomRight,
Margin = new MarginPadding
{
Vertical = PADDING,
Horizontal = 70
},
BeatmapInfo = { Value = beatmap?.BeatmapInfo }
});
}
FooterContent.Add(footerButtonFlow = new FillFlowContainer<ShearedButton>
{
RelativeSizeAxes = Axes.X,
@ -270,6 +249,27 @@ namespace osu.Game.Overlays.Mods
})
});
if (ShowModEffects)
{
aboveColumnsContent.Add(multiplierDisplay = new DifficultyMultiplierDisplay
{
Anchor = Anchor.TopRight,
Origin = Anchor.TopRight
});
FooterContent.Add(modEffectPreviewPanel = new ModEffectPreviewPanel
{
Anchor = Anchor.BottomRight,
Origin = Anchor.BottomRight,
Margin = new MarginPadding
{
Vertical = PADDING,
Horizontal = 70
},
BeatmapInfo = { Value = beatmap?.BeatmapInfo }
});
}
globalAvailableMods.BindTo(game.AvailableMods);
}