コード例 #1
0
        public static void CreateCaravanTransferableWidgets(List <TransferableOneWay> transferables, out TransferableOneWayWidget pawnsTransfer, out TransferableOneWayWidget itemsTransfer, string thingCountTip, IgnorePawnsInventoryMode ignorePawnInventoryMass, Func <float> availableMassGetter, bool ignoreSpawnedCorpsesGearAndInventoryMass, int tile, bool playerPawnsReadOnly = false)
        {
            IEnumerable <TransferableOneWay> transferables2 = null;
            string sourceLabel                 = null;
            string destinationLabel            = null;
            bool   drawMass                    = true;
            bool   includePawnsMassInMassUsage = false;

            pawnsTransfer = new TransferableOneWayWidget(transferables2, sourceLabel, destinationLabel, thingCountTip, drawMass, ignorePawnInventoryMass, includePawnsMassInMassUsage, availableMassGetter, 0f, ignoreSpawnedCorpsesGearAndInventoryMass, tile, true, true, true, false, true, false, playerPawnsReadOnly);
            CaravanUIUtility.AddPawnsSections(pawnsTransfer, transferables);
            transferables2 = from x in transferables
                             where x.ThingDef.category != ThingCategory.Pawn
                             select x;
            string sourceLabel2 = null;

            destinationLabel = null;
            bool drawMass2 = true;
            bool includePawnsMassInMassUsage2 = false;

            itemsTransfer = new TransferableOneWayWidget(transferables2, sourceLabel2, destinationLabel, thingCountTip, drawMass2, ignorePawnInventoryMass, includePawnsMassInMassUsage2, availableMassGetter, 0f, ignoreSpawnedCorpsesGearAndInventoryMass, tile, true, false, false, true, false, true, false);
        }