1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-06 09:07:25 +08:00

Arbitrarily move colour assignment

This commit is contained in:
Dean Herbert 2017-09-27 12:40:32 +08:00
parent d5ed218488
commit faad3fc7d3

View File

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