KLMonthCardActiveEffectPanel.lua 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. ---@class KLMonthCardActiveEffectPanel:UIKmlLuaPanelBase
  2. ---@field view KLMonthCardActiveEffectPanelView
  3. local KLMonthCardActiveEffectPanel = class(UIKmlLuaPanelBase)
  4. local this = KLMonthCardActiveEffectPanel
  5. function this:AsyncLoadUI()
  6. end
  7. ---创建时调用一次
  8. function this:Init()
  9. end
  10. ---注册UI事件和服务器消息
  11. function this:RegistEvents()
  12. end
  13. ---界面显示时调用一次
  14. function this:Show()
  15. end
  16. ---创建或者刷新界面数据时调用
  17. function this:Refresh()
  18. if self.args then
  19. GUI:SetActive(self.view.MonthCard_ActiveIcon,false)
  20. if self.args.cfgId == EMonthType.MonthCard then
  21. GUI:Effect_Create(self.view.root, {
  22. effectid = "10002",
  23. mpos = "0,0,0",
  24. mscale = "1,1,1",
  25. mrotate = "0,0,0"
  26. })
  27. else
  28. GUI:Effect_Create(self.view.root, {
  29. effectid = "10003",
  30. mpos = "0,0,0",
  31. mscale = "1,1,1",
  32. mrotate = "0,0,0"
  33. })
  34. end
  35. end
  36. --[[ self.MonthTimer = SL:Schedule(self.MonthTimer,0, 1, 1, function()
  37. GUI:SetActive(self.view.root,false)
  38. end)]]
  39. end
  40. function this:Close()
  41. end
  42. return this