Beispiel #1
0
        // 创建一个卡牌组中的卡牌
        public void createCardSetCard(uint cardID)
        {
            if (!m_id2CardComDic.ContainsKey(cardID))
            {
                TableCardItemBody cardItem;
                TableItemBase     tableItem;
                tableItem = Ctx.m_instance.m_tableSys.getItem(TableID.TABLE_CARD, cardID);
                cardItem  = tableItem.m_itemBody as TableCardItemBody;

                TuJianCardSetCardItemCom cardCom = new TuJianCardSetCardItemCom();
                m_cardList.Add(cardCom);
                m_id2CardComDic[cardID] = cardCom;
                cardCom.cardItem        = cardItem;
                cardCom.add2Layout(m_cardSetCardLayoutV);
            }
            else
            {
                m_id2CardComDic[cardID].numImage.show();
            }
        }
        // 创建一个卡牌组中的卡牌
        public void createCardSetCard(uint cardID)
        {
            if (!m_id2CardComDic.ContainsKey(cardID))
            {
                TableCardItemBody cardItem;
                TableItemBase tableItem;
                tableItem = Ctx.m_instance.m_tableSys.getItem(TableID.TABLE_CARD, cardID);
                cardItem = tableItem.m_itemBody as TableCardItemBody;

                TuJianCardSetCardItemCom cardCom = new TuJianCardSetCardItemCom();
                m_cardList.Add(cardCom);
                m_id2CardComDic[cardID] = cardCom;
                cardCom.cardItem = cardItem;
                cardCom.add2Layout(m_cardSetCardLayoutV);
            }
            else
            {
                m_id2CardComDic[cardID].numImage.show();
            }
        }