支线基金奖励领取按钮文案修改

This commit is contained in:
Fang 2023-07-31 09:57:06 +08:00
parent 23d9fec3ac
commit 532feae309

View File

@ -62,7 +62,11 @@ function ArmorFundRewardCell:refresh(id)
if not self.armorEntity:isMeetFundReward(self.rewardId) or self.armorEntity:isGotFundReward(self.rewardId) then if not self.armorEntity:isMeetFundReward(self.rewardId) or self.armorEntity:isGotFundReward(self.rewardId) then
-- 不满足条件 or 已领取 -- 不满足条件 or 已领取
self.txBtn:setActive(true) self.txBtn:setActive(true)
self.txBtn:setText(I18N:getGlobalText(I18N.GlobalConst.BTN_CLAIM)) if self.armorEntity:isGotFundReward(self.rewardId) then
self.txBtn:setText(I18N:getGlobalText(I18N.GlobalConst.BTN_DONE))
else
self.txBtn:setText(I18N:getGlobalText(I18N.GlobalConst.BTN_CLAIM))
end
self.btnGet:setTouchEnable(false) self.btnGet:setTouchEnable(false)
self.btnGet:setSprite(GConst.ATLAS_PATH.COMMON, "common_btn_grey_2") self.btnGet:setSprite(GConst.ATLAS_PATH.COMMON, "common_btn_grey_2")
self.baseObject:setSprite(GConst.ATLAS_PATH.UI_DUGEON_ARMOR, "dungeon_armor_bg_1") self.baseObject:setSprite(GConst.ATLAS_PATH.UI_DUGEON_ARMOR, "dungeon_armor_bg_1")