1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 10:12:54 +08:00

Add back button to mod select overlays

This commit is contained in:
Bartłomiej Dach 2022-05-06 22:30:07 +02:00
parent 6ad990dfc3
commit 271d64fd54
No known key found for this signature in database
GPG Key ID: BCECCD4FA41F6497

View File

@ -79,7 +79,7 @@ namespace osu.Game.Overlays.Mods
private FillFlowContainer<ShearedButton> footerButtonFlow = null!;
[BackgroundDependencyLoader]
private void load()
private void load(OsuColour colours)
{
Header.Title = ModSelectScreenStrings.ModSelectTitle;
Header.Description = ModSelectScreenStrings.ModSelectDescription;
@ -171,7 +171,13 @@ namespace osu.Game.Overlays.Mods
Horizontal = 70
},
Spacing = new Vector2(10),
ChildrenEnumerable = CreateFooterButtons()
ChildrenEnumerable = CreateFooterButtons().Prepend(new ShearedButton(200)
{
Text = CommonStrings.Back,
Action = Hide,
DarkerColour = colours.Pink2,
LighterColour = colours.Pink1
})
};
}