mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 19:22:54 +08:00
Merge pull request #200 from Tom94/fix-triangles
Fix incorrect BeatmapPanel border caused by triangles.
This commit is contained in:
commit
4ef0b8ca47
@ -57,6 +57,10 @@ namespace osu.Game.Beatmaps.Drawables
|
||||
},
|
||||
new Triangles
|
||||
{
|
||||
// The border is drawn in the shader of the children. Being additive, triangles would over-emphasize
|
||||
// the border wherever they cross it, and thus they get their own masking container without a border.
|
||||
Masking = true,
|
||||
CornerRadius = Content.CornerRadius,
|
||||
RelativeSizeAxes = Axes.Both,
|
||||
BlendingMode = BlendingMode.Additive,
|
||||
Colour = deselectedColour,
|
||||
|
@ -22,23 +22,23 @@ namespace osu.Game.Graphics.Cursor
|
||||
public override bool Contains(Vector2 screenSpacePos) => true;
|
||||
public override bool HandleInput => true;
|
||||
|
||||
int currentIndex;
|
||||
private int currentIndex;
|
||||
|
||||
Shader shader;
|
||||
Texture texture;
|
||||
private Shader shader;
|
||||
private Texture texture;
|
||||
|
||||
Vector2 size => texture.Size * Scale;
|
||||
private Vector2 size => texture.Size * Scale;
|
||||
|
||||
private double timeOffset;
|
||||
|
||||
private float time;
|
||||
|
||||
TrailDrawNodeSharedData trailDrawNodeSharedData = new TrailDrawNodeSharedData();
|
||||
const int MAX_SPRITES = 2048;
|
||||
private TrailDrawNodeSharedData trailDrawNodeSharedData = new TrailDrawNodeSharedData();
|
||||
private const int MAX_SPRITES = 2048;
|
||||
|
||||
private TrailPart[] parts = new TrailPart[MAX_SPRITES];
|
||||
|
||||
Vector2? lastPosition;
|
||||
private Vector2? lastPosition;
|
||||
|
||||
protected override DrawNode CreateDrawNode() => new TrailDrawNode();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user