KLQuintonInvasionJoinPanel.lua 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. ---@class KLQuintonInvasionJoinPanel:UIKmlLuaPanelBase
  2. ---@field view KLQuintonInvasionJoinPanelView
  3. local KLQuintonInvasionJoinPanel = class(UIKmlLuaPanelBase)
  4. local this =KLQuintonInvasionJoinPanel
  5. function this:AsyncLoadUI()
  6. end
  7. ---创建时调用一次
  8. function this:Init()
  9. end
  10. ---注册UI事件和服务器消息
  11. function this:RegistEvents()
  12. GUI:AddOnClickEvent(self.view.btnEnter,self,self.OnCliCkEnterBtn)
  13. GUI:AddOnClickEvent(self.view.btnClose,self,self.OnCliCkCloseBtn)
  14. end
  15. function this:OnCliCkEnterBtn()
  16. local cond, message = InfoManager.godsDescendInfo.CheckActivityConditionMapId(23001)
  17. if cond then
  18. SL:SendLuaNetMsg(LuaMessageIdToSever.REQ_KUNDUN_ENTER)
  19. else
  20. SL:TipMessage(message, 1, NoticeType.NoticeMid)
  21. end
  22. end
  23. function this:OnCliCkCloseBtn()
  24. GUI:UIPanel_Close("dev/outui/Activity/Panel/KLQuintonInvasionJoin/KLQuintonInvasionJoinPanel")
  25. SL:ShowMainPanel()
  26. end
  27. ---界面显示时调用一次
  28. function this:Show()
  29. end
  30. ---创建或者刷新界面数据时调用
  31. function this:Refresh()
  32. end
  33. function this:Close()
  34. end
  35. return this