protected void updateCardList() { if (m_filterCardListArr[m_tuJianData.m_pClassFilterPnl.m_tabBtnIdx].Count > 0) { int idx = 0; CardItemBase cardItem; TuJianCardItemCom uicardItem; while (bInRangeByPageAndIdx(m_tuJianData.m_pClassFilterPnl.m_tabBtnIdx, idx)) { cardItem = m_filterCardListArr[m_tuJianData.m_pClassFilterPnl.m_tabBtnIdx][m_pageArr[m_tuJianData.m_pClassFilterPnl.m_tabBtnIdx].m_curPageIdx * (int)TuJianCardNumPerPage.eNum + idx]; uicardItem = new TuJianCardItemCom(null); uicardItem.createCard(cardItem, m_cardGrid.getGameObject()); m_SCUICardItemList.Add(uicardItem); m_SCUICardItemList[m_SCUICardItemList.Count - 1].m_clkCB = m_tuJianData.m_onClkCard; ++idx; } m_cardGrid.Reposition(); } }
// 点击收藏界面中卡牌面板中的一张卡牌 public void onClkCard(TuJianCardItemCom ioItem) { m_curClkTuJianCardItemCom = ioItem; Ctx.m_instance.m_auxUIHelp.m_auxTuJian.m_eTuJianMenu = ETuJianMenu.eCard; Ctx.m_instance.m_uiMgr.loadAndShow(UIFormID.eUITuJianTop); }