diff --git a/Assets/ManagedResources/~Lua/Modules/Practice/PracticePanel.lua b/Assets/ManagedResources/~Lua/Modules/Practice/PracticePanel.lua index 16f9dc686e..2d197ee738 100644 --- a/Assets/ManagedResources/~Lua/Modules/Practice/PracticePanel.lua +++ b/Assets/ManagedResources/~Lua/Modules/Practice/PracticePanel.lua @@ -60,6 +60,7 @@ function Practice:InitComponent() self.mask = Util.GetGameObject(self.gameObject, "mask") self.treeBtn = Util.GetGameObject(self.gameObject, "Btns/treeBtn") + Util.GetGameObject(self.treeBtn,"treebtn"):GetComponent("Image").sprite = this.spLoader:LoadSprite("j_jianmushenshu_anniu_01_zh") self.treeRed = Util.GetGameObject(self.treeBtn, "redPoint") end diff --git a/Assets/ManagedResources/~Lua/Modules/RoleInfo/RoleEquipPanel.lua b/Assets/ManagedResources/~Lua/Modules/RoleInfo/RoleEquipPanel.lua index 42f462d7a8..dcdaf0b62b 100644 --- a/Assets/ManagedResources/~Lua/Modules/RoleInfo/RoleEquipPanel.lua +++ b/Assets/ManagedResources/~Lua/Modules/RoleInfo/RoleEquipPanel.lua @@ -150,6 +150,7 @@ function RoleEquipPanel:InitComponent() end this.treeBtn = Util.GetGameObject(self.gameObject, "treeBtn") + Util.GetGameObject(this.treeBtn,"treebtn"):GetComponent("Image").sprite = this.spLoader:LoadSprite("j_jianmushenshu_anniu_01_zh") Util.AddClick(this.treeBtn, function() if ActTimeCtrlManager.SingleFuncState(FUNCTION_OPEN_TYPE.SACREDTREE) then UIManager.OpenPanel(UIName.SacredTreePanel)