mirror of
https://github.com/ppy/osu.git
synced 2025-03-19 01:17:19 +08:00
Create separate type for Join-Channel button
This commit is contained in:
parent
c508b8ed6b
commit
496a9dd41d
15
osu.Game/Overlays/Chat/Tabs/ChannelSelectorTabChannel.cs
Normal file
15
osu.Game/Overlays/Chat/Tabs/ChannelSelectorTabChannel.cs
Normal file
@ -0,0 +1,15 @@
|
||||
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
||||
// See the LICENCE file in the repository root for full licence text.
|
||||
|
||||
using osu.Game.Online.Chat;
|
||||
|
||||
namespace osu.Game.Overlays.Chat.Tabs
|
||||
{
|
||||
public class ChannelSelectorTabChannel : Channel
|
||||
{
|
||||
public ChannelSelectorTabChannel()
|
||||
{
|
||||
Name = "+";
|
||||
}
|
||||
}
|
||||
}
|
@ -38,7 +38,7 @@ namespace osu.Game.Overlays.Chat.Tabs
|
||||
Margin = new MarginPadding(10),
|
||||
});
|
||||
|
||||
AddTabItem(selectorTab = new ChannelSelectorTabItem(new Channel { Name = "+" }));
|
||||
AddTabItem(selectorTab = new ChannelSelectorTabItem(new ChannelSelectorTabChannel()));
|
||||
|
||||
ChannelSelectorActive.BindTo(selectorTab.Active);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user