Esempio n. 1
0
    public void OpenBuyFashionUI(int theCommodityDataID)
    {
        string fashionIDByCommodityID = GameDataUtils.GetFashionIDByCommodityID(theCommodityDataID);

        if (!DataReader <ShiZhuangXiTong> .Contains(fashionIDByCommodityID))
        {
            return;
        }
        ShiZhuangXiTong shiZhuangXiTong = DataReader <ShiZhuangXiTong> .Get(fashionIDByCommodityID);

        FashionDataSelete kind = (FashionDataSelete)shiZhuangXiTong.kind;
        XDict <FashionDataSelete, string> previewFashionDataID = this.GetPreviewFashionDataID(kind, fashionIDByCommodityID);
        BuyFashionUI buyFashionUI = UIManagerControl.Instance.OpenUI("BuyFashionUI", UINodesManager.MiddleUIRoot, false, UIType.NonPush) as BuyFashionUI;

        buyFashionUI.SetData(previewFashionDataID.Values, fashionIDByCommodityID, theCommodityDataID, !this.IsHasEternalFashion(theCommodityDataID));
    }
Esempio n. 2
0
 public bool IsHasEternalFashion(int theCommodityID)
 {
     return(this.IsHasEternalFashion(GameDataUtils.GetFashionIDByCommodityID(theCommodityID)));
 }