This commit is contained in:
puxuan 2025-10-23 11:22:54 +08:00
parent 2b85e103b6
commit 1df45720f8
8 changed files with 10 additions and 16 deletions

View File

@ -936,6 +936,7 @@ local LocalizationGlobalConst =
FUNC_OPEN_LEVEL_SEVER = "FUNC_OPEN_LEVEL_SEVER",
FUNC_OPEN_STAGE_OR_SEVER = "FUNC_OPEN_STAGE_OR_SEVER",
ACT_TURNTABLE_DESC_5 = "ACT_TURNTABLE_DESC_5",
VALUE_DESC = "VALUE_DESC",
}
return LocalizationGlobalConst

View File

@ -936,6 +936,7 @@ local localization_global =
["FUNC_OPEN_LEVEL_SEVER"] = "等级达到{0}且{1}/{2}天后解锁",
["FUNC_OPEN_STAGE_OR_SEVER"] = "通关章节{0}或{1}/{2}天后解锁",
["ACT_TURNTABLE_DESC_5"] = "跳过动画",
["VALUE_DESC"] = "超值",
}
return localization_global

View File

@ -264,12 +264,4 @@ function RewardCell:showSelect(show)
self.select:setActive(show == true)
end
function RewardCell:setShowFirstTag(show)
if self.firstNode == nil or self.txfirst == nil then
return
end
self.firstNode:setVisible(show)
self.txfirst:setText(I18N:getGlobalText(I18N.GlobalConst.CHALLENGE_TEAM_7))
end
return RewardCell

View File

@ -123,7 +123,7 @@ function DungeonGoldCell:refresh(index)
end)
self.scrollRectComp:addRefreshCallback(function(cellIndex, cell)
cell:refreshByConfig(self.rewardList[cellIndex], false, false)
cell:setShowFirstTag(cellIndex <= self.firstCount)
cell:showFirstPass(cellIndex <= self.firstCount)
end)
end

View File

@ -124,7 +124,7 @@ function DungeonMaterialCell:refresh(index)
end)
self.scrollRectComp:addRefreshCallback(function(cellIndex, cell)
cell:refreshByConfig(self.rewardList[cellIndex], false, false)
cell:setShowFirstTag(cellIndex <= self.firstCount)
cell:showFirstPass(cellIndex <= self.firstCount)
end)
end

View File

@ -37,7 +37,7 @@ function FreeDailyRewardsComp:refresh()
self.getBtn:setActive(not isClaimed)
if not isClaimed then
self.getBtn:addRedPoint(86, 36, 1)
self.getBtn:addRedPoint(70, 30, 1)
else
self.getBtn:removeRedPoint()
end

View File

@ -108,7 +108,7 @@ function MonthlyCardComp:refresh()
self.rewadCell12:addClickListener(function()
ModuleManager.PrivilegeCardManager:getPurchaseCardDailyReward(GConst.ShopConst.PRIVILEGE_CARD_ID.MONTHLY_CARD)
end)
self.payBtn:addRedPoint(86, 36, 1)
self.payBtn:addRedPoint(70, 30, 1)
end
else
self.descTx5:setText(I18N:getGlobalText(I18N.GlobalConst.MONTHLY_CARD_13))

View File

@ -8,7 +8,7 @@ function PrivilegeMainUI:onPressBackspace()
self:closeUI()
end
function PrivilegeMainUI:currencyParams()
function PrivilegeMainUI:getCurrencyParams()
local params = {}
params.showType = GConst.CURRENCY_TYPE.HORIZONTAL
params.itemIds = {
@ -144,7 +144,7 @@ function PrivilegeMainUI:updateFreeDailyRewards(offsetY)
end
self.freeDailyRewards:setAnchoredPositionY(offsetY)
offsetY = offsetY - 204
offsetY = offsetY - 250
local cell = self.freeDailyRewards:addLuaComponent(GConst.ShopConst.PRIVILEGE_COMP.FREE_DAILY_REWARDS)
cell:refresh()
@ -163,7 +163,7 @@ function PrivilegeMainUI:updateAdCard(offsetY)
end
self.adCard:setAnchoredPositionY(offsetY)
offsetY = offsetY - 386
offsetY = offsetY - 440
local cell = self.adCard:addLuaComponent(GConst.ShopConst.PRIVILEGE_COMP.AD_CARD)
cell:refresh()
@ -182,7 +182,7 @@ function PrivilegeMainUI:updateMonthlyCard(offsetY)
end
self.monthlyCard:setAnchoredPositionY(offsetY)
offsetY = offsetY - 456
offsetY = offsetY - 450
self.monthlyCardComp = self.monthlyCard:addLuaComponent(GConst.ShopConst.PRIVILEGE_COMP.MONTHLY_CARD)
self.monthlyCardComp:refresh()