mirror of
https://github.com/ppy/osu.git
synced 2025-02-21 19:32:55 +08:00
Arbitrarily move colour assignment
This commit is contained in:
parent
d5ed218488
commit
faad3fc7d3
@ -17,15 +17,11 @@ namespace osu.Game.Screens.Edit.Components.Timelines.Summary.Parts
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
internal class MarkerPart : TimelinePart
|
internal class MarkerPart : TimelinePart
|
||||||
{
|
{
|
||||||
private Drawable marker;
|
private readonly Drawable marker;
|
||||||
|
|
||||||
[BackgroundDependencyLoader]
|
public MarkerPart()
|
||||||
private void load(OsuColour colours)
|
|
||||||
{
|
{
|
||||||
Add(marker = new MarkerVisualisation
|
Add(marker = new MarkerVisualisation());
|
||||||
{
|
|
||||||
Colour = colours.Red
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override bool OnDragStart(InputState state) => true;
|
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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user