From e8efc2e7e6fa8cfdfed7a485f77657d26fab1dac Mon Sep 17 00:00:00 2001 From: yuanshuai <243578945@qq.com> Date: Thu, 28 Apr 2022 16:49:18 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B7=A8=E6=9C=8D=E6=88=98=E7=95=8C=E9=9D=A2?= =?UTF-8?q?=E8=86=9C=E6=8B=9C=E6=8C=89=E9=92=AE=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../~Lua/Modules/JumpServer/JumpServerHightLadderPanel.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Assets/ManagedResources/~Lua/Modules/JumpServer/JumpServerHightLadderPanel.lua b/Assets/ManagedResources/~Lua/Modules/JumpServer/JumpServerHightLadderPanel.lua index 1a6abc6bec..e011ffc041 100644 --- a/Assets/ManagedResources/~Lua/Modules/JumpServer/JumpServerHightLadderPanel.lua +++ b/Assets/ManagedResources/~Lua/Modules/JumpServer/JumpServerHightLadderPanel.lua @@ -266,6 +266,12 @@ function this.ShowSingleData(go,data,i) Util.GetGameObject(go, "sdBtn/Text"):SetActive(not data.hadProud) Util.GetGameObject(go, "sdBtn/dianzanImage/Text"):GetComponent("Text").text = data.worshipTime dianzanImage:SetActive(data.hadProud) + if data.hadProud then + sdBtn:GetComponent("Image").sprite = this.spLoader:LoadSprite("r_hero_button_001") + else + sdBtn:GetComponent("Image").sprite = this.spLoader:LoadSprite("f_feishengshi_huanganniu") + end + Util.AddOnceClick(sdBtn,function() if not data.hadProud then