41 lines
790 B
Lua
41 lines
790 B
Lua
require("Base/BasePanel")
|
|
MonsterInfoPopup = Inherit(BasePanel)
|
|
|
|
--初始化组件(用于子类重写)
|
|
function MonsterInfoPopup:InitComponent()
|
|
self.spLoader = SpriteLoader.New()
|
|
|
|
end
|
|
|
|
--绑定事件(用于子类重写)
|
|
function MonsterInfoPopup:BindEvent()
|
|
|
|
end
|
|
|
|
--添加事件监听(用于子类重写)
|
|
function MonsterInfoPopup:AddListener()
|
|
|
|
end
|
|
|
|
--移除事件监听(用于子类重写)
|
|
function MonsterInfoPopup:RemoveListener()
|
|
|
|
end
|
|
|
|
--界面打开时调用(用于子类重写)
|
|
function MonsterInfoPopup:OnOpen(...)
|
|
|
|
end
|
|
|
|
--界面关闭时调用(用于子类重写)
|
|
function MonsterInfoPopup:OnClose()
|
|
|
|
end
|
|
|
|
--界面销毁时调用(用于子类重写)
|
|
function MonsterInfoPopup:OnDestroy()
|
|
self.spLoader:Destroy()
|
|
|
|
end
|
|
|
|
return MonsterInfoPopup |