Example #1
0
 /// <summary>
 /// Replace the current outfit with a folder and set appearance
 /// </summary>
 /// <param name="path">Path of folder containing the new outfit</param>
 /// <param name="bake">Whether to bake the avatar textures or not</param>
 public void WearOutfit(string[] path, bool bake)
 {
     WearParams wearOutfitParams = new WearParams(path, bake,true);
     Thread appearanceThread = new Thread(new ParameterizedThreadStart(StartWearOutfitFolder));
     appearanceThread.Start(wearOutfitParams);
 }
Example #2
0
 public void WearOutfit(InventoryFolder folder, bool bake)
 {
     WearParams wearOutfitParams = new WearParams(folder, bake,true);
     Thread appearanceThread = new Thread(new ParameterizedThreadStart(StartWearOutfitFolder));
     appearanceThread.Start(wearOutfitParams);
 }
Example #3
0
        /// <summary>
        /// Add to the current outfit with the list supplied
        /// </summary>
        /// <param name="ibs_new">List of wearables that will be added to the outfit</param>
        /// <param name="bake">Whether to bake textures for the avatar or not</param>
        public void AddToOutfit(List<InventoryBase> ibs_new, bool bake)
        {
            List<InventoryBase> ibs_total = new List<InventoryBase>();

            // Get what we are currently wearing
            lock(Wearables.Dictionary)
            {
                foreach (KeyValuePair<WearableType, OpenMetaverse.AppearanceManager.WearableData> kvp in Wearables.Dictionary)
                    ibs_total.Add((InventoryBase)kvp.Value.Item);
            
            }
            // Add the new items at the end, ReplaceOutfitWearables() will do the right thing as it places each warable into a slot in order
            // so the end of the list will overwrite earlier parts if they use the same slot.
            foreach (InventoryBase item in ibs_new)
            {
                if (item is InventoryWearable)
                    ibs_total.Add(item);
            }

            WearParams wearParams = new WearParams(ibs_total, bake, false);
            Thread appearanceThread = new Thread(new ParameterizedThreadStart(StartWearOutfit));
            appearanceThread.Start(wearParams);
        }
Example #4
0
 /// <summary>
 /// Replace the current outfit with a list of wearables and set appearance
 /// </summary>
 /// <param name="ibs">List of wearables that define the new outfit</param>
 /// <param name="bake">Whether to bake textures for the avatar or not</param>
 public void WearOutfit(List<InventoryBase> ibs, bool bake)
 {
     WearParams wearParams = new WearParams(ibs, bake,true);
     Thread appearanceThread = new Thread(new ParameterizedThreadStart(StartWearOutfit));
     appearanceThread.Start(wearParams);
 }
Example #5
0
 /// <summary>
 /// Replace the current outfit with a folder and set appearance
 /// </summary>
 /// <param name="path">Path of folder containing the new outfit</param>
 /// <param name="bake">Whether to bake the avatar textures or not</param>
 public void WearOutfit(string[] path, bool bake)
 {
     _wearOutfitParams = new WearParams(path, bake);
     Thread appearanceThread = new Thread(new ThreadStart(StartWearOutfitFolder));
     appearanceThread.Start();
 }
Example #6
0
 /// <summary>
 /// Replace the current outfit with a folder and set appearance
 /// </summary>
 /// <param name="folder">Folder containing the new outfit</param>
 /// <param name="bake">Whether to bake the avatar textures or not</param>
 public void WearOutfit(LLUUID folder, bool bake)
 {
     _wearOutfitParams = new WearParams(folder, bake);
     Thread appearanceThread = new Thread(new ThreadStart(StartWearOutfitFolder));
     appearanceThread.Start();
 }
Example #7
0
 /// <summary>
 /// Replace the current outfit with a list of wearables and set appearance
 /// </summary>
 /// <param name="ibs">List of wearables that define the new outfit</param>
 /// <param name="bake">Whether to bake textures for the avatar or not</param>
 public void WearOutfit(List<InventoryBase> ibs, bool bake)
 {
     _wearParams = new WearParams(ibs, bake);
     Thread appearanceThread = new Thread(new ThreadStart(StartWearOutfit));
     appearanceThread.Start();
 }