mirror of
https://github.com/ppy/osu.git
synced 2024-12-16 05:42:54 +08:00
36 lines
946 B
C#
36 lines
946 B
C#
// 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.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;
|
|
|
|
public override bool IsSwitchable => false;
|
|
|
|
public ChannelSelectorTabItem(Channel value)
|
|
: base(value)
|
|
{
|
|
Depth = float.MaxValue;
|
|
Width = 45;
|
|
|
|
Icon.Alpha = 0;
|
|
|
|
Text.Font = Text.Font.With(size: 45);
|
|
TextBold.Font = Text.Font.With(size: 45);
|
|
}
|
|
|
|
[BackgroundDependencyLoader]
|
|
private new void load(OsuColour colour)
|
|
{
|
|
BackgroundInactive = colour.Gray2;
|
|
BackgroundActive = colour.Gray3;
|
|
}
|
|
}
|
|
}
|