mirror of
https://github.com/ppy/osu
synced 2025-01-04 13:22:08 +00:00
Reverted to applying the color change in OnUpdate, removed EnableComboColour flag from DrawableHitObject.cs
This commit is contained in:
parent
b7dc8d49ba
commit
ed850196d9
@ -31,13 +31,10 @@ namespace osu.Game.Rulesets.Osu.Mods
|
||||
{
|
||||
if (currentBeatmap.IsNull() || drawable.IsNull()) return;
|
||||
|
||||
drawable.ApplyCustomUpdateState += (drawableObject, state) =>
|
||||
{
|
||||
int snapDivisor = currentBeatmap.ControlPointInfo.GetClosestBeatDivisor(drawableObject.HitObject.StartTime);
|
||||
|
||||
drawableObject.EnableComboColour = false;
|
||||
drawableObject.AccentColour.Value = BindableBeatDivisor.GetColourFor(snapDivisor, colours);
|
||||
};
|
||||
drawable.OnUpdate += _ =>
|
||||
drawable.AccentColour.Value = BindableBeatDivisor.GetColourFor(
|
||||
currentBeatmap.ControlPointInfo.GetClosestBeatDivisor(drawable.HitObject.StartTime),
|
||||
colours);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -74,11 +74,6 @@ namespace osu.Game.Rulesets.Objects.Drawables
|
||||
|
||||
public override bool PropagateNonPositionalInputSubTree => HandleUserInput;
|
||||
|
||||
/// <summary>
|
||||
/// Whether this object should be coloured using its combo position
|
||||
/// </summary>
|
||||
public bool EnableComboColour { get; set; } = true;
|
||||
|
||||
/// <summary>
|
||||
/// Invoked by this or a nested <see cref="DrawableHitObject"/> after a <see cref="JudgementResult"/> has been applied.
|
||||
/// </summary>
|
||||
@ -533,7 +528,6 @@ namespace osu.Game.Rulesets.Objects.Drawables
|
||||
protected void UpdateComboColour()
|
||||
{
|
||||
if (!(HitObject is IHasComboInformation combo)) return;
|
||||
if (!EnableComboColour) return;
|
||||
|
||||
Color4 colour = combo.GetComboColour(CurrentSkin);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user