mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 09:27:29 +08:00
CatchSkinConfiguration -> CatchSkinColour
This commit is contained in:
parent
e51097da9e
commit
16a4525a9c
@ -158,15 +158,15 @@ namespace osu.Game.Rulesets.Catch.Tests
|
||||
|
||||
public IBindable<TValue> GetConfig<TLookup, TValue>(TLookup lookup)
|
||||
{
|
||||
if (lookup is CatchSkinConfiguration config)
|
||||
if (lookup is CatchSkinColour config)
|
||||
{
|
||||
if (config == CatchSkinConfiguration.HyperDash && customCatcherColour)
|
||||
if (config == CatchSkinColour.HyperDash && customCatcherColour)
|
||||
return SkinUtils.As<TValue>(new Bindable<Color4>(CustomHyperDashColour));
|
||||
|
||||
if (config == CatchSkinConfiguration.HyperDashFruit && customFruitColour)
|
||||
if (config == CatchSkinColour.HyperDashFruit && customFruitColour)
|
||||
return SkinUtils.As<TValue>(new Bindable<Color4>(CustomHyperDashFruitColour));
|
||||
|
||||
if (config == CatchSkinConfiguration.HyperDashAfterImage && customAfterColour)
|
||||
if (config == CatchSkinColour.HyperDashAfterImage && customAfterColour)
|
||||
return SkinUtils.As<TValue>(new Bindable<Color4>(CustomHyperDashAfterColour));
|
||||
}
|
||||
|
||||
|
@ -64,8 +64,8 @@ namespace osu.Game.Rulesets.Catch.Objects.Drawables
|
||||
});
|
||||
|
||||
var hyperDashColour =
|
||||
skin.GetConfig<CatchSkinConfiguration, Color4>(CatchSkinConfiguration.HyperDashFruit)?.Value ??
|
||||
skin.GetConfig<CatchSkinConfiguration, Color4>(CatchSkinConfiguration.HyperDash)?.Value ??
|
||||
skin.GetConfig<CatchSkinColour, Color4>(CatchSkinColour.HyperDashFruit)?.Value ??
|
||||
skin.GetConfig<CatchSkinColour, Color4>(CatchSkinColour.HyperDash)?.Value ??
|
||||
Catcher.DefaultHyperDashColour;
|
||||
|
||||
if (hitObject.HyperDash)
|
||||
|
@ -3,7 +3,7 @@
|
||||
|
||||
namespace osu.Game.Rulesets.Catch.Skinning
|
||||
{
|
||||
public enum CatchSkinConfiguration
|
||||
public enum CatchSkinColour
|
||||
{
|
||||
/// <summary>
|
||||
/// The colour to be used for the catcher while on hyper-dashing state.
|
@ -55,8 +55,8 @@ namespace osu.Game.Rulesets.Catch.Skinning
|
||||
if (drawableCatchObject.HitObject.HyperDash)
|
||||
{
|
||||
var hyperDashColour =
|
||||
skin.GetConfig<CatchSkinConfiguration, Color4>(CatchSkinConfiguration.HyperDashFruit)?.Value ??
|
||||
skin.GetConfig<CatchSkinConfiguration, Color4>(CatchSkinConfiguration.HyperDash)?.Value ??
|
||||
skin.GetConfig<CatchSkinColour, Color4>(CatchSkinColour.HyperDashFruit)?.Value ??
|
||||
skin.GetConfig<CatchSkinColour, Color4>(CatchSkinColour.HyperDash)?.Value ??
|
||||
Catcher.DefaultHyperDashColour;
|
||||
|
||||
var hyperDash = new Sprite
|
||||
|
Loading…
Reference in New Issue
Block a user