【ios推荐】寻宝报错,白片修复

dev_chengFeng
gaoxin 2021-04-23 10:01:42 +08:00
parent f1c10a99e9
commit 692e912596
3 changed files with 7 additions and 4 deletions

View File

@ -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

View File

@ -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")

View File

@ -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")