From 1aca2cab85f97a68f94f6565170d329d9a42c899 Mon Sep 17 00:00:00 2001 From: 1076390229 <1076390229@qq.com> Date: Thu, 12 Mar 2026 16:23:18 +0800 Subject: [PATCH] 2 --- .../extend/zipai/fanpaofa/main/HuTipView.lua | 17 ++++++++++++++--- .../component/clearing/clearing.xml | 14 +++++++------- .../Main_RunBeard/component/HuTip/Hu_Tip.xml | 2 +- .../Main/component/Player_card_info_2.xml | 2 +- .../chi_peng_effect/Btn_pass_new.xml | 2 +- .../main_zipai/ui/Main_RunBeard_fui.bytes | Bin 178614 -> 178614 bytes .../ui/Extend_Poker_FanPaoFa_fui.bytes | Bin 142212 -> 142212 bytes 7 files changed, 24 insertions(+), 13 deletions(-) diff --git a/lua_probject/extend_project/extend/zipai/fanpaofa/main/HuTipView.lua b/lua_probject/extend_project/extend/zipai/fanpaofa/main/HuTipView.lua index f847d2d5..bde21037 100644 --- a/lua_probject/extend_project/extend/zipai/fanpaofa/main/HuTipView.lua +++ b/lua_probject/extend_project/extend/zipai/fanpaofa/main/HuTipView.lua @@ -43,7 +43,7 @@ function M:init() self._view.x = 0.115 * m_width --- 0.5 * width --self._view.x = 0 -- self._view.y = 0.65 * m_height - self._view.y = 0.65 * m_height + self._view.y = 0.5 * m_height SetObjEnabled(self._view, false) self._view.onTouchBegin:Add(handler(self, self.OnTouchBegin)) self._view.onTouchMove:Add(handler(self, self.OnTouchMove)) @@ -54,8 +54,19 @@ function M:FillData(cards) lst_card:RemoveChildrenToPool() local num = #cards local n0 = self._view:GetChild("n0") - n0.height = 130 - n0.width = 76 * #cards + 150 + if #cards < 4 then + n0.width = (#cards * 76) * 3 + 150 + else + n0.width = (1 * 76) * 3 + 200 + end + local numC = #cards / 4 + if numC ~= math.floor(numC) then + numC = math.floor(numC) + 1 + end + + n0.height = numC * 130 + print("00000=======111==" .. numC) + if num > 0 then if num > 4 and num < 28 then self._view.width = 191 + ((num > 4 and 6 or num) - 3) * 38 diff --git a/wb_new_ui/assets/Extend_Poker_FanPaoFa/component/clearing/clearing.xml b/wb_new_ui/assets/Extend_Poker_FanPaoFa/component/clearing/clearing.xml index 5094cabd..f3c63b99 100644 --- a/wb_new_ui/assets/Extend_Poker_FanPaoFa/component/clearing/clearing.xml +++ b/wb_new_ui/assets/Extend_Poker_FanPaoFa/component/clearing/clearing.xml @@ -1,12 +1,12 @@ - - + + - + @@ -30,7 +30,7 @@ - +