mirror of
https://github.com/ppy/osu.git
synced 2024-11-19 10:52:55 +08:00
Make it possible to retrieve loaded channel drawables in ChatOverlay
This commit is contained in:
parent
bea34e3aab
commit
02dc70be02
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user