mirror of
https://github.com/ppy/osu.git
synced 2025-03-21 18:47:20 +08:00
Change bonus volume logic to work
This commit is contained in:
parent
35d53139e7
commit
f48984920d
@ -1,8 +1,6 @@
|
||||
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
||||
// See the LICENCE file in the repository root for full licence text.
|
||||
|
||||
using osu.Framework.Audio;
|
||||
using osu.Framework.Bindables;
|
||||
using osu.Game.Rulesets.Osu.Judgements;
|
||||
using osu.Game.Rulesets.Scoring;
|
||||
|
||||
@ -10,8 +8,6 @@ namespace osu.Game.Rulesets.Osu.Objects.Drawables
|
||||
{
|
||||
public class DrawableSpinnerTick : DrawableOsuHitObject
|
||||
{
|
||||
private readonly BindableDouble bonusSampleVolume = new BindableDouble();
|
||||
|
||||
private bool hasBonusPoints;
|
||||
|
||||
/// <summary>
|
||||
@ -25,8 +21,7 @@ namespace osu.Game.Rulesets.Osu.Objects.Drawables
|
||||
{
|
||||
hasBonusPoints = value;
|
||||
|
||||
bonusSampleVolume.Value = value ? 1 : 0;
|
||||
((OsuSpinnerTickJudgement)Result.Judgement).HasBonusPoints = value;
|
||||
Samples.Volume.Value = ((OsuSpinnerTickJudgement)Result.Judgement).HasBonusPoints ? 1 : 0;
|
||||
}
|
||||
}
|
||||
|
||||
@ -37,13 +32,6 @@ namespace osu.Game.Rulesets.Osu.Objects.Drawables
|
||||
{
|
||||
}
|
||||
|
||||
protected override void LoadComplete()
|
||||
{
|
||||
base.LoadComplete();
|
||||
|
||||
Samples.AddAdjustment(AdjustableProperty.Volume, bonusSampleVolume);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Apply a judgement result.
|
||||
/// </summary>
|
||||
|
Loading…
x
Reference in New Issue
Block a user