private void DoLayerEntry(Rect rect, string layerName, bool even, bool showVisible, bool showLock, bool visible, bool locked, out bool visibleChanged, out bool lockedChanged)
{
this.DrawListBackground(rect, even);
EditorGUI.BeginChangeCheck();
Rect position = rect;
position.width -= 34f;
visible = GUI.Toggle(position, visible, EditorGUIUtility.TempContent(layerName), s_Styles.listTextStyle);
Rect rect3 = new Rect(rect.width - 34f, rect.y + ((rect.height - 17f) * 0.5f), 17f, 17f);
visibleChanged = false;
if (showVisible)
{
Color color = GUI.color;
Color color2 = color;
color2.a = !visible ? 0.4f : 0.6f;
GUI.color = color2;
Rect rect4 = rect3;
rect4.y += 3f;
GUIContent content = new GUIContent(string.Empty, !visible ? s_Styles.visibleOff : s_Styles.visibleOn, "Show/Hide Layer");
GUI.Toggle(rect4, visible, content, GUIStyle.none);
GUI.color = color;
visibleChanged = EditorGUI.EndChangeCheck();
}
lockedChanged = false;
if (showLock)
{
rect3.x += 17f;
EditorGUI.BeginChangeCheck();
Color backgroundColor = GUI.backgroundColor;
Color color4 = backgroundColor;
if (!locked)
{
color4.a *= 0.4f;
}
GUI.backgroundColor = color4;
GUI.Toggle(rect3, locked, new GUIContent(string.Empty, "Lock Layer for Picking"), s_Styles.lockButton);
GUI.backgroundColor = backgroundColor;
lockedChanged = EditorGUI.EndChangeCheck();
}
}