【编队优化】竞技场防守编队增加一键

dev_chengFeng
ZhangBiao 2020-11-17 19:57:17 +08:00
parent c8aa6b5971
commit 462484db66
1 changed files with 8 additions and 1 deletions

View File

@ -15,7 +15,12 @@ function this.GetFormationIndex()
return FormationTypeDef.FORMATION_ARENA_DEFEND
end
--- 提交按钮点击事件
function this.On_Btn1_Click()
this.root.SetOneKeyGo()
end
function this.On_Btn2_Click()
local formation = FormationManager.GetFormationByID(FormationTypeDef.FORMATION_ARENA_DEFEND)
if #formation.teamHeroInfos == 0 then
PopupTipPanel.ShowTip(Language[10711])
@ -39,7 +44,9 @@ end
function this.InitView()
this.root.bg:SetActive(true)
this.root.btn_1:SetActive(true)
this.root.btn_1_lab.text = Language[10712]
this.root.btn_1_lab.text = Language[10743]
this.root.btn_2:SetActive(true)
this.root.btn_2_lab.text = Language[10712]
this.root.UpView:OnOpen({ showType = UpViewOpenType.ShowLeft, panelType = PanelType.Arena })