1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-16 02:11:05 +08:00
osu-lazer/osu.Game/Screens/Play/Break/GlowIcon.cs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

48 lines
1.1 KiB
C#
Raw Normal View History

// 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-04-13 17:19:50 +08:00
using osu.Framework.Allocation;
2017-09-22 06:16:05 +08:00
using osu.Framework.Graphics;
using osu.Framework.Graphics.Sprites;
2017-09-21 06:44:30 +08:00
using osu.Game.Graphics;
using osu.Game.Graphics.Sprites;
2018-11-20 15:51:59 +08:00
using osuTK;
2018-04-13 17:19:50 +08:00
namespace osu.Game.Screens.Play.Break
2017-09-21 06:44:30 +08:00
{
public partial class GlowIcon : GlowingDrawable
2017-09-21 06:44:30 +08:00
{
private SpriteIcon icon = null!;
2018-04-13 17:19:50 +08:00
public IconUsage Icon
2017-09-21 06:44:30 +08:00
{
set => icon.Icon = value;
get => icon.Icon;
2017-09-23 01:43:51 +08:00
}
2018-04-13 17:19:50 +08:00
public new Vector2 Size
2017-09-23 01:43:51 +08:00
{
set => icon.Size = value;
get => icon.Size;
2017-09-22 06:16:05 +08:00
}
2018-04-13 17:19:50 +08:00
2017-09-22 06:16:05 +08:00
public GlowIcon()
2017-09-21 06:44:30 +08:00
{
RelativePositionAxes = Axes.X;
}
2018-04-13 17:19:50 +08:00
2017-09-21 06:44:30 +08:00
[BackgroundDependencyLoader]
private void load(OsuColour colours)
{
GlowColour = colours.BlueLighter;
2017-09-21 06:44:30 +08:00
}
protected override Drawable CreateDrawable() => icon = new SpriteIcon
{
Origin = Anchor.Centre,
Anchor = Anchor.Centre,
Shadow = false,
};
2017-09-21 06:44:30 +08:00
}
}