From b6d66aa8bef62b32971c9b1707039c4a9e612e1c Mon Sep 17 00:00:00 2001 From: xiekaidong Date: Tue, 25 Jul 2023 16:36:25 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=9A=E8=AF=AD=E8=A8=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lua/app/ui/dungeon_armor/cell/chapter_cell.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lua/app/ui/dungeon_armor/cell/chapter_cell.lua b/lua/app/ui/dungeon_armor/cell/chapter_cell.lua index 03ce967a..dce90533 100644 --- a/lua/app/ui/dungeon_armor/cell/chapter_cell.lua +++ b/lua/app/ui/dungeon_armor/cell/chapter_cell.lua @@ -17,10 +17,10 @@ function ChapterCell:refresh(id) end local farmNode = uiMap["chapter_cell.touch_node.farm_node"] - uiMap["chapter_cell.touch_node.farm_node.desc"]:setText(I18N:getGlobalText(I18N.GlobalConst.SMASH)) + local farmTx = uiMap["chapter_cell.touch_node.farm_node.desc"] + farmTx:setText(I18N:getGlobalText(I18N.GlobalConst.SMASH)) local chapterNode = uiMap["chapter_cell.touch_node.chapter_node"] uiMap["chapter_cell.touch_node.chapter_node.desc"]:setText(config.chapter .. "-" .. config.stage) - local bottomBg = uiMap["chapter_cell.touch_node.bottom_bg"] local starNode = uiMap["chapter_cell.touch_node.star_node"] if not self.hStars then @@ -41,6 +41,7 @@ function ChapterCell:refresh(id) spineNode:setVisible(false) if armorData:canFarmChapter(id) then -- 可扫荡 farmNode:setVisible(true) + farmNode:setSizeDeltaX(farmTx:getComponent(GConst.TYPEOF_UNITY_CLASS.UI_TEXT_MESH_PRO).preferredWidth + 25) chapterNode:setAnchoredPositionY(43) starNode:setVisible(true) for index, node in ipairs(self.hStars) do