KLChallengeBossEndPanel.lua 809 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. ---@class KLChallengeBossEndPanel:UIKmlLuaPanelBase
  2. ---@field view KLChallengeBossEndPanelView
  3. local KLChallengeBossEndPanel = class(UIKmlLuaPanelBase)
  4. local this = KLChallengeBossEndPanel
  5. ---创建时调用一次
  6. function this:Init()
  7. end
  8. function this:InitData(l_time)
  9. local last_time = l_time or 30
  10. GUI:SetControl_time(self.view.end_time,last_time)
  11. end
  12. ---创建或者刷新界面数据时调用
  13. function this:Refresh()
  14. end
  15. function this:SetVisible(isVisible)
  16. GUI:setVisible(self.view.root,isVisible)
  17. end
  18. ---注册UI事件和服务器消息
  19. function this:RegistEvents()
  20. end
  21. function this:CloseOnclick()
  22. GUI:UIPanel_Close("dev/outui/ChallengeBoss/Panel/KLChallengeBossPos/KLChallengeBossEndPanel")
  23. SL.ShowMainPanel()
  24. end
  25. function this:Close()
  26. end
  27. return this