UIPetStampTipsCtr.lua 732 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. local UIPetStampTipsCtr = class("UIPetStampTipsCtr", require("UICtrBase"))
  2. function UIPetStampTipsCtr:Init(view)
  3. self.view = view
  4. end
  5. function UIPetStampTipsCtr:SetData(data)
  6. self.asyncIdx = 0
  7. if data == nil then return end
  8. self.data = data
  9. end
  10. function UIPetStampTipsCtr:GetAsyncIdx()
  11. self.asyncIdx = self.asyncIdx + 1
  12. return self.asyncIdx
  13. end
  14. function UIPetStampTipsCtr:GetData()
  15. return self.data
  16. end
  17. function UIPetStampTipsCtr:GetStampData()
  18. return self.data.stampData
  19. end
  20. function UIPetStampTipsCtr:GetSlotIdx()
  21. return self.data.slotIdx
  22. end
  23. function UIPetStampTipsCtr:GetPetId()
  24. return self.data.petId
  25. end
  26. function UIPetStampTipsCtr:OnDispose()
  27. self.data = nil
  28. self.view = nil
  29. end
  30. return UIPetStampTipsCtr