mirror of
https://github.com/osukey/osukey.git
synced 2025-07-03 01:09:57 +09:00
Switch ModMuted
to add its metronome to components rather than overlays
This commit is contained in:
@ -67,7 +67,8 @@ namespace osu.Game.Rulesets.Mods
|
||||
{
|
||||
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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user