From f2e8776529176f7ec1ab03d12ea4eee6a5a44f18 Mon Sep 17 00:00:00 2001
From: ansel <79257300125@ya.ru>
Date: Thu, 22 Dec 2022 15:35:53 +0300
Subject: [PATCH] Bind to clock instead of music controller
---
.../Compose/Components/Timeline/Timeline.cs | 25 +++++++------------
.../Screens/Edit/Timing/TapTimingControl.cs | 21 ++++------------
2 files changed, 14 insertions(+), 32 deletions(-)
diff --git a/osu.Game/Screens/Edit/Compose/Components/Timeline/Timeline.cs b/osu.Game/Screens/Edit/Compose/Components/Timeline/Timeline.cs
index d135d108de..918b5f8109 100644
--- a/osu.Game/Screens/Edit/Compose/Components/Timeline/Timeline.cs
+++ b/osu.Game/Screens/Edit/Compose/Components/Timeline/Timeline.cs
@@ -5,6 +5,7 @@
using System;
using osu.Framework.Allocation;
+using osu.Framework.Audio.Track;
using osu.Framework.Bindables;
using osu.Framework.Extensions.Color4Extensions;
using osu.Framework.Graphics;
@@ -15,7 +16,6 @@ using osu.Framework.Input.Events;
using osu.Game.Beatmaps;
using osu.Game.Configuration;
using osu.Game.Graphics;
-using osu.Game.Overlays;
using osu.Game.Rulesets.Edit;
using osuTK;
using osuTK.Input;
@@ -42,9 +42,6 @@ namespace osu.Game.Screens.Edit.Compose.Components.Timeline
[Resolved]
private EditorBeatmap editorBeatmap { get; set; }
- [Resolved]
- private MusicController musicController { get; set; }
-
///
/// The timeline's scroll position in the last frame.
///
@@ -94,6 +91,8 @@ namespace osu.Game.Screens.Edit.Compose.Components.Timeline
private double trackLengthForZoom;
+ private readonly IBindable