Пример #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));
    }
Пример #2
0
    public void OpenBuyFashionUI(string theFashionDataID)
    {
        if (!DataReader <ShiZhuangXiTong> .Contains(theFashionDataID))
        {
            return;
        }
        WaitUI.OpenUI(10000u);
        ShiZhuangXiTong fashionData = DataReader <ShiZhuangXiTong> .Get(theFashionDataID);

        FashionDataSelete kind = (FashionDataSelete)fashionData.kind;
        XDict <FashionDataSelete, string> tempList = this.GetPreviewFashionDataID(kind, theFashionDataID);

        XMarketManager.Instance.CheckFashionServerData(delegate
        {
            WaitUI.CloseUI(0u);
            BuyFashionUI buyFashionUI = UIManagerControl.Instance.OpenUI("BuyFashionUI", UINodesManager.MiddleUIRoot, false, UIType.NonPush) as BuyFashionUI;
            buyFashionUI.SetData(tempList.Values, theFashionDataID, fashionData.mallID, !this.IsHasEternalFashion(theFashionDataID));
        });
    }