diff --git a/osu.Game/Screens/OnlinePlay/Multiplayer/MultiplayerMatchSongSelect.cs b/osu.Game/Screens/OnlinePlay/Multiplayer/MultiplayerMatchSongSelect.cs index 706f86a6eb..dcadbc493d 100644 --- a/osu.Game/Screens/OnlinePlay/Multiplayer/MultiplayerMatchSongSelect.cs +++ b/osu.Game/Screens/OnlinePlay/Multiplayer/MultiplayerMatchSongSelect.cs @@ -83,7 +83,7 @@ namespace osu.Game.Screens.OnlinePlay.Multiplayer initialItem = itemToEdit ?? room.Playlist.LastOrDefault(); Padding = new MarginPadding { Horizontal = HORIZONTAL_OVERFLOW_PADDING }; - LeftPadding = new MarginPadding { Top = CORNER_RADIUS_HIDE_OFFSET + Header.HEIGHT }; + TopPadding = Header.HEIGHT - 10; freeModSelect = new FreeModSelectOverlay { diff --git a/osu.Game/Screens/OnlinePlay/Playlists/PlaylistsSongSelect.cs b/osu.Game/Screens/OnlinePlay/Playlists/PlaylistsSongSelect.cs index 0fa0266cc9..2ab1deaf66 100644 --- a/osu.Game/Screens/OnlinePlay/Playlists/PlaylistsSongSelect.cs +++ b/osu.Game/Screens/OnlinePlay/Playlists/PlaylistsSongSelect.cs @@ -51,7 +51,7 @@ namespace osu.Game.Screens.OnlinePlay.Playlists ShowOsuLogo = false; Padding = new MarginPadding { Horizontal = HORIZONTAL_OVERFLOW_PADDING }; - LeftPadding = new MarginPadding { Top = CORNER_RADIUS_HIDE_OFFSET + Header.HEIGHT }; + TopPadding = Header.HEIGHT - 10; addToPlaylistFooterButton = new AddToPlaylistFooterButton { diff --git a/osu.Game/Screens/Select/BeatmapTitleWedge.cs b/osu.Game/Screens/Select/BeatmapTitleWedge.cs index 657e3ba15b..5a4154e0b8 100644 --- a/osu.Game/Screens/Select/BeatmapTitleWedge.cs +++ b/osu.Game/Screens/Select/BeatmapTitleWedge.cs @@ -46,6 +46,8 @@ namespace osu.Game.Screens.Select [Resolved] private IBindable onlineLookupResult { get; set; } = null!; + public float TopPadding { get; init; } + protected override bool StartHidden => true; private ModSettingChangeTracker? settingChangeTracker; @@ -97,7 +99,7 @@ namespace osu.Game.Screens.Select Direction = FillDirection.Vertical, Padding = new MarginPadding { - Top = SongSelect.WEDGE_CONTENT_MARGIN, + Top = SongSelect.WEDGE_CONTENT_MARGIN + TopPadding, Left = SongSelect.WEDGE_CONTENT_MARGIN }, Spacing = new Vector2(0f, 4f), diff --git a/osu.Game/Screens/Select/SongSelect.cs b/osu.Game/Screens/Select/SongSelect.cs index 51e814b1a1..b1df6a9be1 100644 --- a/osu.Game/Screens/Select/SongSelect.cs +++ b/osu.Game/Screens/Select/SongSelect.cs @@ -99,7 +99,11 @@ namespace osu.Game.Screens.Select /// protected bool ShowOsuLogo { get; init; } = true; - protected MarginPadding LeftPadding { get; init; } + /// + /// Additional padding to be added to the title wedge. + /// Generally set to show external content in this space. + /// + public float TopPadding { get; init; } private ModSelectOverlay modSelectOverlay = null!; private ModSpeedHotkeyHandler modSpeedHotkeyHandler = null!; @@ -233,10 +237,12 @@ namespace osu.Game.Screens.Select RelativeSizeAxes = Axes.Both, Spacing = new Vector2(0f, 4f), Direction = FillDirection.Vertical, - Padding = LeftPadding, Children = new Drawable[] { - new ShearAligningWrapper(titleWedge = new BeatmapTitleWedge()), + new ShearAligningWrapper(titleWedge = new BeatmapTitleWedge + { + TopPadding = TopPadding, + }), new ShearAligningWrapper(detailsArea = new BeatmapDetailsArea()), }, },