/// <summary>
        /// Draws the extra descriptors (attributes and details) for the selected object.
        /// </summary>
        /// <param name="drawer">The renderer for the details.</param>
        private void DetailDescriptors(DetailsPanelDrawer drawer)
        {
            var target      = lastSelection.target;
            var attributes  = target.GetAttributes();
            var descriptors = GameUtil.GetAllDescriptors(target);
            int n;

            if (attributes != null)
            {
                n = attributes.Count;
                for (int i = 0; i < n; i++)
                {
                    var instance = attributes.AttributeTable[i];
                    var attr     = instance.Attribute;
                    if (DlcManager.IsDlcListValidForCurrentContent(attr.DLCIds) && (attr.
                                                                                    ShowInUI == Attribute.Display.Details || attr.ShowInUI ==
                                                                                    Attribute.Display.Expectation))
                    {
                        drawer.NewLabel(instance.modifier.Name + ": " + instance.
                                        GetFormattedValue()).Tooltip(instance.GetAttributeValueTooltip());
                    }
                }
            }
            n = descriptors.Count;
            for (int i = 0; i < n; i++)
            {
                var descriptor = descriptors[i];
                if (descriptor.type == Descriptor.DescriptorType.Detail)
                {
                    drawer.NewLabel(descriptor.text).Tooltip(descriptor.tooltipText);
                }
            }
        }