mirror of
https://github.com/ppy/osu.git
synced 2025-01-26 16:12:54 +08:00
Add xmldoc and address some code quality concerns
This commit is contained in:
parent
c28a9bdb80
commit
85156c62ef
@ -21,12 +21,27 @@ using osuTK.Graphics;
|
|||||||
|
|
||||||
namespace osu.Game.Rulesets.Mania.Edit
|
namespace osu.Game.Rulesets.Mania.Edit
|
||||||
{
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// A grid which displays coloured beat divisor lines in proximity to the selection or placement cursor.
|
||||||
|
/// </summary>
|
||||||
public class ManiaBeatSnapGrid : Component
|
public class ManiaBeatSnapGrid : Component
|
||||||
{
|
{
|
||||||
private const double visible_range = 750;
|
private const double visible_range = 750;
|
||||||
|
|
||||||
[Resolved]
|
/// <summary>
|
||||||
private IManiaHitObjectComposer composer { get; set; }
|
/// The range of time values of the current selection.
|
||||||
|
/// </summary>
|
||||||
|
public (double start, double end)? SelectionTimeRange
|
||||||
|
{
|
||||||
|
set
|
||||||
|
{
|
||||||
|
if (value == selectionTimeRange)
|
||||||
|
return;
|
||||||
|
|
||||||
|
selectionTimeRange = value;
|
||||||
|
lineCache.Invalidate();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
[Resolved]
|
[Resolved]
|
||||||
private EditorBeatmap beatmap { get; set; }
|
private EditorBeatmap beatmap { get; set; }
|
||||||
@ -49,20 +64,8 @@ namespace osu.Game.Rulesets.Mania.Edit
|
|||||||
|
|
||||||
private (double start, double end)? selectionTimeRange;
|
private (double start, double end)? selectionTimeRange;
|
||||||
|
|
||||||
public (double start, double end)? SelectionTimeRange
|
|
||||||
{
|
|
||||||
set
|
|
||||||
{
|
|
||||||
if (value == selectionTimeRange)
|
|
||||||
return;
|
|
||||||
|
|
||||||
selectionTimeRange = value;
|
|
||||||
lineCache.Invalidate();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
[BackgroundDependencyLoader]
|
[BackgroundDependencyLoader]
|
||||||
private void load()
|
private void load(IManiaHitObjectComposer composer)
|
||||||
{
|
{
|
||||||
foreach (var stage in composer.Playfield.Stages)
|
foreach (var stage in composer.Playfield.Stages)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user