mirror of
https://github.com/osukey/osukey.git
synced 2025-08-04 23:24:04 +09:00
Ensure channel traversal shortcut is using visual order
This commit is contained in:
@ -4,6 +4,7 @@
|
||||
#nullable enable
|
||||
|
||||
using System;
|
||||
using System.Linq;
|
||||
using System.Collections.Generic;
|
||||
using osu.Framework.Allocation;
|
||||
using osu.Framework.Graphics;
|
||||
@ -22,6 +23,8 @@ namespace osu.Game.Overlays.Chat.ChannelList
|
||||
public Action<Channel>? OnRequestSelect;
|
||||
public Action<Channel>? OnRequestLeave;
|
||||
|
||||
public IEnumerable<Channel> Channels => publicChannelFlow.Channels.Concat(privateChannelFlow.Channels);
|
||||
|
||||
public readonly ChannelListing.ChannelListingChannel ChannelListingChannel = new ChannelListing.ChannelListingChannel();
|
||||
|
||||
private readonly Dictionary<Channel, ChannelListItem> channelMap = new Dictionary<Channel, ChannelListItem>();
|
||||
@ -118,6 +121,10 @@ namespace osu.Game.Overlays.Chat.ChannelList
|
||||
|
||||
private class ChannelListItemFlow : FillFlowContainer
|
||||
{
|
||||
public IEnumerable<Channel> Channels => Children.Where(c => c is ChannelListItem)
|
||||
.Cast<ChannelListItem>()
|
||||
.Select(c => c.Channel);
|
||||
|
||||
public ChannelListItemFlow(string label)
|
||||
{
|
||||
Direction = FillDirection.Vertical;
|
||||
|
Reference in New Issue
Block a user