mirror of
https://github.com/ppy/osu.git
synced 2024-11-13 16:13:34 +08:00
Clamp only on horizontal sides
This commit is contained in:
parent
f1b66da469
commit
672f645cba
@ -47,19 +47,18 @@ namespace osu.Game.Rulesets.Mania.Skinning.Legacy
|
|||||||
AutoSizeAxes = Axes.Y,
|
AutoSizeAxes = Axes.Y,
|
||||||
Children = new Drawable[]
|
Children = new Drawable[]
|
||||||
{
|
{
|
||||||
|
// Key images are placed side-to-side on the playfield, therefore ClampToEdge must be used to prevent any gaps between each key.
|
||||||
upSprite = new Sprite
|
upSprite = new Sprite
|
||||||
{
|
{
|
||||||
Origin = Anchor.BottomCentre,
|
Origin = Anchor.BottomCentre,
|
||||||
// ClampToEdge is used to avoid gaps between keys, see: https://github.com/ppy/osu/issues/27431
|
Texture = skin.GetTexture(upImage, WrapMode.ClampToEdge, default),
|
||||||
Texture = skin.GetTexture(upImage, WrapMode.ClampToEdge, WrapMode.ClampToEdge),
|
|
||||||
RelativeSizeAxes = Axes.X,
|
RelativeSizeAxes = Axes.X,
|
||||||
Width = 1
|
Width = 1
|
||||||
},
|
},
|
||||||
downSprite = new Sprite
|
downSprite = new Sprite
|
||||||
{
|
{
|
||||||
Origin = Anchor.BottomCentre,
|
Origin = Anchor.BottomCentre,
|
||||||
// ClampToEdge is used to avoid gaps between keys, see: https://github.com/ppy/osu/issues/27431
|
Texture = skin.GetTexture(downImage, WrapMode.ClampToEdge, default),
|
||||||
Texture = skin.GetTexture(downImage, WrapMode.ClampToEdge, WrapMode.ClampToEdge),
|
|
||||||
RelativeSizeAxes = Axes.X,
|
RelativeSizeAxes = Axes.X,
|
||||||
Width = 1,
|
Width = 1,
|
||||||
Alpha = 0
|
Alpha = 0
|
||||||
|
Loading…
Reference in New Issue
Block a user