1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-26 03:49:56 +08:00

Arbitrarily move colour assignment

This commit is contained in:
Dean Herbert
2017-09-27 12:40:32 +08:00
Unverified
parent d5ed218488
commit faad3fc7d3
@@ -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;
}
}
}