From cf6170ec61e49523744f8ede20cf34d93cd41d1a Mon Sep 17 00:00:00 2001 From: andy840119 Date: Sun, 16 Oct 2022 16:10:21 +0800 Subject: [PATCH] Adjust some code. --- .../Editor/Lyrics/Edit/SingleLyricEditorTest.cs | 2 +- .../Editor/TestSceneLayoutToolTip.cs | 2 +- osu.Game.Rulesets.Karaoke/Edit/Lyrics/Compose/LyricComposer.cs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/osu.Game.Rulesets.Karaoke.Tests/Editor/Lyrics/Edit/SingleLyricEditorTest.cs b/osu.Game.Rulesets.Karaoke.Tests/Editor/Lyrics/Edit/SingleLyricEditorTest.cs index f8b90264a..bd957613e 100644 --- a/osu.Game.Rulesets.Karaoke.Tests/Editor/Lyrics/Edit/SingleLyricEditorTest.cs +++ b/osu.Game.Rulesets.Karaoke.Tests/Editor/Lyrics/Edit/SingleLyricEditorTest.cs @@ -14,7 +14,7 @@ public class SingleLyricEditorTest public void TestLockMessage() { var lyric = new Lyric(); - Assert.IsNull(EditableLyric.GetLyricPropertyLockedReason(lyric, LyricEditorMode.View)); + Assert.IsNull(InteractableLyric.GetLyricPropertyLockedReason(lyric, LyricEditorMode.View)); } } } diff --git a/osu.Game.Rulesets.Karaoke.Tests/Editor/TestSceneLayoutToolTip.cs b/osu.Game.Rulesets.Karaoke.Tests/Editor/TestSceneLayoutToolTip.cs index 269c45339..7c98c1185 100644 --- a/osu.Game.Rulesets.Karaoke.Tests/Editor/TestSceneLayoutToolTip.cs +++ b/osu.Game.Rulesets.Karaoke.Tests/Editor/TestSceneLayoutToolTip.cs @@ -20,7 +20,7 @@ namespace osu.Game.Rulesets.Karaoke.Tests.Editor [TestFixture] public class TestSceneLayoutToolTip : OsuTestScene { - private ISkin skin = new TestingSkin(null); + private readonly ISkin skin = new TestingSkin(null); private LayoutToolTip toolTip = null!; [SetUp] diff --git a/osu.Game.Rulesets.Karaoke/Edit/Lyrics/Compose/LyricComposer.cs b/osu.Game.Rulesets.Karaoke/Edit/Lyrics/Compose/LyricComposer.cs index ad4225cd2..30315901a 100644 --- a/osu.Game.Rulesets.Karaoke/Edit/Lyrics/Compose/LyricComposer.cs +++ b/osu.Game.Rulesets.Karaoke/Edit/Lyrics/Compose/LyricComposer.cs @@ -336,7 +336,7 @@ private void assignBottomEditor(BottomEditorType? bottomEditorType) return; bottomEditorContainer.Add(newButtonEditor); - newButtonEditor.Delay(hasOldButtonEditor ? remove_old_editor_time : 0).FadeIn(0).MoveToY(0, new_animation_time); + newButtonEditor.Delay(hasOldButtonEditor ? remove_old_editor_time : 0).FadeIn().MoveToY(0, new_animation_time); static BaseBottomEditor? createBottomEditor(BottomEditorType? bottomEditorType) => bottomEditorType switch