diff --git a/Assets/ManagedResources/~Lua/Modules/FindTreasure/FindTreasureDispatchPanel.lua b/Assets/ManagedResources/~Lua/Modules/FindTreasure/FindTreasureDispatchPanel.lua index 7d4ca92bed..8a77332f42 100644 --- a/Assets/ManagedResources/~Lua/Modules/FindTreasure/FindTreasureDispatchPanel.lua +++ b/Assets/ManagedResources/~Lua/Modules/FindTreasure/FindTreasureDispatchPanel.lua @@ -1,4 +1,4 @@ -starNumIamage = { +starNumIamage = { [1] = "x_xb_shuzi_01", [2] = "x_xb_shuzi_02", [3] = "x_xb_shuzi_03", @@ -45,7 +45,7 @@ function FindTreasureDispatchPanel:InitComponent() for i = 0, 6 do tabs[i] = Util.GetGameObject(self.transform, "Tabs/grid/Btn" .. i) if tabsImg[i + 1] then - Util.GetGameObject(tabs[i], "Image"):GetComponent("Image").sprite = this.spLoader:LoadSprite(tabsImg[i + 1]) + Util.GetGameObject(tabs[i], "Image"):GetComponent("Image").sprite = self.spLoader:LoadSprite(tabsImg[i + 1]) end end diff --git a/Assets/ManagedResources/~Lua/Modules/MonsterCamp/MonsterCampPanel.lua b/Assets/ManagedResources/~Lua/Modules/MonsterCamp/MonsterCampPanel.lua index 692ad51c27..74e4447bd0 100644 --- a/Assets/ManagedResources/~Lua/Modules/MonsterCamp/MonsterCampPanel.lua +++ b/Assets/ManagedResources/~Lua/Modules/MonsterCamp/MonsterCampPanel.lua @@ -1,4 +1,4 @@ -require("Base/BasePanel") +require("Base/BasePanel") MonsterCampPanel = Inherit(BasePanel) local this = MonsterCampPanel local orginLayer @@ -15,7 +15,9 @@ function MonsterCampPanel:InitComponent() this.nextWave = Util.GetGameObject(self.gameObject, "Bg/btnWave") this.btnRank = Util.GetGameObject(self.gameObject, "Bg/btnRank") this.btnReward = Util.GetGameObject(self.gameObject, "Bg/btnReward") + this.btnRewardImg = Util.GetGameObject(this.btnReward, "Image"):GetComponent("Image") this.btnRewardRed = Util.GetGameObject(this.btnReward, "redpoint") + this.btnRewardImg.sprite = this.spLoader:LoadSprite("g_guanka_tongguanjiangli_zh") -- 跳过战斗 this.battleJumpRoot = Util.GetGameObject(self.gameObject, "passBattle") this.battleToggleBg = Util.GetGameObject(this.battleJumpRoot, "Background") diff --git a/Assets/ManagedResources/~Lua/Modules/Power/GiveMePowerPanel.lua b/Assets/ManagedResources/~Lua/Modules/Power/GiveMePowerPanel.lua index 020a6196c2..72ac5bc5e7 100644 --- a/Assets/ManagedResources/~Lua/Modules/Power/GiveMePowerPanel.lua +++ b/Assets/ManagedResources/~Lua/Modules/Power/GiveMePowerPanel.lua @@ -1,4 +1,4 @@ - + --- 界面逻辑 require("Base/BasePanel") @@ -100,6 +100,7 @@ function GiveMePowerPanel:InitComponent() this.heroPanel = Util.GetGameObject(this.transform, "content/hero") this.forceValue = Util.GetGameObject(this.heroPanel, "powerBtn/value"):GetComponent("Text") + Util.GetGameObject(this.gameObject, "powerBtn"):GetComponent("Image").sprite = this.spLoader:LoadSprite("t_tongyong-zhanli_zh") this.groupBox = Util.GetGameObject(this.heroPanel, "demons") this.heroChoose = Util.GetGameObject(this.heroPanel, "demons/choose")