public string GetGroupName(BaseGroupAttribute baseAttribute) { var name = baseAttribute.GroupName; if (baseAttribute.NameAsCallback) { this.GetValueFromMember(baseAttribute.Target, name, out name); } return(name ?? ""); }
public void BeginGroup(BaseMightyMember mightyMember, BaseGroupAttribute baseAttribute) { _previousBackgroundColor = GUI.backgroundColor; _previousContentColor = GUI.contentColor; if (!m_colorsCache.Contains(mightyMember)) { InitDrawer(mightyMember, baseAttribute); } var(background, content) = m_colorsCache[mightyMember]; GUI.backgroundColor = background.Value ?? _previousBackgroundColor; GUI.contentColor = content.Value ?? _previousContentColor; BeginDrawGroup(mightyMember.GroupName, baseAttribute.DrawName, IndentLevelForMember(mightyMember)); if (baseAttribute.DrawLine) { DrawLine(baseAttribute.LineColor); } }