mirror of
https://github.com/ppy/osu.git
synced 2025-01-29 01:22:54 +08:00
Hide mod customisation toggle if customisation not permitted
This commit is contained in:
parent
881df7663d
commit
0d5ce336f4
@ -180,14 +180,6 @@ namespace osu.Game.Overlays.Mods
|
|||||||
Origin = Anchor.BottomCentre,
|
Origin = Anchor.BottomCentre,
|
||||||
Colour = colourProvider.Background5
|
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
|
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)
|
if (ShowTotalMultiplier)
|
||||||
{
|
{
|
||||||
aboveColumnsContainer.Add(multiplierDisplay = new DifficultyMultiplierDisplay
|
aboveColumnsContainer.Add(multiplierDisplay = new DifficultyMultiplierDisplay
|
||||||
|
Loading…
Reference in New Issue
Block a user