修复泽帆提供的小建议
parent
e480594e37
commit
e01cec4dcf
|
|
@ -212,12 +212,8 @@ end
|
||||||
|
|
||||||
function M:ShowJing()
|
function M:ShowJing()
|
||||||
if self._room.jing then
|
if self._room.jing then
|
||||||
self.jing.icon = 'ui://Main_Majiang/' ..
|
|
||||||
get_majiang_prefix(DataManager.CurrenRoom.game_id) .. "201_" .. self._room.jing
|
|
||||||
self.jing.visible = true
|
self.jing.visible = true
|
||||||
if self.jing:GetController('jing') then
|
MJPlayerCardInfoView.fillCard2(self, self.jing, "201_", self._room.jing)
|
||||||
self.jing:GetController('jing').selectedIndex = 1
|
|
||||||
end
|
|
||||||
else
|
else
|
||||||
self.jing.visible = false
|
self.jing.visible = false
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -211,12 +211,8 @@ end
|
||||||
|
|
||||||
function M:ShowJing()
|
function M:ShowJing()
|
||||||
if self._room.jing then
|
if self._room.jing then
|
||||||
self.jing.icon = 'ui://Main_Majiang/' ..
|
|
||||||
get_majiang_prefix(DataManager.CurrenRoom.game_id) .. "201_" .. self._room.jing
|
|
||||||
self.jing.visible = true
|
self.jing.visible = true
|
||||||
if self.jing:GetController('jing') then
|
MJPlayerCardInfoView.fillCard2(self, self.jing, "201_", self._room.jing)
|
||||||
self.jing:GetController('jing').selectedIndex = 1
|
|
||||||
end
|
|
||||||
else
|
else
|
||||||
self.jing.visible = false
|
self.jing.visible = false
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -209,12 +209,8 @@ end
|
||||||
|
|
||||||
function M:ShowJing()
|
function M:ShowJing()
|
||||||
if self._room.jing then
|
if self._room.jing then
|
||||||
self.jing.icon = 'ui://Main_Majiang/' ..
|
|
||||||
get_majiang_prefix(DataManager.CurrenRoom.game_id) .. "201_" .. self._room.jing
|
|
||||||
self.jing.visible = true
|
self.jing.visible = true
|
||||||
if self.jing:GetController('jing') then
|
MJPlayerCardInfoView.fillCard2(self, self.jing, "201_", self._room.jing)
|
||||||
self.jing:GetController('jing').selectedIndex = 1
|
|
||||||
end
|
|
||||||
else
|
else
|
||||||
self.jing.visible = false
|
self.jing.visible = false
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -210,12 +210,8 @@ end
|
||||||
|
|
||||||
function M:ShowJing()
|
function M:ShowJing()
|
||||||
if self._room.jing then
|
if self._room.jing then
|
||||||
self.jing.icon = 'ui://Main_Majiang/' ..
|
|
||||||
get_majiang_prefix(DataManager.CurrenRoom.game_id) .. "201_" .. self._room.jing
|
|
||||||
self.jing.visible = true
|
self.jing.visible = true
|
||||||
if self.jing:GetController('jing') then
|
MJPlayerCardInfoView.fillCard2(self, self.jing, "201_", self._room.jing)
|
||||||
self.jing:GetController('jing').selectedIndex = 1
|
|
||||||
end
|
|
||||||
else
|
else
|
||||||
self.jing.visible = false
|
self.jing.visible = false
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -130,6 +130,7 @@ function M:UpdateHandCard(getcard, mp)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
self._ctr_getCard.selectedIndex = getcard and 1 or 0
|
self._ctr_getCard.selectedIndex = getcard and 1 or 0
|
||||||
|
print("lingmenghand", self._ctr_getCard.selectedIndex, self._view_getCard.numItems, self._view_getCard.visible)
|
||||||
end
|
end
|
||||||
|
|
||||||
-- 获取麻将图片资源位置,可以在扩展中复写
|
-- 获取麻将图片资源位置,可以在扩展中复写
|
||||||
|
|
|
||||||
|
|
@ -180,7 +180,7 @@ function M:__OnClickGetCard(context)
|
||||||
self._view_handCardList.selectedIndex = -1
|
self._view_handCardList.selectedIndex = -1
|
||||||
local button = context.sender
|
local button = context.sender
|
||||||
local _room = DataManager.CurrenRoom
|
local _room = DataManager.CurrenRoom
|
||||||
if (Utils.IsDoubleClick(context) and _room.curren_outcard_seat == _room.self_player.seat) then
|
if ((Utils.IsDoubleClick(context) or self._ctr_seletedGet.selectedIndex == 0) and _room.curren_outcard_seat == _room.self_player.seat) then
|
||||||
local card = button.data
|
local card = button.data
|
||||||
self._mainView:OutCard(card.card_item)
|
self._mainView:OutCard(card.card_item)
|
||||||
self._view_handCardList.selectedIndex = -1
|
self._view_handCardList.selectedIndex = -1
|
||||||
|
|
|
||||||
Binary file not shown.
Loading…
Reference in New Issue