mirror of
https://github.com/osukey/osukey.git
synced 2025-08-08 00:53:56 +09:00
Ensure spotlights always show at the top of the lounge listing
As proposed at https://github.com/ppy/osu/discussions/16936. Spotlights are intended to have focus, so let's make sure they are the first thing the user sees for the time being.
This commit is contained in:
@ -124,7 +124,12 @@ namespace osu.Game.Screens.OnlinePlay.Lounge.Components
|
|||||||
private void updateSorting()
|
private void updateSorting()
|
||||||
{
|
{
|
||||||
foreach (var room in roomFlow)
|
foreach (var room in roomFlow)
|
||||||
roomFlow.SetLayoutPosition(room, -(room.Room.RoomID.Value ?? 0));
|
{
|
||||||
|
roomFlow.SetLayoutPosition(room, room.Room.Category.Value == RoomCategory.Spotlight
|
||||||
|
// Always show spotlight playlists at the top of the listing.
|
||||||
|
? float.MinValue
|
||||||
|
: -(room.Room.RoomID.Value ?? 0));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override bool OnClick(ClickEvent e)
|
protected override bool OnClick(ClickEvent e)
|
||||||
|
Reference in New Issue
Block a user