mirror of https://github.com/ppy/osu
inline stage light lookup and clarify behavior
This commit is contained in:
parent
9a0a1ba0df
commit
8298a2c8a9
|
@ -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)
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue