mirror of
https://github.com/ppy/osu.git
synced 2025-01-27 14:52:55 +08:00
Fix regressed metronome handling
This commit is contained in:
parent
d5e68f53b5
commit
cd516c4ac7
@ -74,14 +74,15 @@ namespace osu.Game.Rulesets.Mods
|
|||||||
|
|
||||||
public void ApplyToDrawableRuleset(DrawableRuleset<TObject> drawableRuleset)
|
public void ApplyToDrawableRuleset(DrawableRuleset<TObject> drawableRuleset)
|
||||||
{
|
{
|
||||||
if (!EnableMetronome.Value) return;
|
if (EnableMetronome.Value)
|
||||||
|
{
|
||||||
drawableRuleset.Overlays.Add(metronomeContainer = new AudioContainer
|
drawableRuleset.Overlays.Add(metronomeContainer = new AudioContainer
|
||||||
{
|
{
|
||||||
Child = new Metronome(drawableRuleset.Beatmap.HitObjects.First().StartTime)
|
Child = new Metronome(drawableRuleset.Beatmap.HitObjects.First().StartTime)
|
||||||
});
|
});
|
||||||
|
|
||||||
metronomeContainer.AddAdjustment(AdjustableProperty.Volume, metronomeVolumeAdjust);
|
metronomeContainer.AddAdjustment(AdjustableProperty.Volume, metronomeVolumeAdjust);
|
||||||
|
}
|
||||||
|
|
||||||
if (AffectsHitSounds.Value)
|
if (AffectsHitSounds.Value)
|
||||||
drawableRuleset.AudioContainer.AddAdjustment(AdjustableProperty.Volume, mainVolumeAdjust);
|
drawableRuleset.AudioContainer.AddAdjustment(AdjustableProperty.Volume, mainVolumeAdjust);
|
||||||
|
Loading…
Reference in New Issue
Block a user