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