【神将升级】满级还显示升级按钮
parent
4077e33390
commit
1933ffa809
|
@ -60,6 +60,7 @@ function RoleInfoLayout:InitComponent()
|
||||||
this.itemPre=Util.GetGameObject(self.gameObject,"upLv/itemPre")
|
this.itemPre=Util.GetGameObject(self.gameObject,"upLv/itemPre")
|
||||||
this.itemGrid=Util.GetGameObject(self.gameObject,"upLv/itemGrid")
|
this.itemGrid=Util.GetGameObject(self.gameObject,"upLv/itemGrid")
|
||||||
this.upLvBtn=Util.GetGameObject(self.gameObject,"upLvBtn")
|
this.upLvBtn=Util.GetGameObject(self.gameObject,"upLvBtn")
|
||||||
|
|
||||||
this.upLvBtnRedPoint=Util.GetGameObject(self.gameObject,"upLvBtn/redPoint")
|
this.upLvBtnRedPoint=Util.GetGameObject(self.gameObject,"upLvBtn/redPoint")
|
||||||
this.upLvTrigger = Util.GetEventTriggerListener(this.upLvBtn)
|
this.upLvTrigger = Util.GetEventTriggerListener(this.upLvBtn)
|
||||||
|
|
||||||
|
@ -221,11 +222,13 @@ function this:UpdateHeroUpLvAndBreakMaterialShow()
|
||||||
if curHeroData.lv>=HeroManager.heroLvEnd[curHeroData.heroConfig.Id] then
|
if curHeroData.lv>=HeroManager.heroLvEnd[curHeroData.heroConfig.Id] then
|
||||||
this.noUpLvText:SetActive(true)
|
this.noUpLvText:SetActive(true)
|
||||||
this.upLv:SetActive(false)
|
this.upLv:SetActive(false)
|
||||||
|
this.upLvBtn:SetActive(false)
|
||||||
this.upLvBtn:GetComponent("RectTransform").anchoredPosition = Vector2.New(322.3, -90)
|
this.upLvBtn:GetComponent("RectTransform").anchoredPosition = Vector2.New(322.3, -90)
|
||||||
else
|
else
|
||||||
Util.ClearChild(this.itemGrid.transform)
|
Util.ClearChild(this.itemGrid.transform)
|
||||||
this.noUpLvText:SetActive(false)
|
this.noUpLvText:SetActive(false)
|
||||||
this.upLv:SetActive(true)
|
this.upLv:SetActive(true)
|
||||||
|
this.upLvBtn:SetActive(true)
|
||||||
this.upLvBtn:GetComponent("RectTransform").anchoredPosition = Vector2.New(322.3, -90)
|
this.upLvBtn:GetComponent("RectTransform").anchoredPosition = Vector2.New(322.3, -90)
|
||||||
isUpLvMaterials=true
|
isUpLvMaterials=true
|
||||||
for i = 1, #costItemList do
|
for i = 1, #costItemList do
|
||||||
|
@ -268,6 +271,7 @@ function this:UpdateHeroUpLvAndBreakMaterialShow()
|
||||||
if isGongMing then
|
if isGongMing then
|
||||||
this.gongmingText:SetActive(true)
|
this.gongmingText:SetActive(true)
|
||||||
this.upLv:SetActive(false)
|
this.upLv:SetActive(false)
|
||||||
|
this.upLvBtn:SetActive(false)
|
||||||
this.noUpLvText:SetActive(false)
|
this.noUpLvText:SetActive(false)
|
||||||
this.upLvBtn:GetComponent("RectTransform").anchoredPosition = Vector2.New(2098, -42.00134 )
|
this.upLvBtn:GetComponent("RectTransform").anchoredPosition = Vector2.New(2098, -42.00134 )
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in New Issue