Simplify marker part construction

This commit is contained in:
Dean Herbert
2017-09-27 11:07:23 +08:00
parent eae29820c0
commit 7ad21d9a6d

View File

@ -17,17 +17,15 @@ namespace osu.Game.Screens.Edit.Components.Timelines.Summary.Parts
/// </summary>
internal class MarkerPart : TimelinePart
{
private readonly Drawable marker;
public MarkerPart()
{
Add(marker = new MarkerVisualisation());
}
private Drawable marker;
[BackgroundDependencyLoader]
private void load(OsuColour colours)
{
marker.Colour = colours.Red;
Add(marker = new MarkerVisualisation
{
Colour = colours.Red
});
}
protected override bool OnDragStart(InputState state) => true;