2022-09-19 13:59:03 +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.
|
|
|
|
|
|
|
|
using osu.Framework.Allocation;
|
|
|
|
using osu.Framework.Bindables;
|
|
|
|
using osu.Framework.Graphics;
|
|
|
|
using osu.Framework.Graphics.Containers;
|
|
|
|
using osu.Framework.Graphics.Shapes;
|
|
|
|
using osu.Game.Rulesets.Objects.Drawables;
|
|
|
|
using osuTK;
|
|
|
|
using osuTK.Graphics;
|
|
|
|
|
|
|
|
namespace osu.Game.Rulesets.Osu.Skinning.Argon
|
|
|
|
{
|
|
|
|
public partial class ArgonSliderScorePoint : CircularContainer
|
|
|
|
{
|
|
|
|
private Bindable<Color4> accentColour = null!;
|
|
|
|
|
2024-01-25 17:23:25 +08:00
|
|
|
public const float SIZE = 12;
|
2022-09-19 13:59:03 +08:00
|
|
|
|
|
|
|
[BackgroundDependencyLoader]
|
|
|
|
private void load(DrawableHitObject hitObject)
|
|
|
|
{
|
|
|
|
Masking = true;
|
|
|
|
Origin = Anchor.Centre;
|
2024-01-25 17:23:25 +08:00
|
|
|
Size = new Vector2(SIZE);
|
2022-09-19 13:59:03 +08:00
|
|
|
BorderThickness = 3;
|
|
|
|
BorderColour = Color4.White;
|
|
|
|
Child = new Box
|
|
|
|
{
|
|
|
|
RelativeSizeAxes = Axes.Both,
|
|
|
|
AlwaysPresent = true,
|
|
|
|
Alpha = 0,
|
|
|
|
};
|
|
|
|
|
|
|
|
accentColour = hitObject.AccentColour.GetBoundCopy();
|
2022-09-23 20:11:25 +08:00
|
|
|
accentColour.BindValueChanged(accent => BorderColour = accent.NewValue, true);
|
2022-09-19 13:59:03 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|