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