This commit is contained in:
puxuan 2025-08-27 21:43:53 +08:00
parent 5818f99580
commit 9be39b4c7e
2 changed files with 5 additions and 5 deletions

View File

@ -1,7 +1,7 @@
local TaskCell = class("TaskCell", BaseCell)
local ICON_BG = {"act_common_bg_14", "act_common_bg_14"}
local ICON = {"daily_task_1", "daily_task_2"}
local ICON_BG = {"daily_challenge_bg_6", "daily_challenge_bg_5"}
-- local ICON = {"daily_task_1", "daily_task_2"}
function TaskCell:refresh(taskInfo, customProgress)
local complete = taskInfo.claimed
@ -9,7 +9,7 @@ function TaskCell:refresh(taskInfo, customProgress)
local uiMap = self:getUIMap()
local cfg = DataManager.DailyChallengeData:getTaskCfg()[taskInfo.task_id]
local icon = complete and ICON_BG[2] or ICON_BG[1]
uiMap["task_cell.bg"]:setSprite(GConst.ATLAS_PATH.ACT_COMMON, icon)
uiMap["task_cell.bg"]:setSprite(GConst.ATLAS_PATH.DAILY_CHALLENGE, icon)
-- icon = complete and ICON[2] or ICON[1]
-- uiMap["task_cell.task_icon"]:setSprite(GConst.ATLAS_PATH.DAILY_CHALLENGE, icon)
uiMap["task_cell.desc"]:setText(DataManager.DailyChallengeData:getTaskDesc(taskInfo.task_id, true, customProgress))

View File

@ -70,9 +70,9 @@ function DailyChallengeUI:onRefresh()
self:updateTime()
self:refreshFightBtn()
if DataManager.DailyChallengeData:getIsPopTask() then
-- if DataManager.DailyChallengeData:getIsPopTask() then
ModuleManager.DailyChallengeManager:showBattleTaskUI()
end
-- end
end
function DailyChallengeUI:refreshTask()