Add non-hiding selection state

This commit is contained in:
Dean Herbert
2020-01-21 14:21:00 +09:00
parent 53fe0ce790
commit 8f16c1cb04
2 changed files with 14 additions and 4 deletions

View File

@ -70,6 +70,8 @@ namespace osu.Game.Screens.Edit.Compose.Components.Timeline
private class TimelineHitObjectRepresentation : SelectionBlueprint
{
private Circle circle;
public const float THICKNESS = 3;
public TimelineHitObjectRepresentation(HitObject hitObject)
@ -104,7 +106,7 @@ namespace osu.Game.Screens.Edit.Compose.Components.Timeline
});
}
AddInternal(new Circle
AddInternal(circle = new Circle
{
Size = new Vector2(16),
Anchor = Anchor.CentreLeft,
@ -116,6 +118,10 @@ namespace osu.Game.Screens.Edit.Compose.Components.Timeline
BorderThickness = THICKNESS,
});
}
protected override void OnSelected() => circle.BorderColour = Color4.Orange;
protected override void OnDeselected() => circle.BorderColour = Color4.Black;
}
}
}