From 532feae309050f21306cdfc26fbdc61e4e3048c3 Mon Sep 17 00:00:00 2001 From: Fang Date: Mon, 31 Jul 2023 09:57:06 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=AF=E7=BA=BF=E5=9F=BA=E9=87=91=E5=A5=96?= =?UTF-8?q?=E5=8A=B1=E9=A2=86=E5=8F=96=E6=8C=89=E9=92=AE=E6=96=87=E6=A1=88?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lua/app/ui/dungeon_armor/cell/armor_fund_reward_cell.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lua/app/ui/dungeon_armor/cell/armor_fund_reward_cell.lua b/lua/app/ui/dungeon_armor/cell/armor_fund_reward_cell.lua index 45a50267..49a6c155 100644 --- a/lua/app/ui/dungeon_armor/cell/armor_fund_reward_cell.lua +++ b/lua/app/ui/dungeon_armor/cell/armor_fund_reward_cell.lua @@ -62,7 +62,11 @@ function ArmorFundRewardCell:refresh(id) if not self.armorEntity:isMeetFundReward(self.rewardId) or self.armorEntity:isGotFundReward(self.rewardId) then -- 不满足条件 or 已领取 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:setSprite(GConst.ATLAS_PATH.COMMON, "common_btn_grey_2") self.baseObject:setSprite(GConst.ATLAS_PATH.UI_DUGEON_ARMOR, "dungeon_armor_bg_1")