1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-20 21:01:17 +08:00

Allow buttons to be displayed on more than one state (and share the back button)

This commit is contained in:
Dean Herbert
2023-11-24 11:15:18 +09:00
Unverified
parent 1d1b3ca982
commit a069a673fa
2 changed files with 16 additions and 10 deletions
+2 -6
View File
@@ -107,12 +107,8 @@ namespace osu.Game.Screens.Menu
backButton = new MainMenuButton(ButtonSystemStrings.Back, @"back-to-top", OsuIcon.LeftCircle, new Color4(51, 58, 94, 255), () => State = ButtonSystemState.TopLevel,
-WEDGE_WIDTH)
{
VisibleState = ButtonSystemState.Edit,
},
backButton = new MainMenuButton(ButtonSystemStrings.Back, @"back-to-top", OsuIcon.LeftCircle, new Color4(51, 58, 94, 255), () => State = ButtonSystemState.TopLevel,
-WEDGE_WIDTH)
{
VisibleState = ButtonSystemState.Play,
VisibleStateMin = ButtonSystemState.Play,
VisibleStateMax = ButtonSystemState.Edit,
},
logoTrackingContainer.LogoFacade.With(d => d.Scale = new Vector2(0.74f))
});