Add basic setup for taiko argon skinning

This commit is contained in:
Dean Herbert 2022-11-02 15:45:32 +09:00
parent ddc2ed1542
commit baf8db8de4
2 changed files with 38 additions and 0 deletions

View File

@ -0,0 +1,34 @@
// 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.Graphics;
using osu.Game.Skinning;
namespace osu.Game.Rulesets.Taiko.Skinning.Argon
{
public class TaikoArgonSkinTransformer : SkinTransformer
{
public TaikoArgonSkinTransformer(ISkin skin)
: base(skin)
{
}
public override Drawable? GetDrawableComponent(ISkinComponent component)
{
switch (component)
{
case TaikoSkinComponent catchComponent:
// TODO: Once everything is finalised, consider throwing UnsupportedSkinComponentException on missing entries.
switch (catchComponent.Component)
{
case TaikoSkinComponents.CentreHit:
return Drawable.Empty();
}
break;
}
return base.GetDrawableComponent(component);
}
}
}

View File

@ -24,6 +24,7 @@ using osu.Game.Rulesets.Taiko.Mods;
using osu.Game.Rulesets.Taiko.Objects; using osu.Game.Rulesets.Taiko.Objects;
using osu.Game.Rulesets.Taiko.Replays; using osu.Game.Rulesets.Taiko.Replays;
using osu.Game.Rulesets.Taiko.Scoring; using osu.Game.Rulesets.Taiko.Scoring;
using osu.Game.Rulesets.Taiko.Skinning.Argon;
using osu.Game.Rulesets.Taiko.Skinning.Legacy; using osu.Game.Rulesets.Taiko.Skinning.Legacy;
using osu.Game.Rulesets.Taiko.UI; using osu.Game.Rulesets.Taiko.UI;
using osu.Game.Rulesets.UI; using osu.Game.Rulesets.UI;
@ -47,6 +48,9 @@ namespace osu.Game.Rulesets.Taiko
{ {
switch (skin) switch (skin)
{ {
case ArgonSkin:
return new TaikoArgonSkinTransformer(skin);
case LegacySkin: case LegacySkin:
return new TaikoLegacySkinTransformer(skin); return new TaikoLegacySkinTransformer(skin);
} }