梭哈提示显示同步

master
罗家炜 2025-05-15 17:01:19 +08:00
parent 9d72403c7b
commit a0892f7c6b
3 changed files with 32 additions and 0 deletions

View File

@ -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)

View File

@ -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