逍遥游报错修改提交
parent
b6475fb1b1
commit
41966a1487
|
@ -56,8 +56,8 @@ function LikeAbilityPanel:InitComponent()
|
||||||
|
|
||||||
--逍遥游入口
|
--逍遥游入口
|
||||||
self.btnXiaoYao=Util.GetGameObject(self.gameObject,"xiaoyaoBtn")
|
self.btnXiaoYao=Util.GetGameObject(self.gameObject,"xiaoyaoBtn")
|
||||||
self.btnXiaoYaoLock=Util.GetGameObject(self.gameObject,"lock")
|
self.btnXiaoYaoLock=Util.GetGameObject(self.btnXiaoYao,"lock")
|
||||||
self.btnXiaoYaoIcon=Util.GetGameObject(self.gameObject,"Image")
|
self.btnXiaoYaoIcon=Util.GetGameObject(self.btnXiaoYao,"Image")
|
||||||
self.btnXiaoYaoIcon:GetComponent("Image").sprite=self.spLoader:LoadSprite("x_xiaoyaoyou_daanniu_zh")
|
self.btnXiaoYaoIcon:GetComponent("Image").sprite=self.spLoader:LoadSprite("x_xiaoyaoyou_daanniu_zh")
|
||||||
self.xiaoyaoRedPoint=Util.GetGameObject(self.btnXiaoYao,"redPoint")
|
self.xiaoyaoRedPoint=Util.GetGameObject(self.btnXiaoYao,"redPoint")
|
||||||
self.btnXiaoYaoTextPar = Util.GetGameObject(self.btnXiaoYao,"curValue")
|
self.btnXiaoYaoTextPar = Util.GetGameObject(self.btnXiaoYao,"curValue")
|
||||||
|
@ -131,14 +131,14 @@ function LikeAbilityPanel:OnShow()
|
||||||
Util.SetParticleSortLayer(self.effect2,self.sortingOrder + 1)
|
Util.SetParticleSortLayer(self.effect2,self.sortingOrder + 1)
|
||||||
Util.SetParticleSortLayer(self.effect3,self.sortingOrder + 1)
|
Util.SetParticleSortLayer(self.effect3,self.sortingOrder + 1)
|
||||||
if not ActTimeCtrlManager.SingleFuncState(FUNCTION_OPEN_TYPE.XiaoYaoYou) then
|
if not ActTimeCtrlManager.SingleFuncState(FUNCTION_OPEN_TYPE.XiaoYaoYou) then
|
||||||
Util.SetGray(self.btnXiaoYaoIcon,true)
|
Util.SetGray(self.btnXiaoYaoIcon.gameObject,true)
|
||||||
self.xiaoyaoRedPoint.gameObject:SetActive(false)
|
self.xiaoyaoRedPoint.gameObject:SetActive(false)
|
||||||
self.self.btnXiaoYaoTextPar.gameObject:SetActive(false)
|
self.btnXiaoYaoTextPar.gameObject:SetActive(false)
|
||||||
self.btnXiaoYaoLock.gameObject:SetActive(true)
|
self.btnXiaoYaoLock.gameObject:SetActive(true)
|
||||||
else
|
else
|
||||||
Util.SetGray(self.btnXiaoYaoIcon,false)
|
Util.SetGray(self.btnXiaoYaoIcon.gameObject,false)
|
||||||
self.xiaoyaoRedPoint.gameObject:SetActive(true)
|
self.xiaoyaoRedPoint.gameObject:SetActive(true)
|
||||||
self.self.btnXiaoYaoTextPar.gameObject:SetActive(true)
|
self.btnXiaoYaoTextPar.gameObject:SetActive(true)
|
||||||
self.btnXiaoYaoLock.gameObject:SetActive(false)
|
self.btnXiaoYaoLock.gameObject:SetActive(false)
|
||||||
end
|
end
|
||||||
self.btnXiaoYaoText.text=string.format("%d/%d",BagManager.GetItemCountById(UpViewRechargeType.YunYouVle),PrivilegeManager.GetPrivilegeNumber(39))
|
self.btnXiaoYaoText.text=string.format("%d/%d",BagManager.GetItemCountById(UpViewRechargeType.YunYouVle),PrivilegeManager.GetPrivilegeNumber(39))
|
||||||
|
|
Loading…
Reference in New Issue