mirror of
https://github.com/osukey/osukey.git
synced 2025-05-02 20:27:27 +09:00
Change some defaults and always tween
This commit is contained in:
parent
bdc5eb6d3d
commit
d5e68f53b5
@ -37,7 +37,7 @@ namespace osu.Game.Rulesets.Mods
|
|||||||
|
|
||||||
private AudioContainer metronomeContainer;
|
private AudioContainer metronomeContainer;
|
||||||
|
|
||||||
[SettingSource("Enable metronome", "Add a metronome 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
|
||||||
{
|
{
|
||||||
Default = true,
|
Default = true,
|
||||||
@ -63,8 +63,8 @@ namespace osu.Game.Rulesets.Mods
|
|||||||
[SettingSource("Mute hit sounds", "Hit sounds are also muted alongside the track.")]
|
[SettingSource("Mute hit sounds", "Hit sounds are also muted alongside the track.")]
|
||||||
public BindableBool AffectsHitSounds { get; } = new BindableBool
|
public BindableBool AffectsHitSounds { get; } = new BindableBool
|
||||||
{
|
{
|
||||||
Default = false,
|
Default = true,
|
||||||
Value = false
|
Value = true
|
||||||
};
|
};
|
||||||
|
|
||||||
public void ApplyToTrack(ITrack track)
|
public void ApplyToTrack(ITrack track)
|
||||||
@ -97,16 +97,8 @@ namespace osu.Game.Rulesets.Mods
|
|||||||
if (InverseMuting.Value)
|
if (InverseMuting.Value)
|
||||||
dimFactor = 1 - dimFactor;
|
dimFactor = 1 - dimFactor;
|
||||||
|
|
||||||
if (combo.NewValue < combo.OldValue)
|
scoreProcessor.TransformBindableTo(metronomeVolumeAdjust, dimFactor, 500, Easing.OutQuint);
|
||||||
{
|
scoreProcessor.TransformBindableTo(mainVolumeAdjust, 1 - dimFactor, 500, Easing.OutQuint);
|
||||||
scoreProcessor.TransformBindableTo(metronomeVolumeAdjust, dimFactor, 200, Easing.OutQuint);
|
|
||||||
scoreProcessor.TransformBindableTo(mainVolumeAdjust, 1 - dimFactor, 200, Easing.OutQuint);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
metronomeVolumeAdjust.Value = dimFactor;
|
|
||||||
mainVolumeAdjust.Value = 1 - dimFactor;
|
|
||||||
}
|
|
||||||
}, true);
|
}, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user