1
0
mirror of https://github.com/ppy/osu.git synced 2024-10-01 15:17:31 +08:00

Make it possible to retrieve loaded channel drawables in ChatOverlay

This commit is contained in:
Craftplacer 2019-12-17 06:56:05 +01:00
parent bea34e3aab
commit 02dc70be02

View File

@ -438,6 +438,11 @@ namespace osu.Game.Overlays
textbox.Text = string.Empty; textbox.Text = string.Empty;
} }
/// <summary>
/// Returns the loaded drawable for a channel. Returns null if not found.
/// </summary>
public DrawableChannel GetChannelDrawable(Channel channel) => loadedChannels.Find(drawable => drawable.Channel == channel);
private class TabsArea : Container private class TabsArea : Container
{ {
// IsHovered is used // IsHovered is used