private void TopArea()
{
Rect rect2;
if ((s_PackageIcon == null) && !string.IsNullOrEmpty(this.m_PackageIconPath))
{
LoadTexture(this.m_PackageIconPath, ref s_PackageIcon);
}
bool flag = s_PackageIcon != null;
float height = !flag ? 52f : 84f;
Rect position = GUILayoutUtility.GetRect(base.position.width, height);
GUI.Label(position, GUIContent.none, ms_Constants.topBarBg);
if (flag)
{
Rect r = new Rect(position.x + 10f, position.y + 10f, 64f, 64f);
DrawTexture(r, s_PackageIcon, true);
rect2 = new Rect(r.xMax + 10f, r.yMin, position.width, r.height);
}
else
{
rect2 = new Rect(position.x + 5f, position.yMin, position.width, position.height);
}
GUI.Label(rect2, this.m_PackageName, ms_Constants.title);
}