2019-01-24 08:43:03 +00: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-09 17:42:57 +00: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 02:48:36 +00:00
|
|
|
|
public override bool IsSwitchable => false;
|
|
|
|
|
|
2019-07-28 10:40:21 +00:00
|
|
|
|
protected override bool IsBoldWhenActive => false;
|
|
|
|
|
|
2019-05-12 10:26:03 +00:00
|
|
|
|
public ChannelSelectorTabItem()
|
|
|
|
|
: base(new ChannelSelectorTabChannel())
|
2018-07-09 17:42:57 +00:00
|
|
|
|
{
|
|
|
|
|
Depth = float.MaxValue;
|
|
|
|
|
Width = 45;
|
|
|
|
|
|
|
|
|
|
Icon.Alpha = 0;
|
|
|
|
|
|
2019-02-20 10:32:30 +00:00
|
|
|
|
Text.Font = Text.Font.With(size: 45);
|
2019-07-28 17:47:26 +00:00
|
|
|
|
Text.Truncate = false;
|
2018-07-09 17:42:57 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[BackgroundDependencyLoader]
|
2019-04-25 08:36:17 +00:00
|
|
|
|
private void load(OsuColour colour)
|
2018-07-09 17:42:57 +00:00
|
|
|
|
{
|
|
|
|
|
BackgroundInactive = colour.Gray2;
|
|
|
|
|
BackgroundActive = colour.Gray3;
|
|
|
|
|
}
|
2019-05-12 10:31:11 +00:00
|
|
|
|
|
|
|
|
|
public class ChannelSelectorTabChannel : Channel
|
|
|
|
|
{
|
|
|
|
|
public ChannelSelectorTabChannel()
|
|
|
|
|
{
|
|
|
|
|
Name = "+";
|
2020-03-15 21:13:26 +00:00
|
|
|
|
Type = ChannelType.System;
|
2019-05-12 10:31:11 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
2018-07-09 17:42:57 +00:00
|
|
|
|
}
|
|
|
|
|
}
|