Ejemplo n.º 1
0
            public override ObjectPicker.ColumnInfo GetValue(SimDescription item)
            {
                int price = PetSale.GetPrice(item);

                if (price > mMaxPrice)
                {
                    price = mMaxPrice;
                }

                return(new ObjectPicker.TextColumn(EAText.GetMoneyString(price)));
            }
Ejemplo n.º 2
0
 public static void OnAccepted(Sim actor, Sim target, string interaction, ActiveTopic topic, InteractionInstance i)
 {
     try
     {
         PetSale.DisplayDialog(actor.SimDescription, target.Household, true);
     }
     catch (ResetException)
     {
         throw;
     }
     catch (Exception e)
     {
         Common.Exception(actor, target, e);
     }
 }
Ejemplo n.º 3
0
 public override void PostAnimation()
 {
     try
     {
         PetSale.DisplayDialog(Actor.SimDescription, null, false);
     }
     catch (ResetException)
     {
         throw;
     }
     catch (Exception e)
     {
         Common.Exception(Actor, Target, e);
     }
 }