Ejemplo n.º 1
0
        private void DoTextLabel(Rect rowRect, string thingDefName)
        {
            float  maxWidth  = rowRect.width - largestNumberWidth - listElementsMargin - BlueprintReportUtility.ellipsesSize;
            string labelText = (Text.CalcSize(thingDefName).x > maxWidth) ? BlueprintReportUtility.TrimTextToBeOfSize(thingDefName, maxWidth) + "..." : thingDefName;

            Widgets.Label(rowRect, labelText);
        }
 private void ResolveDesigsToDisplay()
 {
     resolvedDesignatorTypes.Clear();
     for (int i = 0; i < designatorTypesToDisplay.Count; i++)
     {
         Designator potentialDesig = BlueprintReportUtility.GetDesigInstanceOfType(designatorTypesToDisplay[i]);
         if (potentialDesig != null)
         {
             resolvedDesignatorTypes.Add(potentialDesig);
         }
     }
 }