protected virtual void BeginGroup(BaseMightyMember mightyMember, T attribute) { if (!m_colorsCache.Contains(mightyMember)) { EnableDrawer(mightyMember, attribute); } var(background, content) = m_colorsCache[mightyMember]; MightyColorUtilities.BeginBackgroundColor(background.Value); MightyColorUtilities.BeginContentColor(content.Value); var indent = IndentLevelForMember(mightyMember); var groupID = mightyMember.GroupID; BeginDrawGroup(indent, groupID); if (attribute.DrawName) { DrawGroupLabel(mightyMember.GroupName); } if (attribute.DrawLine) { DrawLine(attribute.LineColor); } BeginDrawContent(indent, groupID); }
private static void BeginBox() { MightyColorUtilities.BeginBackgroundColor(ColorValue.SoftContrast.GetColor()); m_darkBox.BeginDrawGroup(indentInside: false); GUILayout.BeginHorizontal(); Space(); GUILayout.BeginVertical(); }
private static void BeginBox(string label) { MightyColorUtilities.BeginBackgroundColor(ColorValue.SoftContrast.GetColor()); m_darkBox.BeginDrawGroup(indentInside: false); GUILayout.BeginHorizontal(); Space(); GUILayout.BeginVertical(); m_darkBox.DrawGroupLabel(label, EditorStyles.boldLabel); m_darkBox.DrawLine(); }