From ba655fa2570be0c8670c32c5a1de2acbdb96cf8f Mon Sep 17 00:00:00 2001 From: puxuan <413323644@qq.com> Date: Mon, 22 Sep 2025 10:56:34 +0800 Subject: [PATCH] fix bug --- lua/app/ui/common/power_toast_manager.lua | 4 ++-- lua/app/ui/summon/cell/summon_reward_cell.lua | 18 +++++++++--------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/lua/app/ui/common/power_toast_manager.lua b/lua/app/ui/common/power_toast_manager.lua index 9110dd41..40a51c61 100755 --- a/lua/app/ui/common/power_toast_manager.lua +++ b/lua/app/ui/common/power_toast_manager.lua @@ -27,13 +27,13 @@ function PowerToastManager:showToast(before, after, posY) self.bg = uiMap["power_change_toast.bg"] self.powerTx = uiMap["power_change_toast.bg.power_tx"] self.powerChange = uiMap["power_change_toast.bg.power_change_tx"] - -- self.powerSpine = uiMap["power_change_toast.bg.ui_spine_obj"] + self.powerSpine = uiMap["power_change_toast.bg.ui_spine_obj"] -- self.effect1 = uiMap["power_change_toast.content.vfx_ui_zhanli_b01"] -- self.effect2 = uiMap["power_change_toast.content.vfx_ui_zhanli_b03"] self:showEffect(false) self:showModuleUnlockAppearAnim() - -- self.powerSpine:playAnim("idle", false, true) + self.powerSpine:playAnim("idle", false, true) end) end diff --git a/lua/app/ui/summon/cell/summon_reward_cell.lua b/lua/app/ui/summon/cell/summon_reward_cell.lua index 3069c141..d9a986ff 100755 --- a/lua/app/ui/summon/cell/summon_reward_cell.lua +++ b/lua/app/ui/summon/cell/summon_reward_cell.lua @@ -10,9 +10,9 @@ function SummonRewardCell:init() self.bg = uiMap["summon_reward_cell.bg"] self.bg1 = uiMap["summon_reward_cell.bg1"] self.effectQlts = {} - self.effectQlts[2] = uiMap["summon_reward_cell.bg1.vfx_b13_chouka_lan_b01"] - self.effectQlts[3] = uiMap["summon_reward_cell.bg1.vfx_b13_chouka_zi_b01"] - self.effectQlts[4] = uiMap["summon_reward_cell.bg1.vfx_b13_chouka_cheng_b01"] + self.effectQlts[3] = uiMap["summon_reward_cell.bg1.vfx_b13_chouka_lan_b01"] + self.effectQlts[4] = uiMap["summon_reward_cell.bg1.vfx_b13_chouka_zi_b01"] + self.effectQlts[5] = uiMap["summon_reward_cell.bg1.vfx_b13_chouka_cheng_b01"] end function SummonRewardCell:getEffectQlts() return self.effectQlts @@ -22,9 +22,9 @@ function SummonRewardCell:refresh(reward, index, parentUI) if self.effectQlts[5] then self.effectQlts[5]:setActive(false) end + self.effectQlts[5]:setActive(false) self.effectQlts[4]:setActive(false) self.effectQlts[3]:setActive(false) - self.effectQlts[2]:setActive(false) local cfg = DataManager.HeroData:getHeroConfig(reward.item.id) self.imgIcon:setSprite(GConst.ATLAS_PATH.ICON_HERO_SUMMON, tostring(cfg.icon)) self.bg:setSprite(GConst.ATLAS_PATH.ICON_HERO_SUMMON, "summon_card_b_" .. cfg.qlt) @@ -38,7 +38,7 @@ function SummonRewardCell:refresh(reward, index, parentUI) end, 0.3) end function SummonRewardCell:playEffect(qlt) - if qlt == 5 and self.effectQlts[5] == nil then + if qlt == 6 and self.effectQlts[6] == nil then local tranInfo = self.imgIcon:getComponent(GConst.TYPEOF_UNITY_CLASS.TRANSFORM).parent if tranInfo then local infoBase = UIPrefabObject:create() @@ -46,11 +46,11 @@ function SummonRewardCell:playEffect(qlt) infoBase:initPrefabHelper() EffectManager:loadUIEffectAsync("assets/prefabs/effects/ui/vfx_b13_chouka_hong_b01.prefab", self.patentUI, infoBase, 0, function(obj) - if self.effectQlts[5] then - self.effectQlts[5]:destroy() - self.effectQlts[5] = nil + if self.effectQlts[6] then + self.effectQlts[6]:destroy() + self.effectQlts[6] = nil end - self.effectQlts[5] = obj + self.effectQlts[6] = obj end) end else