2021-04-15 17:42:30 +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.Graphics;
|
|
|
|
using osu.Game.Beatmaps.ControlPoints;
|
|
|
|
using osu.Game.Graphics;
|
|
|
|
using osu.Game.Screens.Edit.Components.Timelines.Summary.Visualisations;
|
|
|
|
|
|
|
|
namespace osu.Game.Screens.Edit.Components.Timelines.Summary.Parts
|
|
|
|
{
|
2022-01-15 22:56:00 +08:00
|
|
|
public partial class ControlPointVisualisation : PointVisualisation, IControlPointVisualisation
|
2021-04-15 17:42:30 +08:00
|
|
|
{
|
|
|
|
protected readonly ControlPoint Point;
|
|
|
|
|
|
|
|
public ControlPointVisualisation(ControlPoint point)
|
|
|
|
{
|
|
|
|
Point = point;
|
2024-07-08 18:41:23 +08:00
|
|
|
Width = 2;
|
2021-04-15 17:42:30 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
[BackgroundDependencyLoader]
|
|
|
|
private void load(OsuColour colours)
|
|
|
|
{
|
|
|
|
Colour = Point.GetRepresentingColour(colours);
|
|
|
|
}
|
2022-01-14 15:29:26 +08:00
|
|
|
|
2022-01-15 22:55:11 +08:00
|
|
|
public bool IsVisuallyRedundant(ControlPoint other) => other.GetType() == Point.GetType();
|
2021-04-15 17:42:30 +08:00
|
|
|
}
|
|
|
|
}
|