diff --git a/Assets/ManagedResources/Prefabs/UI/Popup/RewardItemSingleShowPopup.prefab b/Assets/ManagedResources/Prefabs/UI/Popup/RewardItemSingleShowPopup.prefab index 5ea687a3e1..d007065208 100644 --- a/Assets/ManagedResources/Prefabs/UI/Popup/RewardItemSingleShowPopup.prefab +++ b/Assets/ManagedResources/Prefabs/UI/Popup/RewardItemSingleShowPopup.prefab @@ -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 diff --git a/Assets/ManagedResources/~Lua/Modules/Popup/RewardItemSingleShowPopup.lua b/Assets/ManagedResources/~Lua/Modules/Popup/RewardItemSingleShowPopup.lua index 8af3478942..b19fc4b965 100644 --- a/Assets/ManagedResources/~Lua/Modules/Popup/RewardItemSingleShowPopup.lua +++ b/Assets/ManagedResources/~Lua/Modules/Popup/RewardItemSingleShowPopup.lua @@ -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)