From 16e02fdad60fabd604de57473e91ce47f36a1cb7 Mon Sep 17 00:00:00 2001 From: Harald Csaszar Date: Mon, 19 Oct 2020 14:34:16 +0200 Subject: [PATCH] [xna] Changed SkeletonDebugRenderer bone color attributes to public so that they can be modified by users. --- spine-xna/src/SkeletonDebugRenderer.cs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/spine-xna/src/SkeletonDebugRenderer.cs b/spine-xna/src/SkeletonDebugRenderer.cs index c664a458e..782b3ae98 100644 --- a/spine-xna/src/SkeletonDebugRenderer.cs +++ b/spine-xna/src/SkeletonDebugRenderer.cs @@ -38,14 +38,14 @@ namespace Spine { public class SkeletonDebugRenderer { ShapeRenderer renderer; - private static Color boneLineColor = new Color(1f, 0f, 0f, 1f); - private static Color boneOriginColor = new Color(0f, 1f, 0f, 1f); - private static Color attachmentLineColor = new Color(0f, 0f, 1f, 0.5f); - private static Color triangleLineColor = new Color(1f, 0.64f, 0f, 0.5f); - private static Color pathColor = new Color(1f, 0.5f, 0f, 1f); - private static Color clipColor = new Color(0.8f, 0f, 0f, 1f); - private static Color clipDecomposedColor = new Color(0.8f, 0.8f, 0f, 1f); - private static Color aabbColor = new Color(0f, 1f, 0f, 0.5f); + public static Color boneLineColor = new Color(1f, 0f, 0f, 1f); + public static Color boneOriginColor = new Color(0f, 1f, 0f, 1f); + public static Color attachmentLineColor = new Color(0f, 0f, 1f, 0.5f); + public static Color triangleLineColor = new Color(1f, 0.64f, 0f, 0.5f); + public static Color pathColor = new Color(1f, 0.5f, 0f, 1f); + public static Color clipColor = new Color(0.8f, 0f, 0f, 1f); + public static Color clipDecomposedColor = new Color(0.8f, 0.8f, 0f, 1f); + public static Color aabbColor = new Color(0f, 1f, 0f, 0.5f); public BasicEffect Effect { get { return renderer.Effect; } set { renderer.Effect = value; } } public bool DrawBones { get; set; }