1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-15 12:02:55 +08:00

Hide mod customisation toggle if customisation not permitted

This commit is contained in:
Bartłomiej Dach 2022-04-17 23:26:25 +02:00
parent 881df7663d
commit 0d5ce336f4
No known key found for this signature in database
GPG Key ID: BCECCD4FA41F6497

View File

@ -180,14 +180,6 @@ namespace osu.Game.Overlays.Mods
Origin = Anchor.BottomCentre,
Colour = colourProvider.Background5
},
new ShearedToggleButton(200)
{
Anchor = Anchor.BottomLeft,
Origin = Anchor.BottomLeft,
Margin = new MarginPadding { Vertical = 14, Left = 70 },
Text = "Mod Customisation",
Active = { BindTarget = customisationVisible }
}
}
},
new ClickToReturnContainer
@ -206,6 +198,18 @@ namespace osu.Game.Overlays.Mods
}
};
if (AllowConfiguration)
{
footer.Add(new ShearedToggleButton(200)
{
Anchor = Anchor.BottomLeft,
Origin = Anchor.BottomLeft,
Margin = new MarginPadding { Vertical = 14, Left = 70 },
Text = "Mod Customisation",
Active = { BindTarget = customisationVisible }
});
}
if (ShowTotalMultiplier)
{
aboveColumnsContainer.Add(multiplierDisplay = new DifficultyMultiplierDisplay