1
0
mirror of synced 2024-09-24 11:38:22 +02:00

Quick debug test for layouts

This commit is contained in:
KillzXGaming 2019-11-23 15:33:54 -05:00
parent 43766d479b
commit 32d8d393b1

View File

@ -1304,6 +1304,18 @@ namespace LayoutBXLYT
colors[i] = Color.FromArgb(Utils.FloatToIntClamp(outAlpha), colors[i]);
}
if (Runtime.DEVELOPER_DEBUG_MODE)
{
GL.Begin(PrimitiveType.LineLoop);
GL.Color4(selectionOutline ? Color.Red : colors[0]);
GL.Vertex2(rect.BottomLeftPoint);
GL.Vertex2(rect.BottomRightPoint);
GL.Vertex2(rect.TopRightPoint);
GL.Vertex2(rect.TopLeftPoint);
GL.End();
return;
}
if (LayoutEditor.UseLegacyGL)
{
if (useLines)