mirror of
https://github.com/ppy/osu.git
synced 2025-03-28 01:37:46 +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);
|
osuGame.Beatmap.Value = new TestWorkingBeatmap(new OsuRuleset().RulesetInfo);
|
||||||
|
|
||||||
SummaryTimeline summaryTimeline;
|
SummaryTimeline summaryTimeline;
|
||||||
Add(summaryTimeline = new SummaryTimeline(Clock)
|
Add(summaryTimeline = new SummaryTimeline
|
||||||
{
|
{
|
||||||
Anchor = Anchor.Centre,
|
Anchor = Anchor.Centre,
|
||||||
Origin = Anchor.Centre,
|
Origin = Anchor.Centre,
|
||||||
|
@ -17,15 +17,8 @@ namespace osu.Game.Screens.Edit.Components.Timelines.Summary
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public class SummaryTimeline : BottomBarContainer
|
public class SummaryTimeline : BottomBarContainer
|
||||||
{
|
{
|
||||||
private readonly IAdjustableClock adjustableClock;
|
|
||||||
|
|
||||||
public SummaryTimeline(IAdjustableClock adjustableClock)
|
|
||||||
{
|
|
||||||
this.adjustableClock = adjustableClock;
|
|
||||||
}
|
|
||||||
|
|
||||||
[BackgroundDependencyLoader]
|
[BackgroundDependencyLoader]
|
||||||
private void load(OsuColour colours)
|
private void load(OsuColour colours, IAdjustableClock adjustableClock)
|
||||||
{
|
{
|
||||||
TimelinePart markerPart, controlPointPart, bookmarkPart, breakPart;
|
TimelinePart markerPart, controlPointPart, bookmarkPart, breakPart;
|
||||||
|
|
||||||
|
@ -129,7 +129,7 @@ namespace osu.Game.Screens.Edit
|
|||||||
Padding = new MarginPadding { Right = 10 },
|
Padding = new MarginPadding { Right = 10 },
|
||||||
Child = timeInfo = new TimeInfoContainer { RelativeSizeAxes = Axes.Both },
|
Child = timeInfo = new TimeInfoContainer { RelativeSizeAxes = Axes.Both },
|
||||||
},
|
},
|
||||||
timeline = new SummaryTimeline(clock)
|
timeline = new SummaryTimeline
|
||||||
{
|
{
|
||||||
RelativeSizeAxes = Axes.Both,
|
RelativeSizeAxes = Axes.Both,
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user