多语言

This commit is contained in:
xiekaidong 2023-07-25 16:36:25 +08:00
parent 3cd1b81e8f
commit b6d66aa8be

View File

@ -17,10 +17,10 @@ function ChapterCell:refresh(id)
end end
local farmNode = uiMap["chapter_cell.touch_node.farm_node"] 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"] local chapterNode = uiMap["chapter_cell.touch_node.chapter_node"]
uiMap["chapter_cell.touch_node.chapter_node.desc"]:setText(config.chapter .. "-" .. config.stage) 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"] local starNode = uiMap["chapter_cell.touch_node.star_node"]
if not self.hStars then if not self.hStars then
@ -41,6 +41,7 @@ function ChapterCell:refresh(id)
spineNode:setVisible(false) spineNode:setVisible(false)
if armorData:canFarmChapter(id) then -- 可扫荡 if armorData:canFarmChapter(id) then -- 可扫荡
farmNode:setVisible(true) farmNode:setVisible(true)
farmNode:setSizeDeltaX(farmTx:getComponent(GConst.TYPEOF_UNITY_CLASS.UI_TEXT_MESH_PRO).preferredWidth + 25)
chapterNode:setAnchoredPositionY(43) chapterNode:setAnchoredPositionY(43)
starNode:setVisible(true) starNode:setVisible(true)
for index, node in ipairs(self.hStars) do for index, node in ipairs(self.hStars) do