public void EndGroup(BaseMightyMember mightyMember, bool canDraw) { if (!canDraw) { return; } EndGroupImpl(IndentLevelForMember(mightyMember)); MightyColorUtilities.EndBackgroundColor(); MightyColorUtilities.EndContentColor(); }
public bool CanDraw(BaseMightyMember mightyMember, BaseFoldGroupAttribute attribute) { if (!m_colorsCache.Contains(mightyMember)) { EnableDrawer(mightyMember, attribute); } var(background, content) = m_colorsCache[mightyMember]; MightyColorUtilities.BeginBackgroundColor(background.Value); MightyColorUtilities.BeginContentColor(content.Value); return(m_foldoutStateCache[mightyMember, mightyMember.GroupID] = BeginFoldout(GetFoldoutStateByProperty(mightyMember), attribute.DrawName ? mightyMember.GroupName : "", IndentLevelForMember(mightyMember), (T)attribute)); }