mirror of
https://github.com/ppy/osu.git
synced 2025-01-15 14:12:54 +08:00
Rename nested classes to be more appropriate
This commit is contained in:
parent
89d90fdfa0
commit
63cef8b8b7
@ -59,16 +59,16 @@ namespace osu.Game.Screens.Edit.Compose.Components.Timeline
|
|||||||
base.Update();
|
base.Update();
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override SelectionBlueprint CreateBlueprintFor(HitObject hitObject) => new TimelineHitObjectRepresentation(hitObject);
|
protected override SelectionBlueprint CreateBlueprintFor(HitObject hitObject) => new TimelineHitObjectBlueprint(hitObject);
|
||||||
|
|
||||||
protected override DragBox CreateDragBox(Action<RectangleF> performSelect) => new CustomDragBox(performSelect);
|
protected override DragBox CreateDragBox(Action<RectangleF> performSelect) => new TimelineDragBox(performSelect);
|
||||||
|
|
||||||
private class CustomDragBox : DragBox
|
private class TimelineDragBox : DragBox
|
||||||
{
|
{
|
||||||
private Vector2 lastMouseDown;
|
private Vector2 lastMouseDown;
|
||||||
private float localMouseDown;
|
private float localMouseDown;
|
||||||
|
|
||||||
public CustomDragBox(Action<RectangleF> performSelect)
|
public TimelineDragBox(Action<RectangleF> performSelect)
|
||||||
: base(performSelect)
|
: base(performSelect)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
@ -109,7 +109,7 @@ namespace osu.Game.Screens.Edit.Compose.Components.Timeline
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private class TimelineHitObjectRepresentation : SelectionBlueprint
|
private class TimelineHitObjectBlueprint : SelectionBlueprint
|
||||||
{
|
{
|
||||||
private readonly Circle circle;
|
private readonly Circle circle;
|
||||||
|
|
||||||
@ -121,7 +121,7 @@ namespace osu.Game.Screens.Edit.Compose.Components.Timeline
|
|||||||
|
|
||||||
public override bool ReceivePositionalInputAt(Vector2 screenSpacePos) => base.ReceivePositionalInputAt(screenSpacePos) || circle.ReceivePositionalInputAt(screenSpacePos);
|
public override bool ReceivePositionalInputAt(Vector2 screenSpacePos) => base.ReceivePositionalInputAt(screenSpacePos) || circle.ReceivePositionalInputAt(screenSpacePos);
|
||||||
|
|
||||||
public TimelineHitObjectRepresentation(HitObject hitObject)
|
public TimelineHitObjectBlueprint(HitObject hitObject)
|
||||||
: base(hitObject)
|
: base(hitObject)
|
||||||
{
|
{
|
||||||
Anchor = Anchor.CentreLeft;
|
Anchor = Anchor.CentreLeft;
|
||||||
|
Loading…
Reference in New Issue
Block a user