miduo_client/Assets/ManagedResources/~Lua/Modules/Popup/SmallSoldierAutoPanel.lua

55 lines
1.3 KiB
Lua

require("Base/BasePanel")
SmallSoldierAutoPanel = Inherit(BasePanel)
local this = SmallSoldierAutoPanel
--初始化组件(用于子类重写)
function SmallSoldierAutoPanel:InitComponent()
this.btnClose = Util.GetGameObject(self.gameObject, "btn_close")
this.tipTxt=Util.GetGameObject(self.gameObject, "tip"):GetComponent("Text")
this.tipTxt.text="自动抽取神兵中,点击任意位置停止"
end
--绑定事件(用于子类重写)
function SmallSoldierAutoPanel:BindEvent()
Util.AddClick(this.btnClose, function ()
SmallSoldierManager.isAuto=false
self:ClosePanel()
end)
end
--添加事件监听(用于子类重写)
function SmallSoldierAutoPanel:AddListener()
end
--移除事件监听(用于子类重写)
function SmallSoldierAutoPanel:RemoveListener()
end
function SmallSoldierAutoPanel:OnSortingOrderChange()
end
--界面打开时调用(用于子类重写)
function SmallSoldierAutoPanel:OnOpen(battlePanel, showRecord, backPanel,_fightType)
this:SetSortingOrder(6200)
end
--界面关闭时调用(用于子类重写)
function SmallSoldierAutoPanel:OnClose()
end
--界面销毁时调用(用于子类重写)
function SmallSoldierAutoPanel:OnDestroy()
end
return SmallSoldierAutoPanel