1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-13 07:43:00 +08:00

Fix skin mapping not working for menu fountains

This commit is contained in:
Dean Herbert 2023-07-25 17:46:05 +09:00
parent 2cb1a6fdaa
commit 43107f8cf0
2 changed files with 7 additions and 13 deletions

View File

@ -468,6 +468,13 @@ namespace osu.Game.Skinning
public override Texture? GetTexture(string componentName, WrapMode wrapModeS, WrapMode wrapModeT)
{
switch (componentName)
{
case "Menu/fountain-star":
componentName = "star2";
break;
}
foreach (string name in getFallbackNames(componentName))
{
// some component names (especially user-controlled ones, like `HitX` in mania)

View File

@ -2,7 +2,6 @@
// 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;
@ -24,18 +23,6 @@ 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))