梭哈提示显示同步
parent
9d72403c7b
commit
a0892f7c6b
|
|
@ -79,6 +79,17 @@ end
|
|||
-- end
|
||||
|
||||
--我发出的协议
|
||||
function M:SendTipQi()
|
||||
local _data = {}
|
||||
local _client = ControllerManager.GameNetClinet
|
||||
_client:send(EXProtocol.GAME_EVT_FOLD, _data)
|
||||
end
|
||||
|
||||
function M:SendTipXia()
|
||||
local _data = {}
|
||||
local _client = ControllerManager.GameNetClinet
|
||||
_client:send(EXProtocol.GAME_EVT_BET, _data)
|
||||
end
|
||||
|
||||
--绑定协议为事件
|
||||
function M:OnSendCard(evt_data)
|
||||
|
|
|
|||
|
|
@ -36,6 +36,9 @@ function M:init()
|
|||
EXPlayerPokerInfoView.init(self)
|
||||
|
||||
self._view_tipsList = view:GetChild('list_tips')
|
||||
self._view_tipsList.onClickItem:Set(function(context)
|
||||
self:OnClickTips(context)
|
||||
end)
|
||||
|
||||
self._ctr_out = view:GetController('out')
|
||||
end
|
||||
|
|
@ -51,6 +54,24 @@ function M:ShowTips(type)
|
|||
end
|
||||
end
|
||||
|
||||
function M:OnClickTips(context)
|
||||
local type = context.data.data.type
|
||||
if type == TipType.guo then
|
||||
elseif type == TipType.qi then
|
||||
self:ClickTipQi()
|
||||
elseif type == TipType.xia then
|
||||
self:ClickTipXia()
|
||||
end
|
||||
end
|
||||
|
||||
function M:ClickTipQi()
|
||||
self._gameCtr:SendTipQi()
|
||||
end
|
||||
|
||||
function M:ClickTipXia()
|
||||
self._gameCtr:SendTipXia()
|
||||
end
|
||||
|
||||
function M.SetTipData(obj, type)
|
||||
obj.data = {}
|
||||
obj.data.type = type
|
||||
|
|
|
|||
Binary file not shown.
Loading…
Reference in New Issue