Exemplo n.º 1
0
        public void AddCollection(Collection col, RackOutfitGender gender, RackType type)
        {
            foreach (var item in col)
            {
                var purchasable = Content.AvatarPurchasables.Get(item.PurchasableOutfitId);
                if (purchasable == null)
                {
                    continue;
                }
                var outfit = new RackOutfit()
                {
                    AssetID  = purchasable.OutfitID,
                    Gender   = gender,
                    RackType = type,
                    Price    = 1000
                };

                if (!Racks.ContainsKey(outfit.RackType))
                {
                    Racks.Add(outfit.RackType, new RackOutfits()
                    {
                        Outfits  = new List <RackOutfit>(),
                        RackType = outfit.RackType
                    });
                }

                Racks[outfit.RackType].Outfits.Add(outfit);
            }
        }
Exemplo n.º 2
0
 private void ToggleGender(Framework.UIElement button)
 {
     if (button == btnMale)
     {
         SelectedGender = RackOutfitGender.Male;
     }
     else if (button == btnFemale)
     {
         SelectedGender = RackOutfitGender.Female;
     }
     UpdateUIState();
     SetOwnerOutfits();
 }
Exemplo n.º 3
0
        /**
         * Owner outfit grid
         */
        protected override void SetRackType(RackType type)
        {
            base.SetRackType(type);
            switch (RackType)
            {
            case RackType.Decor_Back:
            case RackType.Decor_Head:
            case RackType.Decor_Shoe:
            case RackType.Decor_Tail:
                SelectedGender = RackOutfitGender.Neutral;
                break;

            default:
                SelectedGender = RackOutfitGender.Male;
                break;
            }
            SetOwnerOutfits();
        }