罗浮编队显示修改
parent
4185c42956
commit
2cb125db92
|
@ -206,7 +206,7 @@ function this.CheckMingWangRed()
|
|||
if growData then
|
||||
for i = 1, 20 do
|
||||
local curData = growData[i]
|
||||
if curData.data.limitNum - curData.data.boughtNum > 0 and
|
||||
if curData and curData.data.limitNum - curData.data.boughtNum > 0 and
|
||||
BagManager.GetTotalItemNum(curData.data.costId) >= curData.data.price and
|
||||
BagManager.GetItemCountById(1351) >=DynamicActivityManager.GetMingWangLv(curData.data.shopItemData.BuyRule[2]-1) then
|
||||
return true
|
||||
|
|
|
@ -60,20 +60,17 @@ end
|
|||
function this.OnLevelChange()
|
||||
-- 提审服不再出发相关引导
|
||||
LogError("1111111111111111111111111122222222222222等级辩护引导1111111111111 "..PlayerManager.level)
|
||||
-- if SERVER_VERSION == 1 then
|
||||
-- LogError("1111111111111111111111111122222222222222首充加入引导1111111111111")
|
||||
-- return
|
||||
-- end
|
||||
|
||||
-- 首充引导特殊处理到十级开放
|
||||
if PlayerManager.level == 10 then
|
||||
LogError(" 首充加入引导")
|
||||
--if CheckListIsContainValue1(_FuncGuideList,100200)==false then
|
||||
if CheckListIsContainValue1(_FuncGuideList,100200)==false then
|
||||
if PlayerPrefs.GetInt(PlayerManager.uid.."isGMEsp")==0 then
|
||||
--GuideManager.ShowGuide(100200)
|
||||
table.insert(_FuncGuideList, 100200)
|
||||
end
|
||||
|
||||
--end
|
||||
end
|
||||
this.CheckFuncGuide()
|
||||
--解开孙悟空封印的剧情
|
||||
-- StoryMapManager.isShowStory = 1
|
||||
|
|
|
@ -339,7 +339,30 @@ function this.ShowSingleData(go,data,i)
|
|||
end)
|
||||
Util.AddOnceClick(cliclBtn,function()
|
||||
JumpServerManager.SetCurPersonInfo(data.personInfo)
|
||||
UIManager.OpenPanel(UIName.PlayerInfoPopup, data.personInfo.uid, PLAYER_INFO_VIEW_TYPE.JUPMSERVER,data.personInfo.servername)
|
||||
local formation=FormationTypeDef.LuoFuZhengFeng1
|
||||
if JumpServerManager.arenaType~=0 and JumpServerManager.stage==3 then
|
||||
if JumpServerManager.arenaType==1 then
|
||||
formation= FormationTypeDef.LuoFuZhengFeng1
|
||||
elseif JumpServerManager.arenaType==2 then
|
||||
formation= FormationTypeDef.LuoFuZhengFeng2
|
||||
elseif JumpServerManager.arenaType==3 then
|
||||
formation= FormationTypeDef.LuoFuZhengFeng3
|
||||
elseif JumpServerManager.arenaType==4 then
|
||||
formation= FormationTypeDef.LuoFuZhengFeng4
|
||||
end
|
||||
else
|
||||
if curPos==1 then
|
||||
formation= FormationTypeDef.LuoFuZhengFeng1
|
||||
elseif curPos==2 then
|
||||
formation= FormationTypeDef.LuoFuZhengFeng2
|
||||
elseif curPos==3 then
|
||||
formation= FormationTypeDef.LuoFuZhengFeng3
|
||||
elseif curPos==4 then
|
||||
formation= FormationTypeDef.LuoFuZhengFeng4
|
||||
end
|
||||
end
|
||||
JumpServerManager.showRankType=formation
|
||||
UIManager.OpenPanel(UIName.PlayerInfoPopup, data.personInfo.uid, PLAYER_INFO_VIEW_TYPE.JUPMSERVER,data.personInfo.servername,formation)
|
||||
end)
|
||||
elseif stage == JumpServer_Stage.NoStar and data and data.personInfo then
|
||||
playerInfo:SetActive(true)
|
||||
|
@ -372,6 +395,28 @@ function this.ShowSingleData(go,data,i)
|
|||
end)
|
||||
Util.AddOnceClick(cliclBtn,function()
|
||||
JumpServerManager.SetCurPersonInfo(nil)
|
||||
local formation=FormationTypeDef.LuoFuZhengFeng1
|
||||
if JumpServerManager.arenaType~=0 and JumpServerManager.stage==3 then
|
||||
if JumpServerManager.arenaType==1 then
|
||||
formation= FormationTypeDef.LuoFuZhengFeng1
|
||||
elseif JumpServerManager.arenaType==2 then
|
||||
formation= FormationTypeDef.LuoFuZhengFeng2
|
||||
elseif JumpServerManager.arenaType==3 then
|
||||
formation= FormationTypeDef.LuoFuZhengFeng3
|
||||
elseif JumpServerManager.arenaType==4 then
|
||||
formation= FormationTypeDef.LuoFuZhengFeng4
|
||||
end
|
||||
else
|
||||
if curPos==1 then
|
||||
formation= FormationTypeDef.LuoFuZhengFeng1
|
||||
elseif curPos==2 then
|
||||
formation= FormationTypeDef.LuoFuZhengFeng2
|
||||
elseif curPos==3 then
|
||||
formation= FormationTypeDef.LuoFuZhengFeng3
|
||||
elseif curPos==4 then
|
||||
formation= FormationTypeDef.LuoFuZhengFeng4
|
||||
end
|
||||
end
|
||||
UIManager.OpenPanel(UIName.PlayerInfoPopup, data.personInfo.uid, PLAYER_INFO_VIEW_TYPE.JUPMSERVER,data.personInfo.servername)
|
||||
end)
|
||||
end
|
||||
|
|
|
@ -18,6 +18,7 @@ function this.Initialize()
|
|||
this.isGroup = -1
|
||||
this.arenaType=1
|
||||
this.stage=0
|
||||
this.showRankType=0 --当前显示罗浮玩家列表的编队类型
|
||||
end
|
||||
---------------------------------------------
|
||||
--跨服天梯数据
|
||||
|
|
|
@ -313,6 +313,9 @@ end
|
|||
function PlayerInfoPopup:OnShow()
|
||||
-- this.RefreshBtnShow()
|
||||
-- 请求数据
|
||||
if this._ViewType==PLAYER_INFO_VIEW_TYPE.JUPMSERVER then
|
||||
this._Config.formationType=JumpServerManager.showRankType
|
||||
end
|
||||
LogGreen("角色Id:"..tostring(this._PlayerId).." 编队Id:"..tostring(this._Config.formationType))
|
||||
if this._PlayerId > 0 then--如果PlayerId > 0 说明是真人或者机器人,为0暂时为灵脉使用,直接是怪物组,数据需要自己拼接
|
||||
netserverName = nil
|
||||
|
|
Loading…
Reference in New Issue