mirror of https://github.com/ppy/osu
Move back to DI-ing adjustable clock into SummaryTimeline
This commit is contained in:
parent
fbc50d6030
commit
a2484fbf56
|
@ -24,7 +24,7 @@ private void load(OsuGameBase osuGame)
|
|||
osuGame.Beatmap.Value = new TestWorkingBeatmap(new OsuRuleset().RulesetInfo);
|
||||
|
||||
SummaryTimeline summaryTimeline;
|
||||
Add(summaryTimeline = new SummaryTimeline(Clock)
|
||||
Add(summaryTimeline = new SummaryTimeline
|
||||
{
|
||||
Anchor = Anchor.Centre,
|
||||
Origin = Anchor.Centre,
|
||||
|
|
|
@ -17,15 +17,8 @@ namespace osu.Game.Screens.Edit.Components.Timelines.Summary
|
|||
/// </summary>
|
||||
public class SummaryTimeline : BottomBarContainer
|
||||
{
|
||||
private readonly IAdjustableClock adjustableClock;
|
||||
|
||||
public SummaryTimeline(IAdjustableClock adjustableClock)
|
||||
{
|
||||
this.adjustableClock = adjustableClock;
|
||||
}
|
||||
|
||||
[BackgroundDependencyLoader]
|
||||
private void load(OsuColour colours)
|
||||
private void load(OsuColour colours, IAdjustableClock adjustableClock)
|
||||
{
|
||||
TimelinePart markerPart, controlPointPart, bookmarkPart, breakPart;
|
||||
|
||||
|
|
|
@ -129,7 +129,7 @@ private void load(OsuColour colours)
|
|||
Padding = new MarginPadding { Right = 10 },
|
||||
Child = timeInfo = new TimeInfoContainer { RelativeSizeAxes = Axes.Both },
|
||||
},
|
||||
timeline = new SummaryTimeline(clock)
|
||||
timeline = new SummaryTimeline
|
||||
{
|
||||
RelativeSizeAxes = Axes.Both,
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue