mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 16:29:58 +09:00
Use new UpdateComboColour method to simplify colouring
This commit is contained in:
@ -1,6 +1,7 @@
|
||||
// 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 System.Collections.Generic;
|
||||
using osu.Framework.Allocation;
|
||||
using osu.Framework.Graphics;
|
||||
using osu.Framework.Graphics.Containers;
|
||||
@ -15,13 +16,13 @@ namespace osu.Game.Rulesets.Catch.Objects.Drawable
|
||||
{
|
||||
public override bool StaysOnPlate => false;
|
||||
|
||||
protected Container ScaleContainer;
|
||||
|
||||
public DrawableDroplet(Droplet h)
|
||||
: base(h)
|
||||
{
|
||||
}
|
||||
|
||||
protected Container ScaleContainer;
|
||||
|
||||
[BackgroundDependencyLoader]
|
||||
private void load()
|
||||
{
|
||||
@ -46,5 +47,11 @@ namespace osu.Game.Rulesets.Catch.Objects.Drawable
|
||||
|
||||
ScaleContainer.Scale = new Vector2(HitObject.Scale);
|
||||
}
|
||||
|
||||
protected override void UpdateComboColour(Color4 proposedColour, IReadOnlyList<Color4> comboColours)
|
||||
{
|
||||
// ignore the incoming combo colour as we use a custom lookup
|
||||
AccentColour.Value = comboColours[HitObject.IndexInBeatmap % comboColours.Count];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user