From 666e6f51a33069fe1d5d271b0b86eaf5d89cc2d0 Mon Sep 17 00:00:00 2001 From: gaoxin Date: Tue, 7 Dec 2021 17:10:43 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E5=BC=80=E6=9C=8D=E7=A6=8F=E5=88=A9?= =?UTF-8?q?=E3=80=91=E6=9C=80=E5=90=8E=E4=B8=80=E6=A1=A3=E5=A5=96=E5=8A=B1?= =?UTF-8?q?=E5=8F=98=E6=9B=B4=E4=B8=BA=E5=AF=BB=E4=BB=99=E7=8E=89=EF=BC=8C?= =?UTF-8?q?=E5=A4=96=E9=9D=A2=E5=85=A5=E5=8F=A3=E8=BF=98=E6=98=AF=E7=8C=B4?= =?UTF-8?q?=E5=AD=90=E5=9B=BE=E7=89=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../~Lua/Modules/Fight/FightPointPassMainPanel.lua | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/Assets/ManagedResources/~Lua/Modules/Fight/FightPointPassMainPanel.lua b/Assets/ManagedResources/~Lua/Modules/Fight/FightPointPassMainPanel.lua index 0cfb10129a..14ba0e640d 100644 --- a/Assets/ManagedResources/~Lua/Modules/Fight/FightPointPassMainPanel.lua +++ b/Assets/ManagedResources/~Lua/Modules/Fight/FightPointPassMainPanel.lua @@ -944,6 +944,7 @@ local OpenSeverWelfareRewardShow = { [19] = {image1 = "r_guanka_guankajianglishenfu",image2 = "r_guanka_guankajiangli02_zh"}, [81128] = {image1 = "r_guanka_guankajianglibaoxiang",image2 = "r_guanka_guankajiangli03_zh"}, [11023] = {image1 = "r_guanka_guankajianglishunwukong",image2 = "r_guanka_guankajiangli04_zh"}, + [87] = {image1 = "r_Material_Mineral_0003",image2 = ""}, } function this.UpdateOpenSeverWelfare() local mainLevelConfig = ConfigManager.GetConfig(ConfigName.MainLevelConfig) @@ -965,9 +966,18 @@ function this.UpdateOpenSeverWelfare() end this.btnOpenSeverWelfare:SetActive(isShowBtn) if not curMissionConfig then return end + -- 奖励图 this.OpenSeverWelfareicon.sprite = this.spLoader:LoadSprite(OpenSeverWelfareRewardShow[curMissionConfig.Reward[1][1]].image1) - this.OpenSeverWelfareiconText.sprite = this.spLoader:LoadSprite(OpenSeverWelfareRewardShow[curMissionConfig.Reward[1][1]].image2) this.OpenSeverWelfareicon:SetNativeSize() + -- 文字 + local imgName2 = OpenSeverWelfareRewardShow[curMissionConfig.Reward[1][1]].image2 + if imgName2 and imgName2 ~= "" then + this.OpenSeverWelfareiconText.sprite = this.spLoader:LoadSprite(imgName2) + this.OpenSeverWelfareiconText.gameObject:SetActive(true) + else + this.OpenSeverWelfareiconText.gameObject:SetActive(false) + end + -- local curPassLevelSortId = FightPointPassManager.lastPassFightId ~= FightPointPassManager.curOpenFight and mainLevelConfig[FightPointPassManager.lastPassFightId].SortId or 0 local getRewardLevelSortId = mainLevelConfig[curMissionConfig.Values[1][1]].SortId this.OpenSeverWelfareRed:SetActive(curPassLevelSortId >= getRewardLevelSortId)