gitcard同步名字错误
parent
c713edf178
commit
197ab53986
|
|
@ -28,22 +28,16 @@ function M.new(view, mainView)
|
||||||
end
|
end
|
||||||
|
|
||||||
function M:init()
|
function M:init()
|
||||||
|
|
||||||
|
|
||||||
local CardInfo = self._view:GetChild('Text_CardInfo')
|
|
||||||
self._viewText_cardInfo = json.decode(CardInfo.text)
|
|
||||||
|
|
||||||
local CardInfo = self._view:GetChild('Text_CardInfo')
|
local CardInfo = self._view:GetChild('Text_CardInfo')
|
||||||
self._viewText_cardInfo = json.decode(CardInfo.text)
|
self._viewText_cardInfo = json.decode(CardInfo.text)
|
||||||
|
|
||||||
self._view_handCardList = self._view:GetChild('List_HandCard')
|
self._view_handCardList = self._view:GetChild('List_HandCard')
|
||||||
self._view_FZList = self._view:GetChild('List_FZ')
|
self._view_FZList = self._view:GetChild('List_FZ')
|
||||||
self._view_outCardList = self._view:GetChild('List_OutCard')
|
self._view_outCardList = self._view:GetChild('List_OutCard')
|
||||||
self._viewBtn_getCard = self._view:GetChild('Btn_HandCard')
|
self._view_getCard = self._view:GetChild('Btn_HandCard')
|
||||||
|
|
||||||
self._ctr_getCard = self._view:GetController('getCard')
|
self._ctr_getCard = self._view:GetController('getCard')
|
||||||
self._ctr_seletedGet = self._view:GetController('seletedGetCard')
|
self._ctr_seletedGet = self._view:GetController('seletedGetCard')
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
function M:SetPlayer(p)
|
function M:SetPlayer(p)
|
||||||
|
|
@ -92,7 +86,6 @@ function M:Clear()
|
||||||
self._view_handCardList.selectedIndex = -1
|
self._view_handCardList.selectedIndex = -1
|
||||||
self._click_index = self._view_handCardList.selectedIndex
|
self._click_index = self._view_handCardList.selectedIndex
|
||||||
self._ctr_seletedGet.selectedIndex = 0
|
self._ctr_seletedGet.selectedIndex = 0
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
-- 获取麻将资源前缀
|
-- 获取麻将资源前缀
|
||||||
|
|
@ -121,7 +114,6 @@ function M:fillCard2(obj, pos_str, card)
|
||||||
|
|
||||||
|
|
||||||
obj:GetChild("icon").url = 'ui://Main_Majiang/' .. pos_str .. card
|
obj:GetChild("icon").url = 'ui://Main_Majiang/' .. pos_str .. card
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
function M:getBackCard(card)
|
function M:getBackCard(card)
|
||||||
|
|
@ -231,8 +223,6 @@ local function getPos(my_seat, other_seat, total)
|
||||||
end
|
end
|
||||||
|
|
||||||
function M:UpdateFzList(fz, index, show_card)
|
function M:UpdateFzList(fz, index, show_card)
|
||||||
|
|
||||||
|
|
||||||
local fz_list = self._mask_data['fz_list']
|
local fz_list = self._mask_data['fz_list']
|
||||||
local FZame = self._viewText_cardInfo['FZ_Card']
|
local FZame = self._viewText_cardInfo['FZ_Card']
|
||||||
index = index or 0
|
index = index or 0
|
||||||
|
|
|
||||||
|
|
@ -50,7 +50,7 @@ function M:UpdateHandCard(getcard, mp)
|
||||||
if self._view_handCardList.numItems > 0 then
|
if self._view_handCardList.numItems > 0 then
|
||||||
self._view_handCardList:RemoveChildren()
|
self._view_handCardList:RemoveChildren()
|
||||||
end
|
end
|
||||||
if self._view_handCardList.numItems > 0 then
|
if self._view_getCard.numItems > 0 then
|
||||||
self._view_getCard:RemoveChildren()
|
self._view_getCard:RemoveChildren()
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue