mirror of
https://github.com/ppy/osu.git
synced 2024-12-16 10:23:04 +08:00
Remove unused blending mode
This commit is contained in:
parent
f7dc0b65da
commit
dce894108a
@ -34,8 +34,6 @@ namespace osu.Game.Skinning
|
||||
|
||||
private Container keyContainer = null!;
|
||||
|
||||
private SkinnableSprite overlayKey = null!;
|
||||
|
||||
private OsuSpriteText overlayKeyText = null!;
|
||||
|
||||
public LegacyKeyCounter(InputTrigger trigger)
|
||||
@ -50,9 +48,8 @@ namespace osu.Game.Skinning
|
||||
Anchor = Anchor.Centre,
|
||||
Children = new Drawable[]
|
||||
{
|
||||
overlayKey = new SkinnableSprite
|
||||
new SkinnableSprite
|
||||
{
|
||||
Blending = Multiplicative,
|
||||
Anchor = Anchor.Centre,
|
||||
Origin = Anchor.Centre,
|
||||
BypassAutoSizeAxes = Axes.Both,
|
||||
@ -89,20 +86,5 @@ namespace osu.Game.Skinning
|
||||
keyContainer.ScaleTo(1f, TransitionDuration);
|
||||
keyContainer.FadeColour(KeyUpBackgroundColour, TransitionDuration);
|
||||
}
|
||||
|
||||
public static BlendingParameters Multiplicative
|
||||
{
|
||||
get
|
||||
{
|
||||
BlendingParameters result = default(BlendingParameters);
|
||||
result.Source = BlendingType.SrcAlpha;
|
||||
result.Destination = BlendingType.OneMinusSrcAlpha;
|
||||
result.SourceAlpha = BlendingType.One;
|
||||
result.DestinationAlpha = BlendingType.One;
|
||||
result.RGBEquation = BlendingEquation.Add;
|
||||
result.AlphaEquation = BlendingEquation.Add;
|
||||
return result;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user