首冲拍脸 寻宝红点条件
parent
63b8b36a37
commit
98670958a0
|
@ -30,7 +30,9 @@ function this.RefreshUsedTimes()
|
|||
Game.GlobalEvent:DispatchEvent(GameEvent.FindTreasure.RefreshFindTreasure,true)
|
||||
end
|
||||
function this.RefreshFindTreasureRedPoint()
|
||||
-- CheckRedPointStatus(RedPointType.SecretTer_FindTreasure)
|
||||
if not ActTimeCtrlManager.SingleFuncState(FUNCTION_OPEN_TYPE.FINDTREASURE) then
|
||||
return false
|
||||
end
|
||||
TaskManager.SetFindTreasureDataState()
|
||||
local missionInfo = TaskManager.GetTypeTaskList(TaskTypeDef.FindTreasure)
|
||||
for i = 1, #missionInfo do
|
||||
|
|
|
@ -101,11 +101,12 @@ function FirstRechargePanel:OnSortingOrderChange()
|
|||
self.dayRewardList[i]:OnSortingOrderChange(self.sortingOrder)
|
||||
end
|
||||
end
|
||||
|
||||
function FirstRechargePanel:OnOpen(context)
|
||||
local fun = nil
|
||||
function FirstRechargePanel:OnOpen(context,_fun)
|
||||
context = context and context or {}
|
||||
self.selectTabIndex = context.tabIndex and context.tabIndex or 1
|
||||
-- self:SetOncePart()
|
||||
fun = _fun
|
||||
end
|
||||
|
||||
function FirstRechargePanel:OnShow()
|
||||
|
@ -185,5 +186,11 @@ function FirstRechargePanel:SetTabRedPointStatus(tabIndex)
|
|||
end
|
||||
self.tabRedPoint[tabIndex]:SetActive(redPointStatus)
|
||||
end
|
||||
|
||||
--界面关闭时调用(用于子类重写)
|
||||
function FirstRechargePanel:OnClose()
|
||||
if fun then
|
||||
fun()
|
||||
fun = nil
|
||||
end
|
||||
end
|
||||
return FirstRechargePanel
|
|
@ -1031,16 +1031,20 @@ function this:OnShow()
|
|||
-- 刷新拍脸
|
||||
local patFaceAllData = PatFaceManager.GetPatFaceAllDataTabs()
|
||||
if patFaceAllData and #patFaceAllData <= 0 and not UIManager.IsOpen(UIName.PatFacePanel) then
|
||||
AdventureManager.GetIsMaxTime()
|
||||
if FirstRechargeManager.isFirstRecharge == 1 and FirstRechargeManager.PlayerPrefsGetStrItemId() == 0 then
|
||||
FirstRechargeManager.PlayerPrefsSetStrItemId(1)
|
||||
UIManager.OpenPanel(UIName.FirstRechargePanel,nil,function()
|
||||
AdventureManager.GetIsMaxTime()
|
||||
end)
|
||||
else
|
||||
AdventureManager.GetIsMaxTime()
|
||||
end
|
||||
end
|
||||
--主城调了两边 所以做特殊判断
|
||||
if not UIManager.IsOpen(UIName.PatFacePanel) then
|
||||
this.RefreshShowPatPaceActivity()
|
||||
end
|
||||
if FirstRechargeManager.isFirstRecharge == 1 and FirstRechargeManager.PlayerPrefsGetStrItemId() == 0 then
|
||||
FirstRechargeManager.PlayerPrefsSetStrItemId(1)
|
||||
UIManager.OpenPanel(UIName.FirstRechargePanel)
|
||||
end
|
||||
|
||||
-- 设置主城小人名字
|
||||
if self.playerView then
|
||||
self.playerView:SetName()
|
||||
|
|
Loading…
Reference in New Issue