From fc26bf5c5deab7fc3577deb4cf9f9f3f5c1e48d1 Mon Sep 17 00:00:00 2001 From: yuanshuai <243578945@qq.com> Date: Fri, 7 Apr 2023 10:46:39 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A5=9E=E5=85=B5bug=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../~Lua/Modules/GodWeapon/GodWeaponInfoPanel.lua | 5 +++++ .../~Lua/Modules/GodWeapon/GodWeaponUpPanel.lua | 1 - 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Assets/ManagedResources/~Lua/Modules/GodWeapon/GodWeaponInfoPanel.lua b/Assets/ManagedResources/~Lua/Modules/GodWeapon/GodWeaponInfoPanel.lua index 2cec0c913b..3f5a1c3667 100644 --- a/Assets/ManagedResources/~Lua/Modules/GodWeapon/GodWeaponInfoPanel.lua +++ b/Assets/ManagedResources/~Lua/Modules/GodWeapon/GodWeaponInfoPanel.lua @@ -102,6 +102,11 @@ function this:OnOpen(_data) this.UpdateWin(_data) end +function this:OnShow() + local newData=GodWeaponManager.GetSingleWeaponData(godwData.Did) + this.UpdateWin(newData) +end + function this.UpdateWin(_data) if _data.point and _data.point>0 then this.unloadBtn.gameObject:SetActive(true) diff --git a/Assets/ManagedResources/~Lua/Modules/GodWeapon/GodWeaponUpPanel.lua b/Assets/ManagedResources/~Lua/Modules/GodWeapon/GodWeaponUpPanel.lua index ca59118312..dc507eb367 100644 --- a/Assets/ManagedResources/~Lua/Modules/GodWeapon/GodWeaponUpPanel.lua +++ b/Assets/ManagedResources/~Lua/Modules/GodWeapon/GodWeaponUpPanel.lua @@ -72,7 +72,6 @@ function this:BindEvent() local newWarPower = FormationManager.GetFormationPower(FormationTypeDef.FORMATION_NORMAL) --飘战力 PokemonManager.PiaoWarPowerChange(oldWarPower,newWarPower) - Game.GlobalEvent:DispatchEvent(GameEvent.GodWeapon.RefreshGodWeaponInfoPanel,godWeaponData) end) else PopupTipPanel.ShowTip("道具不足")