2019-01-24 16:43:03 +08:00
|
|
|
|
// 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.
|
2018-07-10 01:42:57 +08:00
|
|
|
|
|
|
|
|
|
using osu.Framework.Allocation;
|
|
|
|
|
using osu.Game.Graphics;
|
|
|
|
|
using osu.Game.Online.Chat;
|
|
|
|
|
|
|
|
|
|
namespace osu.Game.Overlays.Chat.Tabs
|
|
|
|
|
{
|
|
|
|
|
public class ChannelSelectorTabItem : ChannelTabItem
|
|
|
|
|
{
|
|
|
|
|
public override bool IsRemovable => false;
|
|
|
|
|
|
2018-12-03 10:48:36 +08:00
|
|
|
|
public override bool IsSwitchable => false;
|
|
|
|
|
|
2019-05-12 18:26:03 +08:00
|
|
|
|
public ChannelSelectorTabItem()
|
|
|
|
|
: base(new ChannelSelectorTabChannel())
|
2018-07-10 01:42:57 +08:00
|
|
|
|
{
|
|
|
|
|
Depth = float.MaxValue;
|
|
|
|
|
Width = 45;
|
|
|
|
|
|
|
|
|
|
Icon.Alpha = 0;
|
|
|
|
|
|
2019-02-20 18:32:30 +08:00
|
|
|
|
Text.Font = Text.Font.With(size: 45);
|
|
|
|
|
TextBold.Font = Text.Font.With(size: 45);
|
2018-07-10 01:42:57 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[BackgroundDependencyLoader]
|
2019-04-25 16:36:17 +08:00
|
|
|
|
private void load(OsuColour colour)
|
2018-07-10 01:42:57 +08:00
|
|
|
|
{
|
|
|
|
|
BackgroundInactive = colour.Gray2;
|
|
|
|
|
BackgroundActive = colour.Gray3;
|
|
|
|
|
}
|
2019-05-12 18:31:11 +08:00
|
|
|
|
|
|
|
|
|
public class ChannelSelectorTabChannel : Channel
|
|
|
|
|
{
|
|
|
|
|
public ChannelSelectorTabChannel()
|
|
|
|
|
{
|
|
|
|
|
Name = "+";
|
|
|
|
|
}
|
|
|
|
|
}
|
2018-07-10 01:42:57 +08:00
|
|
|
|
}
|
|
|
|
|
}
|