Skip to content

Commit

Permalink
fix compile error.
Browse files Browse the repository at this point in the history
  • Loading branch information
andy840119 committed Feb 16, 2022
1 parent 29ea8f6 commit 9e52ef8
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 6 deletions.
13 changes: 11 additions & 2 deletions osu.Game.Rulesets.Karaoke/Mods/KaraokeModPractice.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -68,7 +74,10 @@ public PracticeOverlay(IBeatmap beatmap)
{
Add(new PracticeSettings(beatmap)
{
Expanded = true,
Expanded =
{
Value = true
},
Width = 400
});
}
Expand Down
32 changes: 28 additions & 4 deletions osu.Game.Rulesets.Karaoke/UI/HUD/GeneralSettingOverlay.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,37 @@ public class GeneralSettingOverlay : SettingOverlay, IKeyBindingHandler<KaraokeA
public GeneralSettingOverlay(IBeatmap beatmap)
{
// Add common group
Add(new VisualSettings { Expanded = false });
Add(new PitchSettings { Expanded = false });
Add(new RubyRomajiSettings { Expanded = false });
Add(new VisualSettings
{
Expanded =
{
Value = false
}
});
Add(new PitchSettings
{
Expanded =
{
Value = false
}
});
Add(new RubyRomajiSettings
{
Expanded =
{
Value = false
}
});

// Add translate group if this beatmap has translate
if (beatmap.AnyTranslate())
Add(new TranslateSettings(beatmap.AvailableTranslates()) { Expanded = false });
Add(new TranslateSettings(beatmap.AvailableTranslates())
{
Expanded =
{
Value = false
}
});
}

public override SettingButton CreateToggleButton() => new()
Expand Down

0 comments on commit 9e52ef8

Please sign in to comment.