太初特权入口修改
parent
12a859cc14
commit
2206d01288
|
@ -60,6 +60,7 @@ function FastExploreInfoPopup:InitComponent()
|
|||
this.privilegeTimeBg = Util.GetGameObject(this.privilege, "bg")
|
||||
this.privilegeTime = Util.GetGameObject(this.privilege, "bg/Time"):GetComponent("Text")
|
||||
this.privilegeGo = Util.GetGameObject(this.privilege, "go")
|
||||
this.privilegeGoTxt = Util.GetGameObject(this.privilege, "go/Time"):GetComponent("Text")
|
||||
this.effect = Util.GetGameObject(this.privilege, "UI_Effect_MianBan_GuaJi_Ani")
|
||||
end
|
||||
|
||||
|
@ -176,10 +177,15 @@ function this.RefreshItemNum()
|
|||
Util.SetGray(this.btnFastExplore, fastBuyNum == 0 and freeTimes == 0)
|
||||
|
||||
--local isActive = PrivilegeManager.GetPrivilegeOpenStatusById(12)
|
||||
local isActive =OperatingManager.IsBuyGift(2304)
|
||||
local isActive =OperatingManager.IsBuyGift(2301)
|
||||
--Util.SetGray(this.privilegeIcon, not isActive)
|
||||
this.privilegeTimeBg:SetActive(false)
|
||||
this.privilegeGo:SetActive(not isActive)
|
||||
--this.privilegeGo:SetActive(not isActive)
|
||||
if isActive then
|
||||
this.privilegeGoTxt.text="已激活"
|
||||
else
|
||||
this.privilegeGoTxt.text="去激活"
|
||||
end
|
||||
this.effect:SetActive(not isActive)
|
||||
this.privilegeEffect:SetActive(isActive)
|
||||
-- if isActive then
|
||||
|
@ -187,7 +193,7 @@ function this.RefreshItemNum()
|
|||
-- else
|
||||
-- this.privilegeContent.text = Language[12242]
|
||||
-- end
|
||||
this.privilegeContent.text = "激活太初特权,可增加探索次数"
|
||||
this.privilegeContent.text = "开通太初特权可增加极速探索每日免费及购买次数"
|
||||
if isActive then
|
||||
local leftTime = PrivilegeManager.GetPrivilegeLeftTimeById(33)
|
||||
this.privilegeTime.text = Language[10469]..GetLeftTimeStrByDeltaTime(leftTime)
|
||||
|
|
|
@ -65,6 +65,7 @@ function FindTreasureMainPanel:InitComponent()
|
|||
|
||||
self.textImage = Util.GetGameObject(self.gameObject, "titleBg/bg2/Image")
|
||||
self.goBtn = Util.GetGameObject(self.textImage, "Button")
|
||||
self.goBtnTxt = Util.GetGameObject(self.textImage, "Button/Text"):GetComponent("Text")
|
||||
self.btnEffect = Util.GetGameObject(self.goBtn, "UI_Effect_MianBan_GuaJi_Ani")
|
||||
orginLayer = 0
|
||||
end
|
||||
|
@ -222,6 +223,13 @@ function FindTreasureMainPanel:OnShowPanelData(isSort,isTop,isAni)
|
|||
if isSort then
|
||||
self:MissionInfoSort(missionInfo)
|
||||
end
|
||||
local isActive =OperatingManager.IsBuyGift(2304)
|
||||
--this.privilegeGo:SetActive(not isActive)
|
||||
if isActive then
|
||||
self.goBtnTxt.text="已激活"
|
||||
else
|
||||
self.goBtnTxt.text="去激活"
|
||||
end
|
||||
-- for i = 1, math.max(#missionInfo, #findTreasureGrid) do
|
||||
-- local go = findTreasureGrid[i]
|
||||
-- if not go then
|
||||
|
|
Loading…
Reference in New Issue