Move methods below ctor

This commit is contained in:
smoogipoo 2020-02-06 14:35:45 +09:00
parent 94b6564b98
commit c138e3907e
1 changed files with 7 additions and 7 deletions

View File

@ -25,8 +25,6 @@ public class TimelineHitObjectBlueprint : SelectionBlueprint
{
private readonly Circle circle;
protected override bool ShouldBeConsideredForInput(Drawable child) => true;
[UsedImplicitly]
private readonly Bindable<double> startTime;
@ -42,11 +40,6 @@ public class TimelineHitObjectBlueprint : SelectionBlueprint
private const float circle_size = 16;
public override bool ReceivePositionalInputAt(Vector2 screenSpacePos) =>
base.ReceivePositionalInputAt(screenSpacePos) ||
circle.ReceivePositionalInputAt(screenSpacePos) ||
dragBar?.ReceivePositionalInputAt(screenSpacePos) == true;
public TimelineHitObjectBlueprint(HitObject hitObject)
: base(hitObject)
{
@ -138,6 +131,13 @@ protected override void Update()
Width = (float)(HitObject.GetEndTime() - HitObject.StartTime);
}
protected override bool ShouldBeConsideredForInput(Drawable child) => true;
public override bool ReceivePositionalInputAt(Vector2 screenSpacePos) =>
base.ReceivePositionalInputAt(screenSpacePos) ||
circle.ReceivePositionalInputAt(screenSpacePos) ||
dragBar?.ReceivePositionalInputAt(screenSpacePos) == true;
protected override void OnSelected()
{
updateShadows();