From 80ca68d8c87afc1cdcc731676d2f4f1c0f62a424 Mon Sep 17 00:00:00 2001 From: andy840119 Date: Sun, 2 Aug 2020 12:20:42 +0900 Subject: [PATCH] Fix test case and change text. --- .../Skinning/KaraokeSkinnableColumnTestScene.cs | 5 ++++- .../Skinning/TestSceneNotePlayfield.cs | 3 --- osu.Game.Rulesets.Karaoke/UI/Components/SaitenStatus.cs | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/osu.Game.Rulesets.Karaoke.Tests/Skinning/KaraokeSkinnableColumnTestScene.cs b/osu.Game.Rulesets.Karaoke.Tests/Skinning/KaraokeSkinnableColumnTestScene.cs index 65962d892..dbed4779c 100644 --- a/osu.Game.Rulesets.Karaoke.Tests/Skinning/KaraokeSkinnableColumnTestScene.cs +++ b/osu.Game.Rulesets.Karaoke.Tests/Skinning/KaraokeSkinnableColumnTestScene.cs @@ -48,9 +48,12 @@ protected KaraokeSkinnableColumnTestScene() [BackgroundDependencyLoader] private void load(RulesetConfigCache configCache) { - // Cache ruleset config manager because karaoke input manager need it. + // Cache ruleset config manager and session because karaoke input manager need it. var config = (KaraokeRulesetConfigManager)configCache.GetConfigFor(Ruleset.Value.CreateInstance()); + var session = new KaraokeSessionStatics(config, null); + Dependencies.Cache(config); + Dependencies.Cache(session); } [Test] diff --git a/osu.Game.Rulesets.Karaoke.Tests/Skinning/TestSceneNotePlayfield.cs b/osu.Game.Rulesets.Karaoke.Tests/Skinning/TestSceneNotePlayfield.cs index 4c9fd16cc..dda8221ab 100644 --- a/osu.Game.Rulesets.Karaoke.Tests/Skinning/TestSceneNotePlayfield.cs +++ b/osu.Game.Rulesets.Karaoke.Tests/Skinning/TestSceneNotePlayfield.cs @@ -12,9 +12,6 @@ public class TestSceneNotePlayfield : KaraokeSkinnableColumnTestScene [BackgroundDependencyLoader] private void load(RulesetConfigCache configCache) { - var config = (KaraokeRulesetConfigManager)configCache.GetConfigFor(Ruleset.Value.CreateInstance()); - Dependencies.Cache(new KaraokeSessionStatics(config, null)); - SetContents(() => new KaraokeInputManager(new KaraokeRuleset().RulesetInfo) { Child = new NotePlayfield(COLUMN_NUMBER) diff --git a/osu.Game.Rulesets.Karaoke/UI/Components/SaitenStatus.cs b/osu.Game.Rulesets.Karaoke/UI/Components/SaitenStatus.cs index dca433c2e..fa97897fc 100644 --- a/osu.Game.Rulesets.Karaoke/UI/Components/SaitenStatus.cs +++ b/osu.Game.Rulesets.Karaoke/UI/Components/SaitenStatus.cs @@ -85,7 +85,7 @@ protected virtual string GetSaitenStatusText(SaitenStatusMode statusMode) case SaitenStatusMode.Saitening: return "Saiteining..."; case SaitenStatusMode.NotInitialized: - return "Weird... Should not goes to here :thinking:"; + return "Seems microphone device is not ready."; default: return "Weird... Should not goes to here either :oops:"; }