添加巅峰赛编队
parent
9bb7008a6d
commit
3b3dbec6a7
|
@ -1425,6 +1425,7 @@ FormationTypeDef = {
|
|||
EXPEDITION = 1001, --猎妖之路
|
||||
GUILD_CAR_DELEAY = 1101, --公会车迟
|
||||
GUILD_DEATHPOS=1201,--十绝阵
|
||||
ARENA_TOM_MATCH=1301,--巅峰赛
|
||||
}
|
||||
|
||||
--编队需要拉取主线
|
||||
|
|
|
@ -118,7 +118,7 @@ function this.SetInfoData(panelType, blueData, redData, textType, showScore,batt
|
|||
if panelType == 1 then--当时我的界面 并且准备阶段时 显示我自己的编队数据
|
||||
local baseData = ArenaTopMatchManager.GetBaseData()
|
||||
if baseData.battleState == TOP_MATCH_TIME_STATE.OPEN_IN_GUESS then
|
||||
this.FreshTeam2(FormationManager.GetFormationByID(FormationTypeDef.FORMATION_ARENA_DEFEND), true)
|
||||
this.FreshTeam2(FormationManager.GetFormationByID(FormationTypeDef.ARENA_TOM_MATCH), true)
|
||||
else
|
||||
this.FreshTeam(blueData.team, true)
|
||||
end
|
||||
|
|
|
@ -222,7 +222,7 @@ function this.FreshTeam()
|
|||
Util.GetGameObject(demon, "frame"):GetComponent("Image").sprite = Util.LoadSprite(GetQuantityImageByquality(1))
|
||||
Util.GetGameObject(demon, "hero"):SetActive(false)
|
||||
end
|
||||
local formation = FormationManager.GetFormationByID(FormationTypeDef.FORMATION_ARENA_DEFEND)
|
||||
local formation = FormationManager.GetFormationByID(FormationTypeDef.ARENA_TOM_MATCH)
|
||||
for i, hero in ipairs(formation.teamHeroInfos) do
|
||||
LogGreen("hero.position "..hero.position)
|
||||
local heroData = HeroManager.GetSingleHeroData(hero.heroId)
|
||||
|
|
|
@ -35,6 +35,8 @@ function this.MakeAEmptyTeam(teamId)
|
|||
-- oTeam.teamName = " 公会Boss"-- 901
|
||||
elseif teamId == FormationTypeDef.EXPEDITION then
|
||||
oTeam.teamName = Language[10683]-- 1001
|
||||
elseif teamId == FormationTypeDef.ARENA_TOM_MATCH then
|
||||
oTeam.teamName = Language[10676]-- 1301
|
||||
end
|
||||
oTeam.teamHeroInfos = {}
|
||||
oTeam.teamPokemonInfos = {}
|
||||
|
|
|
@ -15,7 +15,7 @@ end
|
|||
|
||||
--- 获取需要显示的编队id
|
||||
function this.GetFormationIndex()
|
||||
return FormationTypeDef.FORMATION_ARENA_DEFEND
|
||||
return FormationTypeDef.ARENA_TOM_MATCH
|
||||
end
|
||||
--- 提交按钮点击事件
|
||||
function this.On_Btn1_Click()
|
||||
|
@ -33,7 +33,7 @@ function this.On_Btn1_Click()
|
|||
return
|
||||
end
|
||||
-- 编队为空
|
||||
if #FormationManager.formationList[FormationTypeDef.FORMATION_ARENA_DEFEND].teamHeroInfos == 0 then
|
||||
if #FormationManager.formationList[FormationTypeDef.ARENA_TOM_MATCH].teamHeroInfos == 0 then
|
||||
PopupTipPanel.ShowTip(Language[10702])
|
||||
hadClick = false
|
||||
return
|
||||
|
|
|
@ -336,7 +336,9 @@ function this.GetHeroFormationStr(teamId)
|
|||
return Language[11107]
|
||||
elseif teamId == FormationTypeDef.EXPEDITION then
|
||||
return Language[11108]
|
||||
-- 1001
|
||||
-- 1001
|
||||
elseif teamId == FormationTypeDef.ARENA_TOM_MATCH then
|
||||
return Language[11101]
|
||||
end
|
||||
end
|
||||
return ""
|
||||
|
@ -359,6 +361,8 @@ function this.GetHeroFormationStr2(teamId)
|
|||
return Language[11112], FormationTypeDef.BLOODY_BATTLE_ATTACK
|
||||
elseif teamId == FormationTypeDef.EXPEDITION then
|
||||
return Language[10699], FormationTypeDef.EXPEDITION
|
||||
elseif teamId == FormationTypeDef.ARENA_TOM_MATCH then
|
||||
return Language[11110], FormationTypeDef.ARENA_TOM_MATCH
|
||||
end
|
||||
end
|
||||
return ""
|
||||
|
|
Binary file not shown.
Loading…
Reference in New Issue