From 9e52ef86413ebc8868f7016a243311b40d176755 Mon Sep 17 00:00:00 2001 From: andy840119 Date: Wed, 16 Feb 2022 22:36:55 +0800 Subject: [PATCH] fix compile error. --- .../Mods/KaraokeModPractice.cs | 13 ++++++-- .../UI/HUD/GeneralSettingOverlay.cs | 32 ++++++++++++++++--- 2 files changed, 39 insertions(+), 6 deletions(-) diff --git a/osu.Game.Rulesets.Karaoke/Mods/KaraokeModPractice.cs b/osu.Game.Rulesets.Karaoke/Mods/KaraokeModPractice.cs index 734b4d53e..8bf9896db 100644 --- a/osu.Game.Rulesets.Karaoke/Mods/KaraokeModPractice.cs +++ b/osu.Game.Rulesets.Karaoke/Mods/KaraokeModPractice.cs @@ -59,7 +59,13 @@ public void ApplyToOverlay(ISettingHUDOverlay overlay) overlay.AddExtraOverlay(new PracticeOverlay(beatmap)); // Add playback group into main overlay - overlay.AddSettingsGroup(new PlaybackSettings { Expanded = false }); + overlay.AddSettingsGroup(new PlaybackSettings + { + Expanded = + { + Value = false + } + }); } private class PracticeOverlay : SettingOverlay @@ -68,7 +74,10 @@ public PracticeOverlay(IBeatmap beatmap) { Add(new PracticeSettings(beatmap) { - Expanded = true, + Expanded = + { + Value = true + }, Width = 400 }); } diff --git a/osu.Game.Rulesets.Karaoke/UI/HUD/GeneralSettingOverlay.cs b/osu.Game.Rulesets.Karaoke/UI/HUD/GeneralSettingOverlay.cs index 920075248..e74351bdc 100644 --- a/osu.Game.Rulesets.Karaoke/UI/HUD/GeneralSettingOverlay.cs +++ b/osu.Game.Rulesets.Karaoke/UI/HUD/GeneralSettingOverlay.cs @@ -23,13 +23,37 @@ public class GeneralSettingOverlay : SettingOverlay, IKeyBindingHandler new()