2022-03-15 02:31:13 +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.
|
|
|
|
|
|
2022-03-18 12:57:36 +08:00
|
|
|
|
#nullable enable
|
|
|
|
|
|
2022-03-15 05:10:39 +08:00
|
|
|
|
using osu.Framework.Allocation;
|
2022-03-15 02:31:13 +08:00
|
|
|
|
using osu.Framework.Graphics;
|
|
|
|
|
using osu.Framework.Graphics.Sprites;
|
2022-03-15 05:10:39 +08:00
|
|
|
|
using osu.Game.Graphics;
|
2022-03-20 01:23:59 +08:00
|
|
|
|
using osu.Game.Graphics.UserInterface;
|
2022-03-15 02:31:13 +08:00
|
|
|
|
using osuTK;
|
|
|
|
|
|
|
|
|
|
namespace osu.Game.Overlays.Chat.ChannelControl
|
|
|
|
|
{
|
2022-03-20 01:23:59 +08:00
|
|
|
|
public class ControlItemClose : OsuAnimatedButton
|
2022-03-15 02:31:13 +08:00
|
|
|
|
{
|
2022-03-20 01:23:59 +08:00
|
|
|
|
[BackgroundDependencyLoader]
|
|
|
|
|
private void load(OsuColour osuColour)
|
2022-03-15 02:31:13 +08:00
|
|
|
|
{
|
|
|
|
|
Alpha = 0f;
|
|
|
|
|
Size = new Vector2(20);
|
2022-03-20 01:23:59 +08:00
|
|
|
|
Add(new SpriteIcon
|
2022-03-15 02:31:13 +08:00
|
|
|
|
{
|
|
|
|
|
Anchor = Anchor.Centre,
|
|
|
|
|
Origin = Anchor.Centre,
|
|
|
|
|
Scale = new Vector2(0.75f),
|
|
|
|
|
Icon = FontAwesome.Solid.TimesCircle,
|
|
|
|
|
RelativeSizeAxes = Axes.Both,
|
2022-03-20 01:23:59 +08:00
|
|
|
|
Colour = osuColour.Red1,
|
|
|
|
|
});
|
2022-03-15 02:31:13 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|