御兽斋=============屏蔽御兽斋入口及红点
parent
65f0eac110
commit
e56b1e3823
|
@ -27,6 +27,8 @@ function PokemonMainPanel:InitComponent()
|
||||||
this.btnShop = Util.GetGameObject(self.transform, "btnEndRoot/btnShop")
|
this.btnShop = Util.GetGameObject(self.transform, "btnEndRoot/btnShop")
|
||||||
Util.GetGameObject(this.btnShop, "redPoint"):SetActive(false)
|
Util.GetGameObject(this.btnShop, "redPoint"):SetActive(false)
|
||||||
this.btnInfo = Util.GetGameObject(self.transform, "btnEndRoot/btnInfo")
|
this.btnInfo = Util.GetGameObject(self.transform, "btnEndRoot/btnInfo")
|
||||||
|
--屏蔽御兽斋入口显示
|
||||||
|
this.btnInfo:SetActive(false)
|
||||||
this.btnInfoRed = Util.GetGameObject(this.btnInfo, "redPoint")
|
this.btnInfoRed = Util.GetGameObject(this.btnInfo, "redPoint")
|
||||||
this.btnWarAddPro = Util.GetGameObject(self.transform, "btnEndRoot/btnWarAddPro")
|
this.btnWarAddPro = Util.GetGameObject(self.transform, "btnEndRoot/btnWarAddPro")
|
||||||
Util.GetGameObject(this.btnWarAddPro, "redPoint"):SetActive(false)
|
Util.GetGameObject(this.btnWarAddPro, "redPoint"):SetActive(false)
|
||||||
|
|
|
@ -538,26 +538,28 @@ end
|
||||||
|
|
||||||
--免费抽卡次数
|
--免费抽卡次数
|
||||||
function this.RefreshPokemonRecruitRedPoint()
|
function this.RefreshPokemonRecruitRedPoint()
|
||||||
local isOpen = ActTimeCtrlManager.SingleFuncState(FUNCTION_OPEN_TYPE.POKEMON)
|
--屏蔽御兽斋红点
|
||||||
if not isOpen then
|
-- local isOpen = ActTimeCtrlManager.SingleFuncState(FUNCTION_OPEN_TYPE.POKEMON)
|
||||||
|
-- if not isOpen then
|
||||||
|
-- return false
|
||||||
|
-- end
|
||||||
|
-- --获取免费次数
|
||||||
|
-- local currLottery= ConfigManager.GetConfigData(ConfigName.LotterySetting,RecruitType.LingShowSingle)
|
||||||
|
-- local freeTimesId=currLottery.FreeTimes
|
||||||
|
-- local freeTime = 0
|
||||||
|
-- if freeTimesId>0 then
|
||||||
|
-- freeTime= PrivilegeManager.GetPrivilegeRemainValue(freeTimesId)
|
||||||
|
-- end
|
||||||
|
-- local isFree = freeTime and freeTime >= 1
|
||||||
|
-- if isFree then
|
||||||
|
-- -- LogPink("免费抽卡次数true")
|
||||||
|
-- return true
|
||||||
|
-- else
|
||||||
|
-- -- LogPink("免费抽卡次数false")
|
||||||
|
-- return false
|
||||||
|
-- end
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
--获取免费次数
|
|
||||||
local currLottery= ConfigManager.GetConfigData(ConfigName.LotterySetting,RecruitType.LingShowSingle)
|
|
||||||
local freeTimesId=currLottery.FreeTimes
|
|
||||||
local freeTime = 0
|
|
||||||
if freeTimesId>0 then
|
|
||||||
freeTime= PrivilegeManager.GetPrivilegeRemainValue(freeTimesId)
|
|
||||||
end
|
|
||||||
local isFree = freeTime and freeTime >= 1
|
|
||||||
if isFree then
|
|
||||||
-- LogPink("免费抽卡次数true")
|
|
||||||
return true
|
|
||||||
else
|
|
||||||
-- LogPink("免费抽卡次数false")
|
|
||||||
return false
|
|
||||||
end
|
|
||||||
end
|
|
||||||
function this.PokemonChipRefresh()
|
function this.PokemonChipRefresh()
|
||||||
CheckRedPointStatus(RedPointType.Pokemon_ChipCompound)
|
CheckRedPointStatus(RedPointType.Pokemon_ChipCompound)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue