From 9d97844beaabb3a60c66cd11610315b20ca57e15 Mon Sep 17 00:00:00 2001 From: puxuan <413323644@qq.com> Date: Mon, 27 Oct 2025 11:51:20 +0800 Subject: [PATCH] =?UTF-8?q?=E9=82=AE=E7=AE=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lua/app/ui/mail/cell/mail_cell.lua | 38 +++++++++++++++--------------- lua/app/ui/mail/mail_ui.lua | 2 +- 2 files changed, 20 insertions(+), 20 deletions(-) diff --git a/lua/app/ui/mail/cell/mail_cell.lua b/lua/app/ui/mail/cell/mail_cell.lua index dedc2637..75f14f55 100644 --- a/lua/app/ui/mail/cell/mail_cell.lua +++ b/lua/app/ui/mail/cell/mail_cell.lua @@ -19,22 +19,22 @@ function MailCell:refresh(entity) local readNode = uiMap["mail_cell.bg_read"] local isReadType = false if entity:getMailType() == GConst.MailConst.MAIL_TYPE.CUSTOM then - normalNode:setVisible(false) - adNode:setVisible(false) - readNode:setVisible(true) + normalNode:setActive(false) + adNode:setActive(false) + readNode:setActive(true) isReadType = true elseif entity:getMailType() == GConst.MailConst.MAIL_TYPE.AD then - normalNode:setVisible(false) - adNode:setVisible(true) - readNode:setVisible(false) + normalNode:setActive(false) + adNode:setActive(true) + readNode:setActive(false) elseif entity:getMailType() == GConst.MailConst.MAIL_TYPE.NORMAL then - normalNode:setVisible(true) - adNode:setVisible(false) - readNode:setVisible(false) + normalNode:setActive(true) + adNode:setActive(false) + readNode:setActive(false) elseif entity:getMailType() == GConst.MailConst.MAIL_TYPE.READ then - normalNode:setVisible(false) - adNode:setVisible(false) - readNode:setVisible(true) + normalNode:setActive(false) + adNode:setActive(false) + readNode:setActive(true) isReadType = true end GFunc.setAdsSprite(uiMap["mail_cell.bg_ad.claim_btn.ad"]) @@ -62,7 +62,7 @@ function MailCell:refresh(entity) end) self.icon = icon end - uiMap["mail_cell.new"]:setVisible(entity:showNew()) + uiMap["mail_cell.new"]:setActive(entity:showNew()) uiMap["mail_cell.desc"]:setText(entity:getMailName()) uiMap["mail_cell.time"]:setText(entity:getRemainCdStr()) local rewardBg = uiMap["mail_cell.reward_bg"] @@ -73,16 +73,16 @@ function MailCell:refresh(entity) local rewards = entity:getRewards() local showCheck = entity:isReceived() if rewards[2] then - rewardBg:setVisible(true) - self.rewardCell:getBaseObject():setVisible(false) - mask:setVisible(showCheck) + rewardBg:setActive(true) + self.rewardCell:setActive(false) + mask:setActive(showCheck) else - rewardBg:setVisible(false) + rewardBg:setActive(false) if entity:haveReward() then - self.rewardCell:getBaseObject():setVisible(true, 0.7) + self.rewardCell:setActive(true) self.rewardCell:refreshByConfig(rewards[1], showCheck, showCheck) else - self.rewardCell:getBaseObject():setVisible(false) + self.rewardCell:setActive(false) end end if isReadType then diff --git a/lua/app/ui/mail/mail_ui.lua b/lua/app/ui/mail/mail_ui.lua index d41ff175..4fb3eb67 100644 --- a/lua/app/ui/mail/mail_ui.lua +++ b/lua/app/ui/mail/mail_ui.lua @@ -69,7 +69,7 @@ function MailUI:_display() self.root:addClickListener(function() self:closeUI() end) - uiMap["mail_ui.bg.title_bg.title_tx"]:setText(I18N:getGlobalText(I18N.GlobalConst.MAIL_TITLE)) + uiMap["mail_ui.bg.title_tx"]:setText(I18N:getGlobalText(I18N.GlobalConst.MAIL_TITLE)) uiMap["mail_ui.bg.btn_delect.btn_tx"]:setText(I18N:getGlobalText(I18N.GlobalConst.BTN_DELETE_ALL_READ_MAIL)) uiMap["mail_ui.bg.btn_claimed.btn_tx"]:setText(I18N:getGlobalText(I18N.GlobalConst.BTN_CLAIM_ALL))