From f2ceeca55d98c5bf3ccb986fa64c199211cdcddd Mon Sep 17 00:00:00 2001 From: gaoxin Date: Mon, 1 Feb 2021 19:50:38 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E6=9C=AC=E5=9C=B0=E5=8C=96=E3=80=91?= =?UTF-8?q?=E6=9C=8D=E5=8A=A1=E5=99=A8=E5=8F=91=E9=80=81=E7=9A=84=E9=94=99?= =?UTF-8?q?=E8=AF=AF=E6=B6=88=E6=81=AF=E6=9C=AA=E7=BF=BB=E8=AF=91=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/ManagedResources/~Lua/Logic/Network.lua | 4 ++-- .../ManagedResources/~Lua/Modules/Message/PopupTipPanel.lua | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Assets/ManagedResources/~Lua/Logic/Network.lua b/Assets/ManagedResources/~Lua/Logic/Network.lua index 4e3ba7c5a2..4f2be1fde3 100644 --- a/Assets/ManagedResources/~Lua/Logic/Network.lua +++ b/Assets/ManagedResources/~Lua/Logic/Network.lua @@ -225,9 +225,9 @@ function Network:ReceiveErrorInfo(buffer) local errorCfg = ConfigManager.TryGetConfigData(ConfigName.ErrorCodeHint, msg.errCode) if errorCfg then if errorCfg.ShowType == 1 then --tips - PopupTipPanel.ShowTip(string.format(errorCfg.Desc, unpack(msg.errParams))) + PopupTipPanel.ShowTip(string.format(GetLanguageStrById(errorCfg.Desc), unpack(msg.errParams))) elseif errorCfg.ShowType == 2 then --弹窗 - local contexts = string.split(errorCfg.Desc, "#") --标题#内容 + local contexts = string.split(GetLanguageStrById(errorCfg.Desc), "#") --标题#内容 MsgPanel.ShowOne(string.format(contexts[2], unpack(msg.errParams)), nil, nil, contexts[1]) else PopupTipPanel.ShowTip(msg.errMsg) diff --git a/Assets/ManagedResources/~Lua/Modules/Message/PopupTipPanel.lua b/Assets/ManagedResources/~Lua/Modules/Message/PopupTipPanel.lua index d929263021..e778e23426 100644 --- a/Assets/ManagedResources/~Lua/Modules/Message/PopupTipPanel.lua +++ b/Assets/ManagedResources/~Lua/Modules/Message/PopupTipPanel.lua @@ -44,7 +44,7 @@ function PopupTipPanel.ShowTip(str) go.transform:SetParent(PopupTipPanel.transform) go.transform.localScale = Vector3.one go.transform.localPosition=Vector3.zero - Util.GetGameObject (go, "Text"):GetComponent("Text").text = str + Util.GetGameObject (go, "Text"):GetComponent("Text").text = GetLanguageStrById(str) PlayUIAnim(go, function () go.transform:SetParent(PopupTipPanel.cache.transform) itemListPrefab:Push(go)