inline stage light lookup and clarify behavior

This commit is contained in:
mcendu 2020-06-20 14:53:25 +08:00
parent 9a0a1ba0df
commit 8298a2c8a9
2 changed files with 2 additions and 2 deletions

View File

@ -32,7 +32,7 @@ public LegacyColumnBackground(bool isLastColumn)
[BackgroundDependencyLoader]
private void load(ISkinSource skin, IScrollingInfo scrollingInfo)
{
string lightImage = GetManiaSkinConfig<string>(skin, LegacyManiaSkinConfigurationLookups.LightImage, 0)?.Value
string lightImage = skin.GetManiaSkinConfig<string>(LegacyManiaSkinConfigurationLookups.LightImage)?.Value
?? "mania-stage-light";
float leftLineWidth = GetManiaSkinConfig<float>(skin, LegacyManiaSkinConfigurationLookups.LeftLineWidth)

View File

@ -128,7 +128,7 @@ public Drawable GetDrawableComponent(ISkinComponent component)
private Drawable getResult(HitResult result)
{
string filename = this.GetManiaSkinConfig<string>(hitresult_mapping[result])?.Value
?? default_hitresult_skin_filenames[result];
?? default_hitresult_skin_filenames[result];
return this.GetAnimation(filename, true, true);
}