宝物强化界面修改

onepiece_demo_arena
wangzhenxing 2024-01-18 14:19:29 +08:00
parent e8b53ed1fb
commit a63f2cc895
2 changed files with 696 additions and 818 deletions

View File

@ -18,8 +18,8 @@ function EquipTreasureStrongPopup:InitComponent()
this.spLoader = SpriteLoader.New()
this.Image2 = Util.GetGameObject(self.transform, "bg/Image")
this.content = Util.GetGameObject(self.transform, "bg/content")
this.btnBack= Util.GetGameObject(this.content,"btnBack")
this.titleTxt=Util.GetGameObject(this.content,"name"):GetComponent("Text")
this.btnBack= Util.GetGameObject(self.transform,"bg/btnBack")
this.titleTxt=Util.GetGameObject(self.transform,"bg/name"):GetComponent("Text")
this.itemPre = Util.GetGameObject(this.content,"itemView")
this.firstScroll=Util.GetGameObject(this.content,"firstScroll")
this.secondScroll=Util.GetGameObject(this.content,"secondScroll")
@ -248,6 +248,7 @@ function EquipTreasureStrongPopup:RefreshRedPoint(delta,isRefreshTabRed)
else
this.selectText.text="神 应"
end
this.selectText.gameObject:SetActive(false)
-- this.selectText.text = type == 1 and "强 化" or "精 炼"
this.select.transform.localScale = Vector3.one
this.select.gameObject:SetActive(true)
@ -548,8 +549,8 @@ end
function this.SetBtnSelect(_parObj)
this.selectBtn.transform:SetParent(_parObj.transform)
this.selectBtn.transform.localScale = Vector3.one
this.selectBtn.transform.localPosition=Vector3.zero
this.selectBtn.transform:SetSiblingIndex(1)
this.selectBtn.transform.localPosition=Vector3.New(0,-7,0)
this.selectBtn.transform:SetSiblingIndex(0)
end
--界面关闭时调用(用于子类重写)