protected override void RowGUI(RowGUIArgs args) { base.RowGUI(args); if (!componentGroupsById.ContainsKey(args.item.id) || Event.current.type != EventType.Repaint) { return; } var componentGroup = componentGroupsById[args.item.id]; var position = args.rowRect.position; position.x = GetContentIndent(args.item); position.y += 1; ComponentGroupGUI.DrawComponentList( new Rect(position.x, position.y, componentGroupHeightsById[args.item.id], width), componentGroupStylesById[args.item.id], componentGroupNamesById[args.item.id], componentGroupRectsById[args.item.id]); var countString = componentGroup.CalculateLength().ToString(); DefaultGUI.LabelRightAligned(args.rowRect, countString, args.selected, args.focused); }
protected override void RowGUI(RowGUIArgs args) { base.RowGUI(args); if (Event.current.type != EventType.Repaint || !heightsById.ContainsKey(args.item.id)) { return; } var position = args.rowRect.position; position.x = GetContentIndent(args.item); position.y += 1; ComponentGroupGUI.DrawComponentList( new Rect(position.x, position.y, heightsById[args.item.id], width), stylesById[args.item.id], namesById[args.item.id], rectsById[args.item.id]); DrawCount(args); }