mirror of
https://github.com/ppy/osu.git
synced 2025-01-12 22:33:05 +08:00
Switch ModMuted
to add its metronome to components rather than overlays
This commit is contained in:
parent
1acc536248
commit
9384687d6d
@ -67,7 +67,8 @@ namespace osu.Game.Rulesets.Mods
|
|||||||
{
|
{
|
||||||
MetronomeBeat metronomeBeat;
|
MetronomeBeat metronomeBeat;
|
||||||
|
|
||||||
drawableRuleset.Overlays.Add(metronomeBeat = new MetronomeBeat(drawableRuleset.Beatmap.HitObjects.First().StartTime));
|
// Importantly, this is added to FrameStableComponents and not Overlays as the latter would cause it to be self-muted by the mod's volume adjustment.
|
||||||
|
drawableRuleset.FrameStableComponents.Add(metronomeBeat = new MetronomeBeat(drawableRuleset.Beatmap.HitObjects.First().StartTime));
|
||||||
|
|
||||||
metronomeBeat.AddAdjustment(AdjustableProperty.Volume, metronomeVolumeAdjust);
|
metronomeBeat.AddAdjustment(AdjustableProperty.Volume, metronomeVolumeAdjust);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user