mirror of
https://github.com/ppy/osu.git
synced 2025-02-14 22:43:05 +08:00
Use metronome's audio adjustments directly
This commit is contained in:
parent
b01b0d711f
commit
29328bdf7f
@ -35,8 +35,6 @@ namespace osu.Game.Rulesets.Mods
|
|||||||
|
|
||||||
private BindableNumber<int> currentCombo;
|
private BindableNumber<int> currentCombo;
|
||||||
|
|
||||||
private AudioContainer metronomeContainer;
|
|
||||||
|
|
||||||
[SettingSource("Enable metronome", "Add a metronome beat to help you keep track of the rhythm.")]
|
[SettingSource("Enable metronome", "Add a metronome beat to help you keep track of the rhythm.")]
|
||||||
public BindableBool EnableMetronome { get; } = new BindableBool
|
public BindableBool EnableMetronome { get; } = new BindableBool
|
||||||
{
|
{
|
||||||
@ -76,12 +74,11 @@ namespace osu.Game.Rulesets.Mods
|
|||||||
{
|
{
|
||||||
if (EnableMetronome.Value)
|
if (EnableMetronome.Value)
|
||||||
{
|
{
|
||||||
drawableRuleset.Overlays.Add(metronomeContainer = new AudioContainer
|
Metronome metronome;
|
||||||
{
|
|
||||||
Child = new Metronome(drawableRuleset.Beatmap.HitObjects.First().StartTime)
|
|
||||||
});
|
|
||||||
|
|
||||||
metronomeContainer.AddAdjustment(AdjustableProperty.Volume, metronomeVolumeAdjust);
|
drawableRuleset.Overlays.Add(metronome = new Metronome(drawableRuleset.Beatmap.HitObjects.First().StartTime));
|
||||||
|
|
||||||
|
metronome.AddAdjustment(AdjustableProperty.Volume, metronomeVolumeAdjust);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (AffectsHitSounds.Value)
|
if (AffectsHitSounds.Value)
|
||||||
|
Loading…
Reference in New Issue
Block a user