UIPOPGotAnimsView_Generate.lua 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. ---@class UIPOPGotAnims__Generate_alpha
  2. ---@field public gameObject UnityEngine.GameObject
  3. ---@field public button UnityEngine.UI.Button
  4. ---@class UIPOPGotAnims__Generate
  5. ---@field private gameObject UnityEngine.GameObject
  6. ---@field private transform UnityEngine.Transform
  7. ---@field private alpha UIPOPGotAnims__Generate_alpha
  8. local UIPOPGotAnimsView = class("UIPOPGotAnimsView", require("UIViewBase"))
  9. function UIPOPGotAnimsView:ctor()
  10. end
  11. ---@private
  12. function UIPOPGotAnimsView:SetActive(result)
  13. self.gameObject:SetActive(result)
  14. end
  15. ---@private
  16. function UIPOPGotAnimsView:InitGenerate(Root, data)
  17. self.transform = Root
  18. self.inited = true
  19. if self.super.Init then
  20. self.super.Init(self)
  21. end
  22. local tmp
  23. self:InitGenerate__1(Root,data)
  24. self:InitGenerate__2(Root,data)
  25. end
  26. ---@private
  27. function UIPOPGotAnimsView:InitGenerate__1(Root, data)
  28. --[[
  29. Root
  30. --]]
  31. end
  32. ---@private
  33. function UIPOPGotAnimsView:InitGenerate__2(Root, data)
  34. --[[
  35. Alpha
  36. --]]
  37. local tmp = Root:Find("Alpha").gameObject
  38. if tolua.getpeer(tmp) == nil then
  39. tolua.setpeer(tmp, {})
  40. end
  41. self.alpha = tmp
  42. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  43. end
  44. ---@private
  45. function UIPOPGotAnimsView:GenerateDestroy()
  46. if tolua.getpeer(self.alpha) ~= nil then
  47. tolua.setpeer(self.alpha, nil)
  48. end
  49. self.alpha = nil
  50. self.transform = nil
  51. self.gameObject = nil
  52. self.inited = false
  53. end
  54. return UIPOPGotAnimsView