UIArtifactTipsCtr.lua 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. local UIArtifactTipsCtr = class("UIArtifactTipsCtr", require("UICtrBase"))
  2. function UIArtifactTipsCtr:Init(view)
  3. self.view = view
  4. end
  5. function UIArtifactTipsCtr:SetData(data)
  6. self.asyncIdx = 0
  7. if data == nil then return end
  8. self.data = data
  9. end
  10. function UIArtifactTipsCtr:GetAsyncIdx()
  11. self.asyncIdx = self.asyncIdx + 1
  12. return self.asyncIdx
  13. end
  14. function UIArtifactTipsCtr:GetData()
  15. return self.data
  16. end
  17. function UIArtifactTipsCtr:GetSkillEquipData()
  18. return self.data[1].logicData
  19. end
  20. function UIArtifactTipsCtr:GetHeroId()
  21. return self.data[1].heroId
  22. end
  23. function UIArtifactTipsCtr:GetHeroCfgId()
  24. return self.data[1].heroCfgId
  25. end
  26. function UIArtifactTipsCtr:GetHeroNickname()
  27. return self.data[1].nickname
  28. end
  29. function UIArtifactTipsCtr:GetEnterType()
  30. return self.data[2]
  31. end
  32. function UIArtifactTipsCtr:GetEnterFrom()
  33. return self.data[3]
  34. end
  35. function UIArtifactTipsCtr:SendSlotUpReq()
  36. ManagerContainer.DataMgr.SkillEquipData:SendSkillEquipSlotLevelUpReq(self.data[1].heroId, 1)
  37. end
  38. function UIArtifactTipsCtr:OnDispose()
  39. self.data = nil
  40. self.view = nil
  41. end
  42. return UIArtifactTipsCtr