Beispiel #1
0
 public void startEdit(CardSetCom cardSet)
 {
     // 卡牌组处理
     copyData(cardSet);
     enterEditorMode();
     // 当前编辑的卡牌列表处理
     m_tuJianData.m_wdscCardSetPnl.m_cardSetCardLayoutV.showLayout();
     m_tuJianData.m_wdscCardSetPnl.updateLeftCardList();
 }
Beispiel #2
0
 public void startEdit(CardSetCom cardSet)
 {
     // 卡牌组处理
     copyData(cardSet);
     enterEditorMode();
     // 当前编辑的卡牌列表处理
     m_tuJianData.m_wdscCardSetPnl.m_cardSetCardLayoutV.showLayout();
     m_tuJianData.m_wdscCardSetPnl.updateLeftCardList();
 }
Beispiel #3
0
 public void copyFrom(CardSetCom cards)
 {
     if (m_cardGroupItem == null)
     {
         m_cardGroupItem = new CardGroupItem();
     }
     this.m_cardGroupItem.copyFrom(cards.m_cardGroupItem);
     createSceneGo();
     updateInfo();
 }
Beispiel #4
0
        // 新建卡牌组, bEnterEdit 是否立即进入编辑模式
        public void newCardSet(CardGroupItem cardSet, bool bEnterEdit = true)
        {
            CardSetCom taopai = new CardSetCom(m_tuJianData);

            m_cardSetEntityList.Add(taopai);
            taopai.initByData(cardSet);
            taopai.add2Layout(m_cardSetLayoutV);
            m_curCardSet = taopai;
            if (bEnterEdit)
            {
                m_curEditCardSet.startEdit(taopai);
            }
        }
        public new void init()
        {
            // 创建编辑卡牌
            m_curEditCardSet = new CardSetCom(m_tuJianData);

            // 加入已经有的卡牌
            foreach (CardGroupItem groupItem in Ctx.m_instance.m_dataPlayer.m_dataCard.m_cardGroupListArr)
            {
                newCardSet(groupItem, false);
            }

            Ctx.m_instance.m_dataPlayer.m_dataCard.m_cardSetChangedDisp.addEventHandle(updateCardSetCardCntText);
            updateCardSetCardCntText();
        }
Beispiel #6
0
        public new void init()
        {
            // 创建编辑卡牌
            m_curEditCardSet = new CardSetCom(m_tuJianData);

            // 加入已经有的卡牌
            foreach (CardGroupItem groupItem in Ctx.m_instance.m_dataPlayer.m_dataCard.m_cardGroupListArr)
            {
                newCardSet(groupItem, false);
            }

            Ctx.m_instance.m_dataPlayer.m_dataCard.m_cardSetChangedDisp.addEventHandle(updateCardSetCardCntText);
            updateCardSetCardCntText();
        }
Beispiel #7
0
 // 一个套牌的卡牌列表,index 指明是哪个套牌的
 public void psstRetOneCardGroupInfoUserCmd(uint index, List <uint> list)
 {
     if (m_curTaoPaiMod == WdscmTaoPaiMod.eTaoPaiMod_Editset)             // 如果在编辑模式
     {
         if (m_curEditCardSet.m_cardGroupItem.m_cardGroup.index == index) // 如果当前正在编辑这个套牌
         {
             CardSetCom findSet = null;
             foreach (CardSetCom cardSet in m_cardSetEntityList)
             {
                 if (cardSet.m_cardGroupItem.m_cardGroup.index == index)
                 {
                     findSet = cardSet;
                     break;
                 }
             }
             if (findSet != null)
             {
                 m_curEditCardSet.startEdit(findSet);
             }
         }
     }
 }
 // 新建卡牌组, bEnterEdit 是否立即进入编辑模式
 public void newCardSet(CardGroupItem cardSet, bool bEnterEdit = true)
 {
     CardSetCom taopai = new CardSetCom(m_tuJianData);
     m_cardSetEntityList.Add(taopai);
     taopai.initByData(cardSet);
     taopai.add2Layout(m_cardSetLayoutV);
     m_curCardSet = taopai;
     if (bEnterEdit)
     {
         m_curEditCardSet.startEdit(taopai);
     }
 }
 public bool bCurEditCardSet(CardSetCom cardSet)
 {
     return m_curEditCardSet.Equals(cardSet);
 }
Beispiel #10
0
 public bool bCurEditCardSet(CardSetCom cardSet)
 {
     return(m_curEditCardSet.Equals(cardSet));
 }
Beispiel #11
0
 public void copyData(CardSetCom cardSet)
 {
     m_tuJianData.m_wdscCardSetPnl.m_curEditCardSet.copyFrom(cardSet);
     m_tuJianData.m_wdscCardSetPnl.m_curEditCardSet.add2Node(m_tuJianData.m_wdscCardSetPnl.m_topEditCardPosGo);
 }
Beispiel #12
0
 public bool bDiffForm(CardSetCom rhv)
 {
     return(m_cardGroupItem.bDiffForm(rhv.m_cardGroupItem));
 }
Beispiel #13
0
 public void copyFrom(CardSetCom cards)
 {
     if (m_cardGroupItem == null)
     {
         m_cardGroupItem = new CardGroupItem();
     }
     this.m_cardGroupItem.copyFrom(cards.m_cardGroupItem);
     createSceneGo();
     updateInfo();
 }
Beispiel #14
0
 public void copyData(CardSetCom cardSet)
 {
     m_tuJianData.m_wdscCardSetPnl.m_curEditCardSet.copyFrom(cardSet);
     m_tuJianData.m_wdscCardSetPnl.m_curEditCardSet.add2Node(m_tuJianData.m_wdscCardSetPnl.m_topEditCardPosGo);
 }
Beispiel #15
0
 public bool bDiffForm(CardSetCom rhv)
 {
     return m_cardGroupItem.bDiffForm(rhv.m_cardGroupItem);
 }