底图修改提交

dev_chengFeng
jiaoyangna 2021-06-30 16:17:50 +08:00
parent a4281ed031
commit 36cb3db3af
2 changed files with 6 additions and 5 deletions

View File

@ -1971,7 +1971,7 @@ GameObject:
- component: {fileID: 2322427136860863973}
- component: {fileID: 5415884420512440747}
m_Layer: 5
m_Name: pos
m_Name: posBg
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0

View File

@ -21,9 +21,10 @@ function RewardItemSingleShowPopup:InitComponent()
this.itemPos = Util.GetGameObject(self.transform, "bgPanel/armor/itemPos")
this.itemView = SubUIManager.Open(SubUIConfig.ItemView,this.itemPos.transform)
this.pos = Util.GetGameObject(self.transform, "bgPanel/armor/pos"):GetComponent("Image")
this.posIcon = Util.GetGameObject(this.pos.transform, "PosImage"):GetComponent("Image")
this.posText = Util.GetGameObject(this.pos.transform, "PosText"):GetComponent("Text")
this.pos = Util.GetGameObject(self.transform, "bgPanel/armor/pos")
this.posBgImage = Util.GetGameObject(this.pos, "posBg"):GetComponent("Image")
this.posIcon = Util.GetGameObject(this.pos, "PosImage"):GetComponent("Image")
this.posText = Util.GetGameObject(this.pos, "PosText"):GetComponent("Text")
this.armorType = Util.GetGameObject(self.transform, "bgPanel/armor/info/armorType"):GetComponent("Text")
this.armorLanTuNum = Util.GetGameObject(self.transform, "armor/info/armorLanTuNum"):GetComponent("Text")
@ -311,7 +312,7 @@ function RewardItemSingleShowPopup:OnShow()
this.btnSure:SetActive(false)
this.equipQuaText.gameObject:SetActive(false)
this.pos.gameObject:SetActive(true)
this.pos.sprite = this.spLoader:LoadSprite(GetHeroPosBgStr(heroConfig.Profession))
this.posBgImage.sprite = this.spLoader:LoadSprite(GetHeroPosBgStr(heroConfig.Profession))
this.armorInfo.gameObject:SetActive(false)
this.armorTitle.gameObject:SetActive(true)
this.armorDesc.gameObject:SetActive(true)