示例#1
0
 public Dialog_Trade(Pawn playerNegotiator, ITrader trader)
 {
     TradeSession.SetupWith(trader, playerNegotiator);
     this.SetupPlayerCaravanVariables();
     this.closeOnEscapeKey        = true;
     this.forcePause              = true;
     this.absorbInputAroundWindow = true;
     this.soundAppear             = SoundDefOf.CommsWindow_Open;
     this.soundClose              = SoundDefOf.CommsWindow_Close;
     if (trader is PassingShip)
     {
         this.soundAmbient = SoundDefOf.RadioComms_Ambience;
     }
     this.sorter1 = TransferableSorterDefOf.Category;
     this.sorter2 = TransferableSorterDefOf.MarketValue;
 }
 public Dialog_Trade(Pawn playerNegotiator, ITrader trader, bool giftsOnly = false)
 {
     this.giftsOnly = giftsOnly;
     TradeSession.SetupWith(trader, playerNegotiator, giftsOnly);
     SetupPlayerCaravanVariables();
     forcePause = true;
     absorbInputAroundWindow = true;
     soundAppear             = SoundDefOf.CommsWindow_Open;
     soundClose = SoundDefOf.CommsWindow_Close;
     if (trader is PassingShip)
     {
         soundAmbient = SoundDefOf.RadioComms_Ambience;
     }
     sorter1 = TransferableSorterDefOf.Category;
     sorter2 = TransferableSorterDefOf.MarketValue;
 }