mirror of
https://github.com/ppy/osu.git
synced 2025-03-05 18:12:55 +08:00
Move methods below ctor
This commit is contained in:
parent
94b6564b98
commit
c138e3907e
@ -25,8 +25,6 @@ namespace osu.Game.Screens.Edit.Compose.Components.Timeline
|
|||||||
{
|
{
|
||||||
private readonly Circle circle;
|
private readonly Circle circle;
|
||||||
|
|
||||||
protected override bool ShouldBeConsideredForInput(Drawable child) => true;
|
|
||||||
|
|
||||||
[UsedImplicitly]
|
[UsedImplicitly]
|
||||||
private readonly Bindable<double> startTime;
|
private readonly Bindable<double> startTime;
|
||||||
|
|
||||||
@ -42,11 +40,6 @@ namespace osu.Game.Screens.Edit.Compose.Components.Timeline
|
|||||||
|
|
||||||
private const float circle_size = 16;
|
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)
|
public TimelineHitObjectBlueprint(HitObject hitObject)
|
||||||
: base(hitObject)
|
: base(hitObject)
|
||||||
{
|
{
|
||||||
@ -138,6 +131,13 @@ namespace osu.Game.Screens.Edit.Compose.Components.Timeline
|
|||||||
Width = (float)(HitObject.GetEndTime() - HitObject.StartTime);
|
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()
|
protected override void OnSelected()
|
||||||
{
|
{
|
||||||
updateShadows();
|
updateShadows();
|
||||||
|
Loading…
Reference in New Issue
Block a user