KLUIMonthCardDescTipsPanel.lua 862 B

12345678910111213141516171819202122232425262728293031
  1. ---@class KLUIMonthCardDescTipsPanel:UIKmlLuaPanelBase
  2. ---@field view KLUIMonthCardDescTipsPanelView
  3. local KLUIMonthCardDescTipsPanel = class(UIKmlLuaPanelBase)
  4. local this =KLUIMonthCardDescTipsPanel
  5. ---创建时调用一次
  6. function this:Init()
  7. end
  8. ---注册UI事件和服务器消息
  9. function this:RegistEvents()
  10. GUI:AddOnClickEvent(self.view.CloseBtn, self, self.CloseBtnOnClick)
  11. GUI:AddOnClickEvent(self.view.bgBth, self, self.CloseBtnOnClick)
  12. end
  13. function this:CloseBtnOnClick()
  14. GUI:UIPanel_Close("dev/outui/MonthCard/Panel/KLUIMonthCardDescTips/KLUIMonthCardDescTipsPanel")
  15. end
  16. ---创建或者刷新界面数据时调用
  17. function this:Refresh()
  18. if self.args then
  19. if self.args.Content then
  20. GUI:Text_setString(self.view.contentText, self.args.Content)
  21. end
  22. end
  23. end
  24. function this:Close()
  25. end
  26. return this