Skip to content

Commit

Permalink
Merge pull request ppy#30423 from nekodex/ruleset-selection-duck-tweak
Browse files Browse the repository at this point in the history
Increase ducking duration when selecting Mania ruleset
  • Loading branch information
peppy authored Nov 6, 2024
2 parents 2699ebb + da95a1a commit 35397d9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion osu.Game/Overlays/Toolbar/ToolbarRulesetSelector.cs
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,10 @@ private void playRulesetSelectionSample(ValueChangedEvent<RulesetInfo> r)

rulesetSelectionChannel[r.NewValue] = channel;
channel.Play();
musicController?.DuckMomentarily(500, new DuckParameters { DuckDuration = 0 });

// Longer unduck delay for Mania sample
int unduckDelay = r.NewValue.OnlineID == 3 ? 750 : 500;
musicController?.DuckMomentarily(unduckDelay, new DuckParameters { DuckDuration = 0 });
}

public override bool HandleNonPositionalInput => !Current.Disabled && base.HandleNonPositionalInput;
Expand Down
2 changes: 1 addition & 1 deletion osu.Game/osu.Game.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
</PackageReference>
<PackageReference Include="Realm" Version="11.5.0" />
<PackageReference Include="ppy.osu.Framework" Version="2024.1025.0" />
<PackageReference Include="ppy.osu.Game.Resources" Version="2024.1003.0" />
<PackageReference Include="ppy.osu.Game.Resources" Version="2024.1106.0" />
<PackageReference Include="Sentry" Version="4.12.1" />
<!-- Held back due to 0.34.0 failing AOT compilation on ZstdSharp.dll dependency. -->
<PackageReference Include="SharpCompress" Version="0.38.0" />
Expand Down

0 comments on commit 35397d9

Please sign in to comment.