public static void Show(SerializedProperty bodyMask, int count)
{
if (BodyMaskEditor.styles.UnityDude.image)
{
Rect rect = GUILayoutUtility.GetRect(BodyMaskEditor.styles.UnityDude, GUIStyle.none, new GUILayoutOption[]
{
GUILayout.MaxWidth((float)BodyMaskEditor.styles.UnityDude.image.width)
});
rect.x += (GUIView.current.position.width - rect.width) / 2f;
Color color = GUI.color;
GUI.color = ((bodyMask.GetArrayElementAtIndex(0).intValue != 1) ? Color.red : Color.green);
if (BodyMaskEditor.styles.BodyPart[0].image)
{
GUI.DrawTexture(rect, BodyMaskEditor.styles.BodyPart[0].image);
}
GUI.color = new Color(0.2f, 0.2f, 0.2f, 1f);
GUI.DrawTexture(rect, BodyMaskEditor.styles.UnityDude.image);
for (int i = 1; i < count; i++)
{
GUI.color = ((bodyMask.GetArrayElementAtIndex(i).intValue != 1) ? Color.red : Color.green);
if (BodyMaskEditor.styles.BodyPart[i].image)
{
GUI.DrawTexture(rect, BodyMaskEditor.styles.BodyPart[i].image);
}
}
GUI.color = color;
BodyMaskEditor.DoPicking(rect, bodyMask, count);
}
}