【编队优化】竞技场防守编队增加一键
parent
c8aa6b5971
commit
462484db66
|
@ -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 })
|
||||
|
||||
|
|
Loading…
Reference in New Issue