[罗浮争锋]=====================罗浮显示修改
parent
b5dd764234
commit
8eb8ba7985
|
@ -32,7 +32,7 @@ function ArenaTypePanel:InitComponent()
|
|||
this.TopMatch_Lock_Title = Util.GetGameObject(this.TopMatch_Lock, "Season"):GetComponent("Text")
|
||||
this.TopMatch_Lock_Time = Util.GetGameObject(this.TopMatch_Lock, "Season/Time"):GetComponent("Text")
|
||||
this.TopMatch_Lock_Tip = Util.GetGameObject(this.TopMatch_Lock, "Tip"):GetComponent("Text")
|
||||
|
||||
this.TopMatch_Lock_Tip.gameObject:SetActive(false)
|
||||
this.btnArenaRedpot = Util.GetGameObject(this.btnArena, "bg/redpot")
|
||||
-- 上部货币显示
|
||||
-- this.UpView = SubUIManager.Open(SubUIConfig.UpView, self.transform, { showType = UpViewOpenType.ShowLeft})
|
||||
|
@ -105,7 +105,9 @@ function ArenaTypePanel:OnShow()
|
|||
end)
|
||||
end)
|
||||
--罗浮争锋
|
||||
--this.RefreshTopMatchShow()
|
||||
JumpServerManager.GetWorldArenaInfoRequest(function()
|
||||
LogError("1111111111111111111111111111111111111111111111111")
|
||||
this.RefreshTopMatchShow()
|
||||
-- 计时器
|
||||
if this.TimeCounter then return end
|
||||
|
@ -175,37 +177,50 @@ function this.RefreshTopMatchShow()
|
|||
|
||||
this.TopMatch_Name.text = "罗浮争锋"
|
||||
--判断功能是否开启
|
||||
|
||||
if not ActTimeCtrlManager.IsQualifiled(FUNCTION_OPEN_TYPE.JumpServer_HightLadder) then
|
||||
state = -1
|
||||
tipStr = ActTimeCtrlManager.GetFuncTip( FUNCTION_OPEN_TYPE.JumpServer_HightLadder)
|
||||
end
|
||||
--判断世界等级是否够
|
||||
local conFigWorldLevel = ConfigManager.GetConfigData(ConfigName.MServerArenaSetting,1).WorldLevel
|
||||
if PlayerManager.worldLeve < conFigWorldLevel then --如果世界等级不足
|
||||
state = -2
|
||||
tipStr = string.format("世界等级到达%s后开启!",conFigWorldLevel)
|
||||
end
|
||||
--判断是否在赛季中
|
||||
if ActTimeCtrlManager.SingleFuncState(FUNCTION_OPEN_TYPE.JumpServer_HightLadder) == false then --如果未解锁
|
||||
state = -3
|
||||
tipStr = "赛季过渡中!"
|
||||
end
|
||||
if not JumpServerManager.GetHightLadderDataIsStart() then
|
||||
state = -4
|
||||
tipStr = string.format("开服第%s周开放!",ConfigManager.GetConfigData(ConfigName.MServerArenaSetting,1).OpenWeek)
|
||||
elseif not JumpServerManager.GetHightLadderDataIsGroup() then
|
||||
state = -5
|
||||
tipStr = "未划分跨服分组,无法参与!"
|
||||
if not CheckFunctionOpen(FUNCTION_OPEN_TYPE.JumpServer_HightLadder) then
|
||||
state=-6
|
||||
tipStr = GetFunctionOpenTip(FUNCTION_OPEN_TYPE.JumpServer_HightLadder)
|
||||
else
|
||||
state = 1
|
||||
tipStr = ""
|
||||
if not ActTimeCtrlManager.IsQualifiled(FUNCTION_OPEN_TYPE.JumpServer_HightLadder) then
|
||||
state = -1
|
||||
tipStr = ActTimeCtrlManager.GetFuncTip( FUNCTION_OPEN_TYPE.JumpServer_HightLadder)
|
||||
|
||||
end
|
||||
|
||||
--判断世界等级是否够
|
||||
local conFigWorldLevel = ConfigManager.GetConfigData(ConfigName.MServerArenaSetting,1).WorldLevel
|
||||
if PlayerManager.worldLeve < conFigWorldLevel then --如果世界等级不足
|
||||
state = -2
|
||||
tipStr = string.format("世界等级到达%s后开启!",conFigWorldLevel)
|
||||
|
||||
end
|
||||
--判断是否在赛季中
|
||||
if ActTimeCtrlManager.SingleFuncState(FUNCTION_OPEN_TYPE.JumpServer_HightLadder) == false then --如果未解锁
|
||||
state = -3
|
||||
tipStr = "赛季过渡中!"
|
||||
end
|
||||
if not JumpServerManager.GetHightLadderDataIsStart() then
|
||||
state = -4
|
||||
tipStr = string.format("开服第%s周开放!",ConfigManager.GetConfigData(ConfigName.MServerArenaSetting,1).OpenWeek)
|
||||
|
||||
elseif not JumpServerManager.GetHightLadderDataIsGroup() then
|
||||
state = -5
|
||||
tipStr = "未划分跨服分组,无法参与!"
|
||||
else
|
||||
state = 1
|
||||
tipStr = ""
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
|
||||
|
||||
if state<1 then
|
||||
this.TopMatch_Normal:SetActive(false)
|
||||
this.TopMatch_Lock:SetActive(true)
|
||||
this.TopMatch_Name.text = "未达到开启条件"
|
||||
this.TopMatch_Lock_Title.text = tipStr
|
||||
this.TopMatch_Lock_Time.text = ""
|
||||
else
|
||||
local serData = ActTimeCtrlManager.GetSerDataByTypeId(FUNCTION_OPEN_TYPE.JumpServer_HightLadder)
|
||||
if serData then
|
||||
|
@ -289,6 +304,7 @@ function this.TimeUpdate()
|
|||
-- else
|
||||
-- this.TopMatch_Lock_Time.text = ""
|
||||
-- end
|
||||
-- this.TopMatch_Lock_Time.gameObject:SetActive(false)
|
||||
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue