Пример #1
0
    void UpdateShoppingListInfo_PresentWaitPay(ShoppingListRecord shoppinglistrecord)
    {
        ShoppingList shoppinglist = shoppinglistrecord.GetShoppingList(m_ChooseShoppingListGuid);

        if (shoppinglist != null)
        {
            for (int i = 0; i < shoppinglist.GoodsID.Length && i < shoppinglist.GoodsCount.Length; i++)
            {
                if (shoppinglist.GoodsID[i] == GlobeVar.INVALID_ID || shoppinglist.GoodsCount[i] == GlobeVar.INVALID_ID)
                {
                    break;
                }

                GameObject item = Utils.BindObjToParent(m_ShoppingListItem, m_ShoppingListGrid, i.ToString());
                if (item == null)
                {
                    continue;
                }

                if (item.GetComponent <ShoppingListItem>() != null)
                {
                    item.GetComponent <ShoppingListItem>().Init(shoppinglist.GoodsID[i], shoppinglist.GoodsCount[i], m_CurTab);
                }
            }
        }
    }
Пример #2
0
    void UpdateFriendInfo_PresentWaitPay(ShoppingListRecord shoppinglistrecord)
    {
        foreach (KeyValuePair <UInt64, ShoppingList> pair in shoppinglistrecord.Record)
        {
            if (false == pair.Value.IsValid())
            {
                continue;
            }

            GameObject item = Utils.BindObjToParent(m_PresentFriendItem, m_FriendInfoGrid, pair.Value.GetRemainTime().ToString());
            if (item == null)
            {
                continue;
            }

            if (item.GetComponent <PresentFriendItem>() != null)
            {
                item.GetComponent <PresentFriendItem>().InitOnPresentWaitPayTab(pair.Value, m_CurTab);
                if (m_ChooseShoppingListGuid == GlobeVar.INVALID_GUID)
                {
                    m_ChooseShoppingListGuid = pair.Key;
                }
            }
        }
    }
Пример #3
0
 void UpdateFriendRecordInfo(ShoppingListRecord shoppinglistrecord)
 {
     m_FriendRecordCountLabel.text = StrDictionary.GetClientDictionaryString("#{4796}", shoppinglistrecord.GetRecordCount(), shoppinglistrecord.MaxCount);
 }