mirror of
https://github.com/osukey/osukey.git
synced 2025-07-02 00:40:09 +09:00
Create separate type for Join-Channel button
This commit is contained in:
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),
|
Margin = new MarginPadding(10),
|
||||||
});
|
});
|
||||||
|
|
||||||
AddTabItem(selectorTab = new ChannelSelectorTabItem(new Channel { Name = "+" }));
|
AddTabItem(selectorTab = new ChannelSelectorTabItem(new ChannelSelectorTabChannel()));
|
||||||
|
|
||||||
ChannelSelectorActive.BindTo(selectorTab.Active);
|
ChannelSelectorActive.BindTo(selectorTab.Active);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user