From 49eaf213c8b72d9f345dad5fb5ac33228782be8b Mon Sep 17 00:00:00 2001 From: andy840119 Date: Fri, 22 Apr 2022 22:55:53 +0800 Subject: [PATCH] Update the package to fix the playback issue. Also, should initial the transform after drawable hit object loaded. --- .../Objects/Drawables/DrawableLyric.cs | 7 +++++++ osu.Game.Rulesets.Karaoke/osu.Game.Rulesets.Karaoke.csproj | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/osu.Game.Rulesets.Karaoke/Objects/Drawables/DrawableLyric.cs b/osu.Game.Rulesets.Karaoke/Objects/Drawables/DrawableLyric.cs index 5b98d7669..042575be6 100644 --- a/osu.Game.Rulesets.Karaoke/Objects/Drawables/DrawableLyric.cs +++ b/osu.Game.Rulesets.Karaoke/Objects/Drawables/DrawableLyric.cs @@ -221,6 +221,13 @@ protected override void CheckForResult(bool userTriggered, double timeOffset) } } + protected override void UpdateInitialTransforms() + { + base.UpdateInitialTransforms(); + + lyricPieces.ForEach(x => x.RefreshStateTransforms()); + } + protected override void UpdateHitStateTransforms(ArmedState state) { base.UpdateHitStateTransforms(state); diff --git a/osu.Game.Rulesets.Karaoke/osu.Game.Rulesets.Karaoke.csproj b/osu.Game.Rulesets.Karaoke/osu.Game.Rulesets.Karaoke.csproj index 32fb833de..fd11a5356 100644 --- a/osu.Game.Rulesets.Karaoke/osu.Game.Rulesets.Karaoke.csproj +++ b/osu.Game.Rulesets.Karaoke/osu.Game.Rulesets.Karaoke.csproj @@ -10,7 +10,7 @@ - +