mirror of
https://github.com/osukey/osukey.git
synced 2025-05-15 18:47:33 +09:00
Fix colours with 0 alpha being invisible in legacy skins
This commit is contained in:
parent
f381cf3ae8
commit
ac5cd8f25a
@ -271,7 +271,15 @@ namespace osu.Game.Skinning
|
|||||||
}
|
}
|
||||||
|
|
||||||
private IBindable<Color4> getCustomColour(IHasCustomColours source, string lookup)
|
private IBindable<Color4> getCustomColour(IHasCustomColours source, string lookup)
|
||||||
=> source.CustomColours.TryGetValue(lookup, out var col) ? new Bindable<Color4>(col) : null;
|
{
|
||||||
|
if (!source.CustomColours.TryGetValue(lookup, out var col))
|
||||||
|
return null;
|
||||||
|
|
||||||
|
if (col.A == 0)
|
||||||
|
col.A = 1;
|
||||||
|
|
||||||
|
return new Bindable<Color4>(col);
|
||||||
|
}
|
||||||
|
|
||||||
private IBindable<string> getManiaImage(LegacyManiaSkinConfiguration source, string lookup)
|
private IBindable<string> getManiaImage(LegacyManiaSkinConfiguration source, string lookup)
|
||||||
=> source.ImageLookups.TryGetValue(lookup, out var image) ? new Bindable<string>(image) : null;
|
=> source.ImageLookups.TryGetValue(lookup, out var image) ? new Bindable<string>(image) : null;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user