mirror of
https://github.com/ppy/osu.git
synced 2025-03-23 02:57:25 +08:00
Move back to DI-ing adjustable clock into SummaryTimeline
This commit is contained in:
parent
fbc50d6030
commit
a2484fbf56
@ -24,7 +24,7 @@ namespace osu.Game.Tests.Visual
|
||||
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 @@ namespace osu.Game.Screens.Edit
|
||||
Padding = new MarginPadding { Right = 10 },
|
||||
Child = timeInfo = new TimeInfoContainer { RelativeSizeAxes = Axes.Both },
|
||||
},
|
||||
timeline = new SummaryTimeline(clock)
|
||||
timeline = new SummaryTimeline
|
||||
{
|
||||
RelativeSizeAxes = Axes.Both,
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user