From ff9dad5e8cb3240c3d5e145d76e439a79e37e244 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BD=97=E5=AE=B6=E7=82=9C?= <2029049582@qq.com> Date: Fri, 18 Jul 2025 19:26:03 +0800 Subject: [PATCH] =?UTF-8?q?=E6=98=BE=E7=A4=BA=E5=89=A9=E4=BD=99=E7=89=8C?= =?UTF-8?q?=E8=A1=A5=E5=85=85=EF=BC=8C=E4=BF=AE=E5=A4=8Dbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../extend/majiang/fuzhou/EXClearingView.lua | 9 ++++++--- .../majiang/fuzhou/EXGameController.lua | 4 +++- .../extend/majiang/jinxi/EXClearingView.lua | 9 ++++++--- .../extend/majiang/jinxi/EXGameController.lua | 4 +++- .../extend/majiang/lichuan/EXClearingView.lua | 9 ++++++--- .../majiang/lichuan/EXGameController.lua | 4 +++- .../majiang/nancheng/EXClearingView.lua | 9 ++++++--- .../majiang/nancheng/EXGameController.lua | 4 +++- .../Component/btn_gameDismissRoom.xml | 18 ++++++++++++++++++ .../Main_New/Component/dismiss_room.png | Bin 0 -> 17973 bytes .../Main_New/Component/exit_room.png | Bin 0 -> 50889 bytes .../RunFast_Main_New_2.xml | 9 +++++---- .../Extend_Poker_RunFastNew/package.xml | 3 +++ .../ui/Extend_Poker_RunFastNew_atlas0.png | Bin 1649451 -> 1733171 bytes .../ui/Extend_Poker_RunFastNew_atlas0_1.png | Bin 1885495 -> 1969701 bytes .../ui/Extend_Poker_RunFastNew_fui.bytes | Bin 167088 -> 167758 bytes 16 files changed, 62 insertions(+), 20 deletions(-) create mode 100644 wb_new_ui/assets/Extend_Poker_RunFastNew/Main_New/Component/btn_gameDismissRoom.xml create mode 100644 wb_new_ui/assets/Extend_Poker_RunFastNew/Main_New/Component/dismiss_room.png create mode 100644 wb_new_ui/assets/Extend_Poker_RunFastNew/Main_New/Component/exit_room.png diff --git a/lua_probject/extend_project/extend/majiang/fuzhou/EXClearingView.lua b/lua_probject/extend_project/extend/majiang/fuzhou/EXClearingView.lua index 6149e9f0..83f32916 100644 --- a/lua_probject/extend_project/extend/majiang/fuzhou/EXClearingView.lua +++ b/lua_probject/extend_project/extend/majiang/fuzhou/EXClearingView.lua @@ -47,8 +47,10 @@ function M:InitData(over, room, result, total_result, callback, isWitness, witne local playerNum = self._view:GetController("playerNum") local showBtnTypeCtr = self._view:GetController("showType") - result.cardList = json.decode(result.cardList) - table.sort(result.cardList) + if result then + result.cardList = json.decode(result.cardList) + table.sort(result.cardList) + end self.list_lastCard = self._view:GetChild('list_lastCard') self.list_lastCard:SetVirtual() @@ -127,6 +129,8 @@ function M:fillResult0(room, peopleNum, result) local gamePlay = mode:LoadConfigToDetail(json.encode(room.room_config.config)) self._view:GetChild("Label_GamePlay").title = string.format("第%s/%s局,%s", room.curren_round, room.room_config.round, gamePlay) + self.list_lastCard.numItems = #result.cardList + self._view:GetChild('n147').text = string.format("剩余%d张未显示", #result.cardList) for i = 1, peopleNum do local playerInfoComp = self._view:GetChild(string.format("Comp_Player%d", i)) @@ -151,7 +155,6 @@ function M:fillResult0(room, peopleNum, result) infoList.gang_score = infoList.gang_score or 0 infoList.hu_score = infoList.hu_score or 0 infoList.round_score = infoList.round_score or 0 - self.list_lastCard.numItems = #result.cardList playerInfoComp:GetChild("text_name").text = playInfo.self_user.nick_name playerInfoComp:GetChild("Text_BoJing").text = infoList.jing_score >= 0 and diff --git a/lua_probject/extend_project/extend/majiang/fuzhou/EXGameController.lua b/lua_probject/extend_project/extend/majiang/fuzhou/EXGameController.lua index ab82a79f..13725234 100644 --- a/lua_probject/extend_project/extend/majiang/fuzhou/EXGameController.lua +++ b/lua_probject/extend_project/extend/majiang/fuzhou/EXGameController.lua @@ -332,7 +332,9 @@ function M:OneventResult1(evt_data) --0:小结算 1:小大结算 2:大结算 self._room._reload_flag = false self._room.playing = false - evt_data.result.cardList = evt_data.cardList + if evt_data.result then + evt_data.result.cardList = evt_data.cardList + end if 0 == over then local result = evt_data.result self._cacheEvent:Enqueue(function() diff --git a/lua_probject/extend_project/extend/majiang/jinxi/EXClearingView.lua b/lua_probject/extend_project/extend/majiang/jinxi/EXClearingView.lua index 3b443c33..1bc7f836 100644 --- a/lua_probject/extend_project/extend/majiang/jinxi/EXClearingView.lua +++ b/lua_probject/extend_project/extend/majiang/jinxi/EXClearingView.lua @@ -47,8 +47,10 @@ function M:InitData(over, room, result, total_result, callback, isWitness, witne local playerNum = self._view:GetController("playerNum") local showBtnTypeCtr = self._view:GetController("showType") - result.cardList = json.decode(result.cardList) - table.sort(result.cardList) + if result then + result.cardList = json.decode(result.cardList) + table.sort(result.cardList) + end self.list_lastCard = self._view:GetChild('list_lastCard') self.list_lastCard:SetVirtual() @@ -127,6 +129,8 @@ function M:fillResult0(room, peopleNum, result) local gamePlay = mode:LoadConfigToDetail(json.encode(room.room_config.config)) self._view:GetChild("Label_GamePlay").title = string.format("第%s/%s局,%s", room.curren_round, room.room_config.round, gamePlay) + self.list_lastCard.numItems = #result.cardList + self._view:GetChild('n147').text = string.format("剩余%d张未显示", #result.cardList) for i = 1, peopleNum do local playerInfoComp = self._view:GetChild(string.format("Comp_Player%d", i)) @@ -151,7 +155,6 @@ function M:fillResult0(room, peopleNum, result) infoList.gang_score = infoList.gang_score or 0 infoList.hu_score = infoList.hu_score or 0 infoList.round_score = infoList.round_score or 0 - self.list_lastCard.numItems = #result.cardList playerInfoComp:GetChild("text_name").text = playInfo.self_user.nick_name playerInfoComp:GetChild("Text_BoJing").text = infoList.jing_score >= 0 and diff --git a/lua_probject/extend_project/extend/majiang/jinxi/EXGameController.lua b/lua_probject/extend_project/extend/majiang/jinxi/EXGameController.lua index eebf2f38..c49be0c7 100644 --- a/lua_probject/extend_project/extend/majiang/jinxi/EXGameController.lua +++ b/lua_probject/extend_project/extend/majiang/jinxi/EXGameController.lua @@ -332,7 +332,9 @@ function M:OneventResult1(evt_data) --0:小结算 1:小大结算 2:大结算 self._room._reload_flag = false self._room.playing = false - evt_data.result.cardList = evt_data.cardList + if evt_data.result then + evt_data.result.cardList = evt_data.cardList + end if 0 == over then local result = evt_data.result self._cacheEvent:Enqueue(function() diff --git a/lua_probject/extend_project/extend/majiang/lichuan/EXClearingView.lua b/lua_probject/extend_project/extend/majiang/lichuan/EXClearingView.lua index 7d269374..ded6138b 100644 --- a/lua_probject/extend_project/extend/majiang/lichuan/EXClearingView.lua +++ b/lua_probject/extend_project/extend/majiang/lichuan/EXClearingView.lua @@ -47,8 +47,10 @@ function M:InitData(over, room, result, total_result, callback, isWitness, witne local playerNum = self._view:GetController("playerNum") local showBtnTypeCtr = self._view:GetController("showType") - result.cardList = json.decode(result.cardList) - table.sort(result.cardList) + if result then + result.cardList = json.decode(result.cardList) + table.sort(result.cardList) + end self.list_lastCard = self._view:GetChild('list_lastCard') self.list_lastCard:SetVirtual() @@ -125,6 +127,8 @@ function M:fillResult0(room, peopleNum, result) local gamePlay = mode:LoadConfigToDetail(json.encode(room.room_config.config)) self._view:GetChild("Label_GamePlay").title = string.format("第%s/%s局,%s", room.curren_round, room.room_config.round, gamePlay) + self.list_lastCard.numItems = #result.cardList + self._view:GetChild('n147').text = string.format("剩余%d张未显示", #result.cardList) for i = 1, peopleNum do local playerInfoComp = self._view:GetChild(string.format("Comp_Player%d", i)) @@ -149,7 +153,6 @@ function M:fillResult0(room, peopleNum, result) infoList.gang_score = infoList.gang_score or 0 infoList.hu_score = infoList.hu_score or 0 infoList.round_score = infoList.round_score or 0 - self.list_lastCard.numItems = #result.cardList playerInfoComp:GetChild("text_name").text = playInfo.self_user.nick_name playerInfoComp:GetChild("Text_BoJing").text = infoList.jing_score >= 0 and diff --git a/lua_probject/extend_project/extend/majiang/lichuan/EXGameController.lua b/lua_probject/extend_project/extend/majiang/lichuan/EXGameController.lua index 450714d4..852c04a7 100644 --- a/lua_probject/extend_project/extend/majiang/lichuan/EXGameController.lua +++ b/lua_probject/extend_project/extend/majiang/lichuan/EXGameController.lua @@ -333,7 +333,9 @@ function M:OneventResult1(evt_data) --0:小结算 1:小大结算 2:大结算 self._room._reload_flag = false self._room.playing = false - evt_data.result.cardList = evt_data.cardList + if evt_data.result then + evt_data.result.cardList = evt_data.cardList + end if 0 == over then local result = evt_data.result self._cacheEvent:Enqueue(function() diff --git a/lua_probject/extend_project/extend/majiang/nancheng/EXClearingView.lua b/lua_probject/extend_project/extend/majiang/nancheng/EXClearingView.lua index e305144d..f380fe86 100644 --- a/lua_probject/extend_project/extend/majiang/nancheng/EXClearingView.lua +++ b/lua_probject/extend_project/extend/majiang/nancheng/EXClearingView.lua @@ -47,8 +47,10 @@ function M:InitData(over, room, result, total_result, callback, isWitness, witne local playerNum = self._view:GetController("playerNum") local showBtnTypeCtr = self._view:GetController("showType") - result.cardList = json.decode(result.cardList) - table.sort(result.cardList) + if result then + result.cardList = json.decode(result.cardList) + table.sort(result.cardList) + end self.list_lastCard = self._view:GetChild('list_lastCard') self.list_lastCard:SetVirtual() @@ -125,6 +127,8 @@ function M:fillResult0(room, peopleNum, result) local gamePlay = mode:LoadConfigToDetail(json.encode(room.room_config.config)) self._view:GetChild("Label_GamePlay").title = string.format("第%s/%s局,%s", room.curren_round, room.room_config.round, gamePlay) + self.list_lastCard.numItems = #result.cardList + self._view:GetChild('n147').text = string.format("剩余%d张未显示", #result.cardList) for i = 1, peopleNum do local playerInfoComp = self._view:GetChild(string.format("Comp_Player%d", i)) @@ -149,7 +153,6 @@ function M:fillResult0(room, peopleNum, result) infoList.gang_score = infoList.gang_score or 0 infoList.hu_score = infoList.hu_score or 0 infoList.round_score = infoList.round_score or 0 - self.list_lastCard.numItems = #result.cardList playerInfoComp:GetChild("text_name").text = playInfo.self_user.nick_name playerInfoComp:GetChild("Text_BoJing").text = infoList.jing_score >= 0 and diff --git a/lua_probject/extend_project/extend/majiang/nancheng/EXGameController.lua b/lua_probject/extend_project/extend/majiang/nancheng/EXGameController.lua index 99a225d0..36c3b4e3 100644 --- a/lua_probject/extend_project/extend/majiang/nancheng/EXGameController.lua +++ b/lua_probject/extend_project/extend/majiang/nancheng/EXGameController.lua @@ -332,7 +332,9 @@ function M:OneventResult1(evt_data) --0:小结算 1:小大结算 2:大结算 self._room._reload_flag = false self._room.playing = false - evt_data.result.cardList = evt_data.cardList + if evt_data.result then + evt_data.result.cardList = evt_data.cardList + end if 0 == over then local result = evt_data.result self._cacheEvent:Enqueue(function() diff --git a/wb_new_ui/assets/Extend_Poker_RunFastNew/Main_New/Component/btn_gameDismissRoom.xml b/wb_new_ui/assets/Extend_Poker_RunFastNew/Main_New/Component/btn_gameDismissRoom.xml new file mode 100644 index 00000000..be816b97 --- /dev/null +++ b/wb_new_ui/assets/Extend_Poker_RunFastNew/Main_New/Component/btn_gameDismissRoom.xml @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + + + +