江西要求一
parent
4455aaa25c
commit
81f9cb6c1c
|
|
@ -215,7 +215,8 @@ function M:__OnDragEnd(context)
|
||||||
|
|
||||||
local xy = self._view_handCardList:GlobalToLocal(Vector2.New(context.inputEvent.x, context.inputEvent.y))
|
local xy = self._view_handCardList:GlobalToLocal(Vector2.New(context.inputEvent.x, context.inputEvent.y))
|
||||||
local cardHeight = button.height
|
local cardHeight = button.height
|
||||||
if ((xy.y < -35 or (self.ischoose and self._ctr_seletedGet.selectedIndex == 0) or (context.inputEvent.y - self.touchPos.y < -cardHeight * 0.2)) and _room.curren_outcard_seat == _room.self_player.seat) then
|
if ((xy.y < -35 or (context.inputEvent.y - self.touchPos.y < -cardHeight * 0.2)) and _room.curren_outcard_seat == _room.self_player.seat) then
|
||||||
|
-- if ((xy.y < -35 or (self.ischoose and self._ctr_seletedGet.selectedIndex == 0) or (context.inputEvent.y - self.touchPos.y < -cardHeight * 0.2)) and _room.curren_outcard_seat == _room.self_player.seat) then
|
||||||
self._mainView:OutCard(card.card_item)
|
self._mainView:OutCard(card.card_item)
|
||||||
self.outcard_button = button
|
self.outcard_button = button
|
||||||
self:ClearChoose()
|
self:ClearChoose()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue