mirror of https://github.com/ppy/osu
Add support for custom hyper-dash legacy fruit colouring
This commit is contained in:
parent
6f2cc5471a
commit
d995f3e1cc
|
@ -7,6 +7,7 @@
|
||||||
using osu.Framework.Graphics.Containers;
|
using osu.Framework.Graphics.Containers;
|
||||||
using osu.Framework.Graphics.Sprites;
|
using osu.Framework.Graphics.Sprites;
|
||||||
using osu.Game.Rulesets.Catch.Objects.Drawables;
|
using osu.Game.Rulesets.Catch.Objects.Drawables;
|
||||||
|
using osu.Game.Rulesets.Catch.UI;
|
||||||
using osu.Game.Rulesets.Objects.Drawables;
|
using osu.Game.Rulesets.Objects.Drawables;
|
||||||
using osu.Game.Skinning;
|
using osu.Game.Skinning;
|
||||||
using osuTK;
|
using osuTK;
|
||||||
|
@ -53,10 +54,15 @@ private void load(DrawableHitObject drawableObject, ISkinSource skin)
|
||||||
|
|
||||||
if (drawableCatchObject.HitObject.HyperDash)
|
if (drawableCatchObject.HitObject.HyperDash)
|
||||||
{
|
{
|
||||||
|
var hyperDashColour =
|
||||||
|
skin.GetConfig<CatchSkinConfiguration, Color4>(CatchSkinConfiguration.HyperDashFruit)?.Value ??
|
||||||
|
skin.GetConfig<CatchSkinConfiguration, Color4>(CatchSkinConfiguration.HyperDash)?.Value ??
|
||||||
|
Catcher.DefaultHyperDashColour;
|
||||||
|
|
||||||
var hyperDash = new Sprite
|
var hyperDash = new Sprite
|
||||||
{
|
{
|
||||||
Texture = skin.GetTexture(lookupName),
|
Texture = skin.GetTexture(lookupName),
|
||||||
Colour = Color4.Red,
|
Colour = hyperDashColour,
|
||||||
Anchor = Anchor.Centre,
|
Anchor = Anchor.Centre,
|
||||||
Origin = Anchor.Centre,
|
Origin = Anchor.Centre,
|
||||||
Blending = BlendingParameters.Additive,
|
Blending = BlendingParameters.Additive,
|
||||||
|
|
Loading…
Reference in New Issue