UINotifyTipsView_Generate.lua 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  1. ---@class UINotifyTips__Generate_BtnClose
  2. ---@field public gameObject UnityEngine.GameObject
  3. ---@field public button UnityEngine.UI.Button
  4. ---@class UINotifyTips__Generate_scrollViewNotify_content
  5. ---@field public gameObject UnityEngine.GameObject
  6. ---@field public verticalLayoutGroup UnityEngine.UI.VerticalLayoutGroup
  7. ---@class UINotifyTips__Generate_scrollViewNotify
  8. ---@field public gameObject UnityEngine.GameObject
  9. ---@field public loopVerticalScrollRect UnityEngine.UI.LoopVerticalScrollRect
  10. ---@field public content UINotifyTips__Generate_scrollViewNotify_content
  11. ---@class UINotifyTips__Generate_AnyBtn
  12. ---@field public gameObject UnityEngine.GameObject
  13. ---@field public button UnityEngine.UI.Button
  14. ---@class UINotifyTips__Generate_uIAnimator
  15. ---@field public gameObject UnityEngine.GameObject
  16. ---@field public animator UnityEngine.Animator
  17. ---@class UINotifyTips__Generate
  18. ---@field private gameObject UnityEngine.GameObject
  19. ---@field private transform UnityEngine.Transform
  20. ---@field private uIAnimator UINotifyTips__Generate_uIAnimator
  21. ---@field private AnyBtn UINotifyTips__Generate_AnyBtn
  22. ---@field private window UnityEngine.GameObject
  23. ---@field private scrollViewNotify UINotifyTips__Generate_scrollViewNotify
  24. ---@field private BtnClose UINotifyTips__Generate_BtnClose
  25. local UINotifyTipsView = class("UINotifyTipsView", require("UIViewBase"))
  26. function UINotifyTipsView:ctor()
  27. end
  28. ---@private
  29. function UINotifyTipsView:SetActive(result)
  30. self.gameObject:SetActive(result)
  31. end
  32. ---@private
  33. function UINotifyTipsView:InitGenerate(Root, data)
  34. self.transform = Root
  35. self.inited = true
  36. if self.super.Init then
  37. self.super.Init(self)
  38. end
  39. local tmp
  40. self:InitGenerate__1(Root,data)
  41. self:InitGenerate__2(Root,data)
  42. self:InitGenerate__3(Root,data)
  43. self:InitGenerate__4(Root,data)
  44. self:InitGenerate__5(Root,data)
  45. self:InitGenerate__6(Root,data)
  46. end
  47. ---@private
  48. function UINotifyTipsView:InitGenerate__1(Root, data)
  49. --[[
  50. UIAnimator
  51. --]]
  52. local tmp = Root:Find("UIAnimator").gameObject
  53. if tolua.getpeer(tmp) == nil then
  54. tolua.setpeer(tmp, {})
  55. end
  56. self.uIAnimator = tmp
  57. tmp.animator = tmp:GetComponent(Enum.TypeInfo.Animator)
  58. tmp.animator.logWarnings = false
  59. end
  60. ---@private
  61. function UINotifyTipsView:InitGenerate__2(Root, data)
  62. --[[
  63. UIAnimator/Alpha
  64. --]]
  65. local tmp = Root:Find("UIAnimator/Alpha").gameObject
  66. if tolua.getpeer(tmp) == nil then
  67. tolua.setpeer(tmp, {})
  68. end
  69. self.AnyBtn = tmp
  70. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  71. end
  72. ---@private
  73. function UINotifyTipsView:InitGenerate__3(Root, data)
  74. --[[
  75. UIAnimator/Window
  76. --]]
  77. local tmp = Root:Find("UIAnimator/Window").gameObject
  78. if tolua.getpeer(tmp) == nil then
  79. tolua.setpeer(tmp, {})
  80. end
  81. self.window = tmp
  82. end
  83. ---@private
  84. function UINotifyTipsView:InitGenerate__4(Root, data)
  85. --[[
  86. UIAnimator/Window/ScrollViewNotify
  87. --]]
  88. local tmp = Root:Find("UIAnimator/Window/ScrollViewNotify").gameObject
  89. if tolua.getpeer(tmp) == nil then
  90. tolua.setpeer(tmp, {})
  91. end
  92. self.scrollViewNotify = tmp
  93. tmp.loopVerticalScrollRect = tmp:GetComponent(Enum.TypeInfo.LoopVerticalScrollRect)
  94. end
  95. ---@private
  96. function UINotifyTipsView:InitGenerate__5(Root, data)
  97. --[[
  98. UIAnimator/Window/ScrollViewNotify/Viewport/Content
  99. --]]
  100. local tmp = Root:Find("UIAnimator/Window/ScrollViewNotify/Viewport/Content").gameObject
  101. if tolua.getpeer(tmp) == nil then
  102. tolua.setpeer(tmp, {})
  103. end
  104. self.scrollViewNotify.content = tmp
  105. tmp.verticalLayoutGroup = tmp:GetComponent(Enum.TypeInfo.VerticalLayoutGroup)
  106. end
  107. ---@private
  108. function UINotifyTipsView:InitGenerate__6(Root, data)
  109. --[[
  110. UIAnimator/Window/ClostBox/BtnCloseFlat
  111. --]]
  112. local tmp = Root:Find("UIAnimator/Window/ClostBox/BtnCloseFlat").gameObject
  113. if tolua.getpeer(tmp) == nil then
  114. tolua.setpeer(tmp, {})
  115. end
  116. self.BtnClose = tmp
  117. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  118. end
  119. ---@private
  120. function UINotifyTipsView:GenerateDestroy()
  121. if tolua.getpeer(self.scrollViewNotify.content) ~= nil then
  122. tolua.setpeer(self.scrollViewNotify.content, nil)
  123. end
  124. if tolua.getpeer(self.uIAnimator) ~= nil then
  125. tolua.setpeer(self.uIAnimator, nil)
  126. end
  127. self.uIAnimator = nil
  128. if tolua.getpeer(self.AnyBtn) ~= nil then
  129. tolua.setpeer(self.AnyBtn, nil)
  130. end
  131. self.AnyBtn = nil
  132. if tolua.getpeer(self.window) ~= nil then
  133. tolua.setpeer(self.window, nil)
  134. end
  135. self.window = nil
  136. if tolua.getpeer(self.scrollViewNotify) ~= nil then
  137. tolua.setpeer(self.scrollViewNotify, nil)
  138. end
  139. self.scrollViewNotify = nil
  140. if tolua.getpeer(self.BtnClose) ~= nil then
  141. tolua.setpeer(self.BtnClose, nil)
  142. end
  143. self.BtnClose = nil
  144. self.transform = nil
  145. self.gameObject = nil
  146. self.inited = false
  147. end
  148. return UINotifyTipsView