|
|
|
|
|
|
var anchors = nodeData.elements.OfType<AnchorDrawData>().ToList(); |
|
|
|
|
|
|
|
if (anchors.Count == 0) |
|
|
|
{ |
|
|
|
m_RightContainer.AddToClassList("empty"); |
|
|
|
} |
|
|
|
{ |
|
|
|
} |
|
|
|
|
|
|
|
int outputCount = 0; |
|
|
|
{ |
|
|
|
} |
|
|
|
{ |
|
|
|
outputCount++; |
|
|
|
} |
|
|
|
|
|
|
|
if (outputCount == 0) |
|
|
|
m_RightContainer.AddToClassList("empty"); |
|
|
|
else |
|
|
|
m_RightContainer.RemoveFromClassList("empty"); |
|
|
|
|
|
|
|
if (controlDrawData.Count == 0) |
|
|
|
{ |
|
|
|
if (!m_RightContainer.classList.Contains("empty")) |
|
|
|
m_RightContainer.AddToClassList("empty"); |
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
|
m_RightContainer.RemoveFromClassList("empty"); |
|
|
|
|
|
|
|
if (!nodeData.expanded) |
|
|
|
{ |
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if (!nodeData.expanded) |
|
|
|
{ |
|
|
|
if (!classList.Contains("collapsed")) |
|
|
|
AddToClassList("collapsed"); |
|
|
|
} |
|
|
|
AddToClassList("collapsed"); |
|
|
|
{ |
|
|
|
if (classList.Contains("collapsed")) |
|
|
|
RemoveFromClassList("collapsed"); |
|
|
|
} |
|
|
|
RemoveFromClassList("collapsed"); |
|
|
|
|
|
|
|
AddHeader(nodeData); |
|
|
|
AddSlots(nodeData); |
|
|
|