mirror of
https://github.com/ppy/osu.git
synced 2025-01-13 16:32:54 +08:00
Merge pull request #16443 from nekodex/fail-volume-dip
Add volume dip to track during fail sequence
This commit is contained in:
commit
9936cdbd65
@ -51,7 +51,7 @@
|
|||||||
<Reference Include="Java.Interop" />
|
<Reference Include="Java.Interop" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="ppy.osu.Game.Resources" Version="2022.109.0" />
|
<PackageReference Include="ppy.osu.Game.Resources" Version="2022.114.0" />
|
||||||
<PackageReference Include="ppy.osu.Framework.Android" Version="2022.111.0" />
|
<PackageReference Include="ppy.osu.Framework.Android" Version="2022.111.0" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup Label="Transitive Dependencies">
|
<ItemGroup Label="Transitive Dependencies">
|
||||||
|
@ -36,6 +36,7 @@ namespace osu.Game.Screens.Play
|
|||||||
|
|
||||||
private readonly DrawableRuleset drawableRuleset;
|
private readonly DrawableRuleset drawableRuleset;
|
||||||
private readonly BindableDouble trackFreq = new BindableDouble(1);
|
private readonly BindableDouble trackFreq = new BindableDouble(1);
|
||||||
|
private readonly BindableDouble volumeAdjustment = new BindableDouble(0.5);
|
||||||
|
|
||||||
private Container filters;
|
private Container filters;
|
||||||
|
|
||||||
@ -125,6 +126,7 @@ namespace osu.Game.Screens.Play
|
|||||||
failSample.Play();
|
failSample.Play();
|
||||||
|
|
||||||
track.AddAdjustment(AdjustableProperty.Frequency, trackFreq);
|
track.AddAdjustment(AdjustableProperty.Frequency, trackFreq);
|
||||||
|
track.AddAdjustment(AdjustableProperty.Volume, volumeAdjustment);
|
||||||
|
|
||||||
applyToPlayfield(drawableRuleset.Playfield);
|
applyToPlayfield(drawableRuleset.Playfield);
|
||||||
drawableRuleset.Playfield.HitObjectContainer.FadeOut(duration / 2);
|
drawableRuleset.Playfield.HitObjectContainer.FadeOut(duration / 2);
|
||||||
@ -154,6 +156,8 @@ namespace osu.Game.Screens.Play
|
|||||||
if (resetTrackFrequency)
|
if (resetTrackFrequency)
|
||||||
track?.RemoveAdjustment(AdjustableProperty.Frequency, trackFreq);
|
track?.RemoveAdjustment(AdjustableProperty.Frequency, trackFreq);
|
||||||
|
|
||||||
|
track?.RemoveAdjustment(AdjustableProperty.Volume, volumeAdjustment);
|
||||||
|
|
||||||
if (filters.Parent == null)
|
if (filters.Parent == null)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
@ -37,7 +37,7 @@
|
|||||||
</PackageReference>
|
</PackageReference>
|
||||||
<PackageReference Include="Realm" Version="10.7.1" />
|
<PackageReference Include="Realm" Version="10.7.1" />
|
||||||
<PackageReference Include="ppy.osu.Framework" Version="2022.111.0" />
|
<PackageReference Include="ppy.osu.Framework" Version="2022.111.0" />
|
||||||
<PackageReference Include="ppy.osu.Game.Resources" Version="2022.109.0" />
|
<PackageReference Include="ppy.osu.Game.Resources" Version="2022.114.0" />
|
||||||
<PackageReference Include="Sentry" Version="3.12.1" />
|
<PackageReference Include="Sentry" Version="3.12.1" />
|
||||||
<PackageReference Include="SharpCompress" Version="0.30.1" />
|
<PackageReference Include="SharpCompress" Version="0.30.1" />
|
||||||
<PackageReference Include="NUnit" Version="3.13.2" />
|
<PackageReference Include="NUnit" Version="3.13.2" />
|
||||||
|
@ -61,7 +61,7 @@
|
|||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup Label="Package References">
|
<ItemGroup Label="Package References">
|
||||||
<PackageReference Include="ppy.osu.Framework.iOS" Version="2022.111.0" />
|
<PackageReference Include="ppy.osu.Framework.iOS" Version="2022.111.0" />
|
||||||
<PackageReference Include="ppy.osu.Game.Resources" Version="2022.109.0" />
|
<PackageReference Include="ppy.osu.Game.Resources" Version="2022.114.0" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<!-- See https://github.com/dotnet/runtime/issues/35988 (can be removed after Xamarin uses net5.0 / net6.0) -->
|
<!-- See https://github.com/dotnet/runtime/issues/35988 (can be removed after Xamarin uses net5.0 / net6.0) -->
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
|
Loading…
Reference in New Issue
Block a user