UICustomerServiceTipsView_Generate.lua 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. ---@class UICustomerServiceTips__Generate_AnyBtn
  2. ---@field public gameObject UnityEngine.GameObject
  3. ---@field public button UnityEngine.UI.Button
  4. ---@class UICustomerServiceTips__Generate_uIAnimator
  5. ---@field public gameObject UnityEngine.GameObject
  6. ---@field public animator UnityEngine.Animator
  7. ---@class UICustomerServiceTips__Generate
  8. ---@field private gameObject UnityEngine.GameObject
  9. ---@field private transform UnityEngine.Transform
  10. ---@field private uIEventHandler UIEventHandler
  11. ---@field private uIAnimator UICustomerServiceTips__Generate_uIAnimator
  12. ---@field private AnyBtn UICustomerServiceTips__Generate_AnyBtn
  13. ---@field private texts UnityEngine.GameObject
  14. local UICustomerServiceTipsView = class("UICustomerServiceTipsView", require("UIViewBase"))
  15. function UICustomerServiceTipsView:ctor()
  16. end
  17. ---@private
  18. function UICustomerServiceTipsView:SetActive(result)
  19. self.gameObject:SetActive(result)
  20. end
  21. ---@private
  22. function UICustomerServiceTipsView:InitGenerate(Root, data)
  23. self.transform = Root
  24. self.inited = true
  25. if self.super.Init then
  26. self.super.Init(self)
  27. end
  28. local tmp
  29. self:InitGenerate__1(Root,data)
  30. self:InitGenerate__2(Root,data)
  31. self:InitGenerate__3(Root,data)
  32. self:InitGenerate__4(Root,data)
  33. end
  34. ---@private
  35. function UICustomerServiceTipsView:InitGenerate__1(Root, data)
  36. --[[
  37. Root
  38. --]]
  39. self.uIEventHandler = Root:GetComponent(Enum.TypeInfo.UIEventHandler)
  40. end
  41. ---@private
  42. function UICustomerServiceTipsView:InitGenerate__2(Root, data)
  43. --[[
  44. UIAnimator
  45. --]]
  46. local tmp = Root:Find("UIAnimator").gameObject
  47. if tolua.getpeer(tmp) == nil then
  48. tolua.setpeer(tmp, {})
  49. end
  50. self.uIAnimator = tmp
  51. tmp.animator = tmp:GetComponent(Enum.TypeInfo.Animator)
  52. tmp.animator.logWarnings = false
  53. end
  54. ---@private
  55. function UICustomerServiceTipsView:InitGenerate__3(Root, data)
  56. --[[
  57. UIAnimator/Alpha
  58. --]]
  59. local tmp = Root:Find("UIAnimator/Alpha").gameObject
  60. if tolua.getpeer(tmp) == nil then
  61. tolua.setpeer(tmp, {})
  62. end
  63. self.AnyBtn = tmp
  64. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  65. end
  66. ---@private
  67. function UICustomerServiceTipsView:InitGenerate__4(Root, data)
  68. --[[
  69. UIAnimator/Window/Bg/TopItem/MainInfo/Texts
  70. --]]
  71. local tmp = Root:Find("UIAnimator/Window/Bg/TopItem/MainInfo/Texts").gameObject
  72. if tolua.getpeer(tmp) == nil then
  73. tolua.setpeer(tmp, {})
  74. end
  75. self.texts = tmp
  76. end
  77. ---@private
  78. function UICustomerServiceTipsView:GenerateDestroy()
  79. if tolua.getpeer(self.uIAnimator) ~= nil then
  80. tolua.setpeer(self.uIAnimator, nil)
  81. end
  82. self.uIAnimator = nil
  83. if tolua.getpeer(self.AnyBtn) ~= nil then
  84. tolua.setpeer(self.AnyBtn, nil)
  85. end
  86. self.AnyBtn = nil
  87. if tolua.getpeer(self.texts) ~= nil then
  88. tolua.setpeer(self.texts, nil)
  89. end
  90. self.texts = nil
  91. self.transform = nil
  92. self.gameObject = nil
  93. self.inited = false
  94. end
  95. return UICustomerServiceTipsView