mirror of
https://github.com/ppy/osu.git
synced 2024-11-15 13:07:24 +08:00
48 lines
1.1 KiB
C#
48 lines
1.1 KiB
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.Framework.Graphics;
|
|
using osu.Framework.Graphics.Sprites;
|
|
using osu.Game.Graphics;
|
|
using osu.Game.Graphics.Sprites;
|
|
using osuTK;
|
|
|
|
namespace osu.Game.Screens.Play.Break
|
|
{
|
|
public partial class GlowIcon : GlowingDrawable
|
|
{
|
|
private SpriteIcon icon = null!;
|
|
|
|
public IconUsage Icon
|
|
{
|
|
set => icon.Icon = value;
|
|
get => icon.Icon;
|
|
}
|
|
|
|
public new Vector2 Size
|
|
{
|
|
set => icon.Size = value;
|
|
get => icon.Size;
|
|
}
|
|
|
|
public GlowIcon()
|
|
{
|
|
RelativePositionAxes = Axes.X;
|
|
}
|
|
|
|
[BackgroundDependencyLoader]
|
|
private void load(OsuColour colours)
|
|
{
|
|
GlowColour = colours.BlueLighter;
|
|
}
|
|
|
|
protected override Drawable CreateDrawable() => icon = new SpriteIcon
|
|
{
|
|
Origin = Anchor.Centre,
|
|
Anchor = Anchor.Centre,
|
|
Shadow = false,
|
|
};
|
|
}
|
|
}
|