车迟斗法副本界面红点
parent
238aa19209
commit
0c3b0e6326
|
@ -833,14 +833,14 @@ function this.CarbonRedCheck(redType)
|
||||||
-- return false
|
-- return false
|
||||||
-- end
|
-- end
|
||||||
--车迟斗法
|
--车迟斗法
|
||||||
-- elseif redType == RedPointType.LegendExplore then
|
elseif redType == RedPointType.LegendExplore then
|
||||||
-- if ActTimeCtrlManager.IsQualifiled(FUNCTION_OPEN_TYPE.CARDELAY) and PlayerManager.familyId ~= 0
|
if ActTimeCtrlManager.IsQualifiled(FUNCTION_OPEN_TYPE.CARDELAY) and PlayerManager.familyId ~= 0
|
||||||
-- and (GuildCarDelayManager.RefreshRedPoint(GuildCarDelayProType.Challenge)
|
and (GuildCarDelayManager.RefreshRedPoint(GuildCarDelayProType.Challenge)
|
||||||
-- or GuildCarDelayManager.RefreshRedPoint(GuildCarDelayProType.Loot)) then
|
or GuildCarDelayManager.RefreshRedPoint(GuildCarDelayProType.Loot)) then
|
||||||
-- return true
|
return true
|
||||||
-- else
|
else
|
||||||
-- return false
|
return false
|
||||||
-- end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -178,6 +178,21 @@ function CarbonTypePanelV2:BindEvent()
|
||||||
UIManager.OpenPanel(UIName.VipPanelV2)
|
UIManager.OpenPanel(UIName.VipPanelV2)
|
||||||
end
|
end
|
||||||
)
|
)
|
||||||
|
|
||||||
|
for k,v in ipairs(carbons) do
|
||||||
|
local data
|
||||||
|
if not type[PlayerManager.carbonType][k] then
|
||||||
|
data = type[PlayerManager.carbonType].default
|
||||||
|
else
|
||||||
|
data = type[PlayerManager.carbonType][k]
|
||||||
|
end
|
||||||
|
if data.redPointType == -1 or not data.redPointType then
|
||||||
|
Util.GetGameObject(v, "redPoint"):SetActive(false)
|
||||||
|
else
|
||||||
|
BindRedPointObject(data.redPointType,Util.GetGameObject(v, "redPoint"))
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
--添加事件监听(用于子类重写)
|
--添加事件监听(用于子类重写)
|
||||||
|
@ -192,19 +207,7 @@ end
|
||||||
--副本类型 1 综合 2 万象
|
--副本类型 1 综合 2 万象
|
||||||
function CarbonTypePanelV2:OnOpen()
|
function CarbonTypePanelV2:OnOpen()
|
||||||
carbonType = PlayerManager.carbonType
|
carbonType = PlayerManager.carbonType
|
||||||
for k,v in ipairs(carbons) do
|
|
||||||
local data
|
|
||||||
if not type[PlayerManager.carbonType][k] then
|
|
||||||
data = type[PlayerManager.carbonType].default
|
|
||||||
else
|
|
||||||
data = type[PlayerManager.carbonType][k]
|
|
||||||
end
|
|
||||||
if data.redPointType == -1 or not data.redPointType then
|
|
||||||
Util.GetGameObject(v, "redPoint"):SetActive(false)
|
|
||||||
else
|
|
||||||
BindRedPointObject(data.redPointType,Util.GetGameObject(v, "redPoint"))
|
|
||||||
end
|
|
||||||
end
|
|
||||||
if carbonType == 1 then
|
if carbonType == 1 then
|
||||||
-- 清除一下选得副本类型
|
-- 清除一下选得副本类型
|
||||||
CarbonManager.difficulty = 0
|
CarbonManager.difficulty = 0
|
||||||
|
@ -227,7 +230,6 @@ end
|
||||||
function CarbonTypePanelV2:OnShow(...)
|
function CarbonTypePanelV2:OnShow(...)
|
||||||
carbonType = PlayerManager.carbonType
|
carbonType = PlayerManager.carbonType
|
||||||
|
|
||||||
LogBlue("carbonType2:"..carbonType)
|
|
||||||
this.title:GetComponent("Image").sprite = Util.LoadSprite(type[carbonType].title)
|
this.title:GetComponent("Image").sprite = Util.LoadSprite(type[carbonType].title)
|
||||||
this.title:GetComponent("RectTransform").localPosition = type[carbonType].titlePos
|
this.title:GetComponent("RectTransform").localPosition = type[carbonType].titlePos
|
||||||
this.title:GetComponent("RectTransform").sizeDelta = type[carbonType].titleSize
|
this.title:GetComponent("RectTransform").sizeDelta = type[carbonType].titleSize
|
||||||
|
@ -475,6 +477,18 @@ function CarbonTypePanelV2:OnClose()
|
||||||
end
|
end
|
||||||
this.isPlayDoorAudio = false
|
this.isPlayDoorAudio = false
|
||||||
carbonType = 0
|
carbonType = 0
|
||||||
|
|
||||||
|
end
|
||||||
|
|
||||||
|
--界面销毁时调用(用于子类重写)
|
||||||
|
function CarbonTypePanelV2:OnDestroy()
|
||||||
|
hasFresh = false
|
||||||
|
if this.BtView then
|
||||||
|
SubUIManager.Close(this.BtView)
|
||||||
|
end
|
||||||
|
carbons = {}
|
||||||
|
this.playerHead=nil
|
||||||
|
|
||||||
for k,v in ipairs(carbons) do
|
for k,v in ipairs(carbons) do
|
||||||
local data
|
local data
|
||||||
if not type[PlayerManager.carbonType][k] then
|
if not type[PlayerManager.carbonType][k] then
|
||||||
|
@ -489,14 +503,4 @@ function CarbonTypePanelV2:OnClose()
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
--界面销毁时调用(用于子类重写)
|
|
||||||
function CarbonTypePanelV2:OnDestroy()
|
|
||||||
hasFresh = false
|
|
||||||
if this.BtView then
|
|
||||||
SubUIManager.Close(this.BtView)
|
|
||||||
end
|
|
||||||
carbons = {}
|
|
||||||
this.playerHead=nil
|
|
||||||
end
|
|
||||||
|
|
||||||
return CarbonTypePanelV2
|
return CarbonTypePanelV2
|
|
@ -85,6 +85,7 @@ function FormationEditPopup:BindEvent()
|
||||||
if func~=nil then --保存完毕后 将英雄did合集传递过去 此时我拥有这些英雄 不用担心英雄已被删除
|
if func~=nil then --保存完毕后 将英雄did合集传递过去 此时我拥有这些英雄 不用担心英雄已被删除
|
||||||
func(dids)
|
func(dids)
|
||||||
end
|
end
|
||||||
|
PlayerPrefs.SetInt(PlayerManager.uid.."TrialIsOpen",1)--设置森罗红点关
|
||||||
self:ClosePanel()
|
self:ClosePanel()
|
||||||
end)
|
end)
|
||||||
else
|
else
|
||||||
|
|
|
@ -88,7 +88,9 @@ function GuildCarDelayMainPanel:BindEvent()
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
if curProgress == 1 then
|
if curProgress == 1 then
|
||||||
UIManager.OpenPanel(UIName.FormationPanelV2, FORMATION_TYPE.GUILD_CAR_DELEAY)
|
UIManager.OpenPanel(UIName.FormationPanelV2, FORMATION_TYPE.GUILD_CAR_DELEAY,function ()
|
||||||
|
CheckRedPointStatus(RedPointType.LegendExplore)
|
||||||
|
end)
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
--抢夺
|
--抢夺
|
||||||
|
@ -107,7 +109,9 @@ function GuildCarDelayMainPanel:BindEvent()
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
if curProgress == 3 then
|
if curProgress == 3 then
|
||||||
UIManager.OpenPanel(UIName.GuildCarDelayLootPopup)
|
UIManager.OpenPanel(UIName.GuildCarDelayLootPopup,function()
|
||||||
|
CheckRedPointStatus(RedPointType.LegendExplore)
|
||||||
|
end)
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
--帮助按钮
|
--帮助按钮
|
||||||
|
@ -322,6 +326,7 @@ function this.RemainTimeDown(_timeTextExpertgo,_timeTextExpert,timeNumText,timeD
|
||||||
if _timeTextExpertgo then
|
if _timeTextExpertgo then
|
||||||
_timeTextExpertgo:SetActive(false)
|
_timeTextExpertgo:SetActive(false)
|
||||||
end
|
end
|
||||||
|
this.RefrePanelRedPoint()
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
function this.TimeStampToDateString(second)
|
function this.TimeStampToDateString(second)
|
||||||
|
@ -389,6 +394,7 @@ function this.RemainTimeDown2(_timeTextExpertgo,timeNumText)
|
||||||
if _timeTextExpertgo then
|
if _timeTextExpertgo then
|
||||||
_timeTextExpertgo:SetActive(false)
|
_timeTextExpertgo:SetActive(false)
|
||||||
end
|
end
|
||||||
|
this.RefrePanelRedPoint()
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
function this.TimeStampToDateString2(second)
|
function this.TimeStampToDateString2(second)
|
||||||
|
@ -412,7 +418,7 @@ end
|
||||||
function this.RefrePanelRedPoint()
|
function this.RefrePanelRedPoint()
|
||||||
Util.GetGameObject(this.challengeBtn,"redPoint"):SetActive(GuildCarDelayManager.RefreshRedPoint(GuildCarDelayProType.Challenge))
|
Util.GetGameObject(this.challengeBtn,"redPoint"):SetActive(GuildCarDelayManager.RefreshRedPoint(GuildCarDelayProType.Challenge))
|
||||||
Util.GetGameObject(this.lootBtn,"redPoint"):SetActive(GuildCarDelayManager.RefreshRedPoint(GuildCarDelayProType.Loot))
|
Util.GetGameObject(this.lootBtn,"redPoint"):SetActive(GuildCarDelayManager.RefreshRedPoint(GuildCarDelayProType.Loot))
|
||||||
--CheckRedPointStatus(RedPointType.LegendExplore)
|
CheckRedPointStatus(RedPointType.LegendExplore)
|
||||||
Util.SetGray(Util.GetGameObject(this.challengeBtn,"redPoint"),false)
|
Util.SetGray(Util.GetGameObject(this.challengeBtn,"redPoint"),false)
|
||||||
Util.SetGray(Util.GetGameObject(this.lootBtn,"redPoint"),false)
|
Util.SetGray(Util.GetGameObject(this.lootBtn,"redPoint"),false)
|
||||||
end
|
end
|
||||||
|
|
|
@ -447,7 +447,7 @@ end
|
||||||
|
|
||||||
--红点检测
|
--红点检测
|
||||||
function this.EndlessRedCheck()
|
function this.EndlessRedCheck()
|
||||||
if this.GetLeftMapEnergy() == 100 and ActTimeCtrlManager.SingleFuncState(FUNCTION_OPEN_TYPE.ENDLESS)then
|
if this.GetLeftMapEnergy() >= 100 and ActTimeCtrlManager.SingleFuncState(FUNCTION_OPEN_TYPE.ENDLESS)then
|
||||||
return true
|
return true
|
||||||
else
|
else
|
||||||
return false
|
return false
|
||||||
|
|
|
@ -154,7 +154,7 @@ function TrialMapPanel:OnOpen()
|
||||||
|
|
||||||
-- 检测引导
|
-- 检测引导
|
||||||
GuideManager.CheckCarbonGuild(CARBON_TYPE.TRIAL)
|
GuideManager.CheckCarbonGuild(CARBON_TYPE.TRIAL)
|
||||||
PlayerPrefs.SetInt(PlayerManager.uid.."TrialIsOpen",1)
|
-- PlayerPrefs.SetInt(PlayerManager.uid.."TrialIsOpen",1)
|
||||||
end
|
end
|
||||||
|
|
||||||
function TrialMapPanel:OnShow()
|
function TrialMapPanel:OnShow()
|
||||||
|
|
|
@ -159,6 +159,7 @@ function this.PlayerInfoRequest(func)
|
||||||
QuestionnaireManager.SetQuestionState(msg.QuestionState)
|
QuestionnaireManager.SetQuestionState(msg.QuestionState)
|
||||||
|
|
||||||
PlayerManager.SetMaxEnergy()
|
PlayerManager.SetMaxEnergy()
|
||||||
|
PlayerManager.ResetLocalData()--初始化所有本地的每日一刷
|
||||||
PlayerManager.InitServerTime()
|
PlayerManager.InitServerTime()
|
||||||
GuideManager.InitData(msg.newPlayerGuidePoint)
|
GuideManager.InitData(msg.newPlayerGuidePoint)
|
||||||
--临时初始化地图探索的静态数据
|
--临时初始化地图探索的静态数据
|
||||||
|
|
|
@ -44,6 +44,29 @@ function this.InitServerTime()
|
||||||
UpdateBeat:Add(update, this)
|
UpdateBeat:Add(update, this)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function this.ResetLocalData()
|
||||||
|
local func = function ()
|
||||||
|
--三个抽奖勾选重置
|
||||||
|
PlayerPrefs.SetInt(PlayerManager.uid.."GeneralPopup_RecruitConfirm"..RecruitType.Ten,0)
|
||||||
|
PlayerPrefs.SetInt(PlayerManager.uid.."GeneralPopup_RecruitConfirm"..RecruitType.TimeLimitTen,0)
|
||||||
|
PlayerPrefs.SetInt(PlayerManager.uid.."GeneralPopup_RecruitConfirm"..RecruitType.QianKunBoxTen,0)
|
||||||
|
PlayerPrefs.SetInt(PlayerManager.uid.."Trial",0)--森罗五点刷新重置红点
|
||||||
|
end
|
||||||
|
|
||||||
|
local text =PlayerManager.uid.."fiveTime"
|
||||||
|
local curTime = GetTimeStamp()
|
||||||
|
|
||||||
|
if PlayerPrefs.HasKey(text) then
|
||||||
|
if PlayerPrefs.GetInt(text) > curTime then
|
||||||
|
func()
|
||||||
|
PlayerPrefs.SetInt(text,Today_N_OClockTimeStamp(5)+86400)
|
||||||
|
end
|
||||||
|
else
|
||||||
|
func()
|
||||||
|
PlayerPrefs.SetInt(text,Today_N_OClockTimeStamp(5)+86400)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
function this.OnGoldChange()
|
function this.OnGoldChange()
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue