diff --git a/lua_probject/extend_project/extend/poker2/suoha/ExGameController.lua b/lua_probject/extend_project/extend/poker2/suoha/ExGameController.lua index 95da521d..9e12e508 100644 --- a/lua_probject/extend_project/extend/poker2/suoha/ExGameController.lua +++ b/lua_probject/extend_project/extend/poker2/suoha/ExGameController.lua @@ -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) diff --git a/lua_probject/extend_project/extend/poker2/suoha/ExPlayerSelfPokerInfoView.lua b/lua_probject/extend_project/extend/poker2/suoha/ExPlayerSelfPokerInfoView.lua index da885498..b1f8cb35 100644 --- a/lua_probject/extend_project/extend/poker2/suoha/ExPlayerSelfPokerInfoView.lua +++ b/lua_probject/extend_project/extend/poker2/suoha/ExPlayerSelfPokerInfoView.lua @@ -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 diff --git a/wb_unity_pro/Assets/ART/extend/poker2/suoha/ui/Extend_Poker_SuoHa_fui.bytes b/wb_unity_pro/Assets/ART/extend/poker2/suoha/ui/Extend_Poker_SuoHa_fui.bytes index b7ca3dcd..ab692c52 100644 Binary files a/wb_unity_pro/Assets/ART/extend/poker2/suoha/ui/Extend_Poker_SuoHa_fui.bytes and b/wb_unity_pro/Assets/ART/extend/poker2/suoha/ui/Extend_Poker_SuoHa_fui.bytes differ