From 8eb823937e6be8cca68e28bb3f4cbff9df4f1557 Mon Sep 17 00:00:00 2001 From: gaoxin Date: Fri, 27 Nov 2020 14:55:48 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E7=B3=BB=E7=BB=9F=E6=B6=88=E6=81=AF?= =?UTF-8?q?=E3=80=91=E6=9A=82=E6=97=B6=E5=B1=8F=E8=94=BD=E6=B3=95=E5=AE=9D?= =?UTF-8?q?=E8=AF=A6=E6=83=85=E7=9A=84=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../~Lua/Modules/Chat/ChatPanel.lua | 2 +- .../~Lua/Modules/Popup/TalismanInfoPopup.lua | 15 +++++---------- 2 files changed, 6 insertions(+), 11 deletions(-) diff --git a/Assets/ManagedResources/~Lua/Modules/Chat/ChatPanel.lua b/Assets/ManagedResources/~Lua/Modules/Chat/ChatPanel.lua index 4ab85c755b..a3f122b9b9 100644 --- a/Assets/ManagedResources/~Lua/Modules/Chat/ChatPanel.lua +++ b/Assets/ManagedResources/~Lua/Modules/Chat/ChatPanel.lua @@ -360,7 +360,7 @@ function this.SystemItemAdapter(node, data, isShowTime) elseif itemDataConFig.ItemType == ItemType.Equip then UIManager.OpenPanel(UIName.HandBookEquipInfoPanel, data.itemId) elseif itemDataConFig.ItemType == ItemType.Talisman then - UIManager.OpenPanel(UIName.TalismanInfoPopup, data.itemId, 2, 1) + -- UIManager.OpenPanel(UIName.TalismanInfoPopup, data.itemId, 2, 1) else UIManager.OpenPanel(UIName.RewardItemSingleShowPopup, data.itemId) end diff --git a/Assets/ManagedResources/~Lua/Modules/Popup/TalismanInfoPopup.lua b/Assets/ManagedResources/~Lua/Modules/Popup/TalismanInfoPopup.lua index c39da19935..262be80e62 100644 --- a/Assets/ManagedResources/~Lua/Modules/Popup/TalismanInfoPopup.lua +++ b/Assets/ManagedResources/~Lua/Modules/Popup/TalismanInfoPopup.lua @@ -58,13 +58,11 @@ end function TalismanInfoPopup:OnOpen(...) local args={...} curHeroData=args[1] - Type = args[2] + if args[2] then + Type=1 + curHeroConfig=args[1] TypeLv = args[3] - -- if args[2] then - -- Type=1 - -- curHeroConfig=args[1] - -- TypeLv=args[3] - -- end + end end function TalismanInfoPopup:OnShow() @@ -87,12 +85,9 @@ function this.Show() if Type==1 then data = ConfigManager.GetConfigData(ConfigName.HeroConfig,curHeroConfig.Id).EquipTalismana--当前法宝数据 data[1]星级 data[2]法宝ID curLv=TypeLv - elseif Type == 2 then - data[2] = curHeroData -- - curLv = TypeLv else data = ConfigManager.GetConfigData(ConfigName.HeroConfig,curHeroData.id).EquipTalismana--当前法宝数据 data[1]星级 data[2]法宝ID - curLv= TypeLv or HeroManager.GetTalismanLv(curHeroData.dynamicId) + curLv=HeroManager.GetTalismanLv(curHeroData.dynamicId) end --当前法宝数据