no message
parent
179632ca21
commit
16e1699e65
|
@ -162,7 +162,7 @@ function this:SetLevelData(go, data)
|
|||
tip.text=Language[10337]
|
||||
end
|
||||
Util.AddOnceClick(btnFight,function()
|
||||
if data.state == 1 and data.power >= PlayerManager.maxForce then
|
||||
if data.state == 1 then
|
||||
this:OnClose()
|
||||
LogGreen("curType"..curType)
|
||||
UIManager.OpenPanel(UIName.FormationPanelV2, FORMATION_TYPE.XUANYUAN_MIRROR,curType,data)
|
||||
|
@ -172,8 +172,6 @@ function this:SetLevelData(go, data)
|
|||
XuanYuanMirrorManager.ExecuteFightBattle(data.id,2,function()
|
||||
this:RefreshTimes()
|
||||
end)
|
||||
else
|
||||
PopupTipPanel.ShowTip(string.format("战力达到%s开启",data.power))
|
||||
end
|
||||
end)
|
||||
local rewardGrid = Util.GetGameObject(go,"Reward")
|
||||
|
@ -229,10 +227,6 @@ end
|
|||
|
||||
--界面打开时调用(用于子类重写)
|
||||
function this:OnShow(...)
|
||||
local curFormationForce = FormationManager.GetFormationPower(FormationTypeDef.FORMATION_NORMAL)
|
||||
if PlayerManager.maxForce < curFormationForce then
|
||||
PlayerManager.maxForce = curFormationForce
|
||||
end
|
||||
this:SwitchView()
|
||||
this:RefreshTimes()
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue