四人界面新同步
parent
4786cecfb7
commit
bb04ca25cf
|
|
@ -152,9 +152,7 @@ function M:UpdateHandCard(getcard, mp)
|
|||
|
||||
local handCardName = self._viewText_cardInfo['Hand_Card']
|
||||
if self._view_handCardList.numItems > #card_list - 1 then
|
||||
for i = 1, self._view_handCardList.numItems - #card_list + 1 do
|
||||
self._view_handCardList:RemoveChildrenToPool()
|
||||
end
|
||||
self._view_handCardList:RemoveChildrenToPool(#card_list - 1, self._view_handCardList.numItems)
|
||||
end
|
||||
|
||||
for i = 0, (#card_list) - 1 do
|
||||
|
|
@ -275,6 +273,7 @@ function M:__OnDragEnd(context)
|
|||
end
|
||||
|
||||
function M:__OnClickHandCard(context)
|
||||
print("=======================lingmengclickhand")
|
||||
self._ctr_seletedGet.selectedIndex = 0
|
||||
local button = context.data
|
||||
-- local _carViewList = self._carViewList
|
||||
|
|
@ -343,7 +342,7 @@ function M:UpdateFzList(fz, index, show_card)
|
|||
ctr_Four.selectedIndex = 0
|
||||
else
|
||||
ctr_Four.selectedIndex = 1
|
||||
local FZCard = outCard:GetChild(string.format("Comp_Card%d", i))
|
||||
local FZCard = outCard:GetChild(string.format("Comp_Card%d", 4))
|
||||
self:fillCard2(FZCard, FZame, fz.card)
|
||||
if fz.type == FZType.Gang_An then
|
||||
self:fillCard2(FZCard, FZame, '00')
|
||||
|
|
|
|||
Loading…
Reference in New Issue