This commit is contained in:
puxuan 2025-10-20 20:05:40 +08:00
parent f3a21862c2
commit c6b4df528f
2 changed files with 86 additions and 85 deletions

View File

@ -236,7 +236,7 @@ GConst.ATLAS_PATH = {
ICON_TASK = "assets/arts/atlas/icon/task.asset",
SHOP = "assets/arts/atlas/ui/shop.asset",
HERO = "assets/arts/atlas/ui/hero.asset",
FUND = "assets/arts/atlas/ui/fund.asset",
UI_FUND = "assets/arts/atlas/ui/fund.asset",
SEVEN_DAY = "assets/arts/atlas/ui/sevenday.asset",
MODULE = "assets/arts/atlas/ui/module.asset",
UI_MAIL = "assets/arts/atlas/ui/mail.asset",

View File

@ -21,7 +21,7 @@ end
function FundChapterCell:refresh(id, isLast)
-- 刷新进度
local helf = self:getBaseObject():getSizeDeltaY() / 2
local helf = self:getBaseObject():getSizeDeltaY() / 2 + 10
if self:getIndex() == 1 then
self.progNode:setAnchoredPositionY(-helf / 2)
self.progNode:setSizeDeltaY(helf)
@ -43,12 +43,13 @@ function FundChapterCell:refresh(id, isLast)
self.imgProg.value = value
self.txLv:setText(chapterId .. "-" .. stageNum)
if value == 1 then
self.lvNode:setSprite(GConst.ATLAS_PATH.UI_CHAPTER_FUND, "fund_chapter_bg_2")
self.txLv:getComponent(GConst.TYPEOF_UNITY_CLASS.UI_TEXT_MESH_PRO).color = self.colorLight
self.lvNode:setSprite(GConst.ATLAS_PATH.UI_FUND, "fund_dec_1")
-- self.txLv:getComponent(GConst.TYPEOF_UNITY_CLASS.UI_TEXT_MESH_PRO).color = self.colorLight
else
self.lvNode:setSprite(GConst.ATLAS_PATH.UI_CHAPTER_FUND, "fund_chapter_bg_3")
self.txLv:getComponent(GConst.TYPEOF_UNITY_CLASS.UI_TEXT_MESH_PRO).color = self.colorGray
self.lvNode:setSprite(GConst.ATLAS_PATH.UI_FUND, "fund_dec_3")
-- self.txLv:getComponent(GConst.TYPEOF_UNITY_CLASS.UI_TEXT_MESH_PRO).color = self.colorGray
end
-- GFunc.centerTxAndImgAndTx(txObj1, spacing1, imgObj, spacing2, txObj2)
local freeRewards = DataManager.ChapterFundData:getFreeRewards(id)
local freeReceived = DataManager.ChapterFundData:getFreeGot(id)