Exemplo n.º 1
0
    /// <summary>
    /// 可合成装备列表.
    /// </summary>
    private void AddCouldEquip()
    {
        List <s_itemtypeInfo> ListInfo = new List <s_itemtypeInfo> ();
        List <KeyValueName>   lList    = new List <KeyValueName>();

        ///获得用途列表

        ListInfo = ItemM.GetEquipMaterialUse(m_ItemInfo.itemType);
        if (ListInfo == null || ListInfo.Count < 1)
        {
            return;
        }
        AddBanner(1);
        PdbbbItem  pbbItem = null;
        GameObject go      = NDLoad.LoadWndItem("PdbbbItem", MyHead.Table.transform);

        pbbItem = go.GetComponent <PdbbbItem>();


        if (pbbItem != null && pbbItem.MyHead.Table != null)
        {
            pbbItem.MyHead.Table.columns   = 2;
            pbbItem.MyHead.Table.padding.y = 10f;

            foreach (s_itemtypeInfo info in ListInfo)
            {
                GameObject go2 = NDLoad.LoadWndItem("EquipInfoInnerItem", pbbItem.MyHead.Table.transform);
                if (go2 != null)
                {
                    EquipInfoInnerItem item = go2.GetComponent <EquipInfoInnerItem>();
                    item.SetData(info.icon, info.quality, info.name, "Textures/item/");
                }
            }
            pbbItem.MyHead.Table.Reposition();
            pbbItem.MyHead.Table.repositionNow = true;
        }
    }