特权
This commit is contained in:
parent
2b85e103b6
commit
1df45720f8
@ -936,6 +936,7 @@ local LocalizationGlobalConst =
|
|||||||
FUNC_OPEN_LEVEL_SEVER = "FUNC_OPEN_LEVEL_SEVER",
|
FUNC_OPEN_LEVEL_SEVER = "FUNC_OPEN_LEVEL_SEVER",
|
||||||
FUNC_OPEN_STAGE_OR_SEVER = "FUNC_OPEN_STAGE_OR_SEVER",
|
FUNC_OPEN_STAGE_OR_SEVER = "FUNC_OPEN_STAGE_OR_SEVER",
|
||||||
ACT_TURNTABLE_DESC_5 = "ACT_TURNTABLE_DESC_5",
|
ACT_TURNTABLE_DESC_5 = "ACT_TURNTABLE_DESC_5",
|
||||||
|
VALUE_DESC = "VALUE_DESC",
|
||||||
}
|
}
|
||||||
|
|
||||||
return LocalizationGlobalConst
|
return LocalizationGlobalConst
|
||||||
@ -936,6 +936,7 @@ local localization_global =
|
|||||||
["FUNC_OPEN_LEVEL_SEVER"] = "等级达到{0}且{1}/{2}天后解锁",
|
["FUNC_OPEN_LEVEL_SEVER"] = "等级达到{0}且{1}/{2}天后解锁",
|
||||||
["FUNC_OPEN_STAGE_OR_SEVER"] = "通关章节{0}或{1}/{2}天后解锁",
|
["FUNC_OPEN_STAGE_OR_SEVER"] = "通关章节{0}或{1}/{2}天后解锁",
|
||||||
["ACT_TURNTABLE_DESC_5"] = "跳过动画",
|
["ACT_TURNTABLE_DESC_5"] = "跳过动画",
|
||||||
|
["VALUE_DESC"] = "超值",
|
||||||
}
|
}
|
||||||
|
|
||||||
return localization_global
|
return localization_global
|
||||||
@ -264,12 +264,4 @@ function RewardCell:showSelect(show)
|
|||||||
self.select:setActive(show == true)
|
self.select:setActive(show == true)
|
||||||
end
|
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
|
return RewardCell
|
||||||
@ -123,7 +123,7 @@ function DungeonGoldCell:refresh(index)
|
|||||||
end)
|
end)
|
||||||
self.scrollRectComp:addRefreshCallback(function(cellIndex, cell)
|
self.scrollRectComp:addRefreshCallback(function(cellIndex, cell)
|
||||||
cell:refreshByConfig(self.rewardList[cellIndex], false, false)
|
cell:refreshByConfig(self.rewardList[cellIndex], false, false)
|
||||||
cell:setShowFirstTag(cellIndex <= self.firstCount)
|
cell:showFirstPass(cellIndex <= self.firstCount)
|
||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@ -124,7 +124,7 @@ function DungeonMaterialCell:refresh(index)
|
|||||||
end)
|
end)
|
||||||
self.scrollRectComp:addRefreshCallback(function(cellIndex, cell)
|
self.scrollRectComp:addRefreshCallback(function(cellIndex, cell)
|
||||||
cell:refreshByConfig(self.rewardList[cellIndex], false, false)
|
cell:refreshByConfig(self.rewardList[cellIndex], false, false)
|
||||||
cell:setShowFirstTag(cellIndex <= self.firstCount)
|
cell:showFirstPass(cellIndex <= self.firstCount)
|
||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@ -37,7 +37,7 @@ function FreeDailyRewardsComp:refresh()
|
|||||||
|
|
||||||
self.getBtn:setActive(not isClaimed)
|
self.getBtn:setActive(not isClaimed)
|
||||||
if not isClaimed then
|
if not isClaimed then
|
||||||
self.getBtn:addRedPoint(86, 36, 1)
|
self.getBtn:addRedPoint(70, 30, 1)
|
||||||
else
|
else
|
||||||
self.getBtn:removeRedPoint()
|
self.getBtn:removeRedPoint()
|
||||||
end
|
end
|
||||||
|
|||||||
@ -108,7 +108,7 @@ function MonthlyCardComp:refresh()
|
|||||||
self.rewadCell12:addClickListener(function()
|
self.rewadCell12:addClickListener(function()
|
||||||
ModuleManager.PrivilegeCardManager:getPurchaseCardDailyReward(GConst.ShopConst.PRIVILEGE_CARD_ID.MONTHLY_CARD)
|
ModuleManager.PrivilegeCardManager:getPurchaseCardDailyReward(GConst.ShopConst.PRIVILEGE_CARD_ID.MONTHLY_CARD)
|
||||||
end)
|
end)
|
||||||
self.payBtn:addRedPoint(86, 36, 1)
|
self.payBtn:addRedPoint(70, 30, 1)
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
self.descTx5:setText(I18N:getGlobalText(I18N.GlobalConst.MONTHLY_CARD_13))
|
self.descTx5:setText(I18N:getGlobalText(I18N.GlobalConst.MONTHLY_CARD_13))
|
||||||
|
|||||||
@ -8,7 +8,7 @@ function PrivilegeMainUI:onPressBackspace()
|
|||||||
self:closeUI()
|
self:closeUI()
|
||||||
end
|
end
|
||||||
|
|
||||||
function PrivilegeMainUI:currencyParams()
|
function PrivilegeMainUI:getCurrencyParams()
|
||||||
local params = {}
|
local params = {}
|
||||||
params.showType = GConst.CURRENCY_TYPE.HORIZONTAL
|
params.showType = GConst.CURRENCY_TYPE.HORIZONTAL
|
||||||
params.itemIds = {
|
params.itemIds = {
|
||||||
@ -144,7 +144,7 @@ function PrivilegeMainUI:updateFreeDailyRewards(offsetY)
|
|||||||
end
|
end
|
||||||
|
|
||||||
self.freeDailyRewards:setAnchoredPositionY(offsetY)
|
self.freeDailyRewards:setAnchoredPositionY(offsetY)
|
||||||
offsetY = offsetY - 204
|
offsetY = offsetY - 250
|
||||||
|
|
||||||
local cell = self.freeDailyRewards:addLuaComponent(GConst.ShopConst.PRIVILEGE_COMP.FREE_DAILY_REWARDS)
|
local cell = self.freeDailyRewards:addLuaComponent(GConst.ShopConst.PRIVILEGE_COMP.FREE_DAILY_REWARDS)
|
||||||
cell:refresh()
|
cell:refresh()
|
||||||
@ -163,7 +163,7 @@ function PrivilegeMainUI:updateAdCard(offsetY)
|
|||||||
end
|
end
|
||||||
|
|
||||||
self.adCard:setAnchoredPositionY(offsetY)
|
self.adCard:setAnchoredPositionY(offsetY)
|
||||||
offsetY = offsetY - 386
|
offsetY = offsetY - 440
|
||||||
|
|
||||||
local cell = self.adCard:addLuaComponent(GConst.ShopConst.PRIVILEGE_COMP.AD_CARD)
|
local cell = self.adCard:addLuaComponent(GConst.ShopConst.PRIVILEGE_COMP.AD_CARD)
|
||||||
cell:refresh()
|
cell:refresh()
|
||||||
@ -182,7 +182,7 @@ function PrivilegeMainUI:updateMonthlyCard(offsetY)
|
|||||||
end
|
end
|
||||||
|
|
||||||
self.monthlyCard:setAnchoredPositionY(offsetY)
|
self.monthlyCard:setAnchoredPositionY(offsetY)
|
||||||
offsetY = offsetY - 456
|
offsetY = offsetY - 450
|
||||||
|
|
||||||
self.monthlyCardComp = self.monthlyCard:addLuaComponent(GConst.ShopConst.PRIVILEGE_COMP.MONTHLY_CARD)
|
self.monthlyCardComp = self.monthlyCard:addLuaComponent(GConst.ShopConst.PRIVILEGE_COMP.MONTHLY_CARD)
|
||||||
self.monthlyCardComp:refresh()
|
self.monthlyCardComp:refresh()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user