mirror of
https://github.com/ppy/osu
synced 2024-12-13 02:17:32 +00:00
Add skinning support for kiai fountain stars
This commit is contained in:
parent
53fccaa3bd
commit
8f826a3702
@ -70,7 +70,7 @@ namespace osu.Game.Screens.Menu
|
||||
|
||||
InternalChildren = new Drawable[]
|
||||
{
|
||||
new SkinnableSprite("star2")
|
||||
new SkinnableSprite("Menu/fountain-star")
|
||||
{
|
||||
Anchor = Anchor.Centre,
|
||||
Origin = Anchor.Centre,
|
||||
|
@ -2,6 +2,7 @@
|
||||
// See the LICENCE file in the repository root for full licence text.
|
||||
|
||||
using osu.Framework.Audio.Sample;
|
||||
using osu.Framework.Graphics.Textures;
|
||||
using osu.Game.Audio;
|
||||
using osu.Game.Rulesets.Objects.Legacy;
|
||||
using static osu.Game.Skinning.SkinConfiguration;
|
||||
@ -23,6 +24,18 @@ namespace osu.Game.Skinning
|
||||
{
|
||||
}
|
||||
|
||||
public override Texture? GetTexture(string componentName, WrapMode wrapModeS, WrapMode wrapModeT)
|
||||
{
|
||||
switch (componentName)
|
||||
{
|
||||
case "fountain-star":
|
||||
componentName = "star2";
|
||||
break;
|
||||
}
|
||||
|
||||
return base.GetTexture(componentName, wrapModeS, wrapModeT);
|
||||
}
|
||||
|
||||
public override ISample? GetSample(ISampleInfo sampleInfo)
|
||||
{
|
||||
if (!(sampleInfo is ConvertHitObjectParser.LegacyHitSampleInfo legacySample))
|
||||
|
Loading…
Reference in New Issue
Block a user