mirror of
https://github.com/ppy/osu.git
synced 2026-05-30 06:39:53 +08:00
Fix z-order of mod preview panel
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user