protected override void DrawIconAndLabel(Rect rect, TreeViewItem item, string label, bool selected, bool focused, bool useBoldFont, bool isPinging)
{
if (!isPinging)
{
float contentIndent = this.GetContentIndent(item);
rect.x += contentIndent;
rect.width -= contentIndent;
}
GameObjectTreeViewItem item2 = item as GameObjectTreeViewItem;
int colorCode = item2.colorCode;
if (string.IsNullOrEmpty(item.displayName))
{
if (item2.objectPPTR != null)
{
item2.displayName = item2.objectPPTR.name;
}
else
{
item2.displayName = "deleted gameobject";
}
label = item2.displayName;
}
GUIStyle lineStyle = TreeViewGUI.s_Styles.lineStyle;
if (!item2.shouldDisplay)
{
lineStyle = s_GOStyles.disabledLabel;
}
else if ((colorCode & 3) == 0)
{
lineStyle = (colorCode >= 4) ? s_GOStyles.disabledLabel : TreeViewGUI.s_Styles.lineStyle;
}
else if ((colorCode & 3) == 1)
{
lineStyle = (colorCode >= 4) ? s_GOStyles.disabledPrefabLabel : s_GOStyles.prefabLabel;
}
else if ((colorCode & 3) == 2)
{
lineStyle = (colorCode >= 4) ? s_GOStyles.disabledBrokenPrefabLabel : s_GOStyles.brokenPrefabLabel;
}
lineStyle.padding.left = (int) base.k_SpaceBetweenIconAndText;
lineStyle.Draw(rect, label, false, false, selected, focused);
}