UINotifyActivityTipsView_Generate.lua 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308
  1. ---@class UINotifyActivityTips__Generate_txtDsc
  2. ---@field public gameObject UnityEngine.GameObject
  3. ---@field public uILocalizeScript UILocalizeScript
  4. ---@class UINotifyActivityTips__Generate_activityScrollList_content
  5. ---@field public gameObject UnityEngine.GameObject
  6. ---@field public verticalLayoutGroup UnityEngine.UI.VerticalLayoutGroup
  7. ---@class UINotifyActivityTips__Generate_activityScrollList
  8. ---@field public gameObject UnityEngine.GameObject
  9. ---@field public loopVerticalScrollRect UnityEngine.UI.LoopVerticalScrollRect
  10. ---@field public content UINotifyActivityTips__Generate_activityScrollList_content
  11. ---@class UINotifyActivityTips__Generate_notifyScrollList_content
  12. ---@field public gameObject UnityEngine.GameObject
  13. ---@field public verticalLayoutGroup UnityEngine.UI.VerticalLayoutGroup
  14. ---@class UINotifyActivityTips__Generate_notifyScrollList
  15. ---@field public gameObject UnityEngine.GameObject
  16. ---@field public loopVerticalScrollRect UnityEngine.UI.LoopVerticalScrollRect
  17. ---@field public content UINotifyActivityTips__Generate_notifyScrollList_content
  18. ---@class UINotifyActivityTips__Generate_toggleNotify
  19. ---@field public gameObject UnityEngine.GameObject
  20. ---@field public toggle UnityEngine.UI.Toggle
  21. ---@class UINotifyActivityTips__Generate_toggleActivity
  22. ---@field public gameObject UnityEngine.GameObject
  23. ---@field public toggle UnityEngine.UI.Toggle
  24. ---@class UINotifyActivityTips__Generate_BtnClose
  25. ---@field public gameObject UnityEngine.GameObject
  26. ---@field public button UnityEngine.UI.Button
  27. ---@class UINotifyActivityTips__Generate_AnyBtn
  28. ---@field public gameObject UnityEngine.GameObject
  29. ---@field public button UnityEngine.UI.Button
  30. ---@class UINotifyActivityTips__Generate_uIAnimator
  31. ---@field public gameObject UnityEngine.GameObject
  32. ---@field public animator UnityEngine.Animator
  33. ---@class UINotifyActivityTips__Generate
  34. ---@field private gameObject UnityEngine.GameObject
  35. ---@field private transform UnityEngine.Transform
  36. ---@field private uIAnimator UINotifyActivityTips__Generate_uIAnimator
  37. ---@field private AnyBtn UINotifyActivityTips__Generate_AnyBtn
  38. ---@field private window UnityEngine.GameObject
  39. ---@field private BtnClose UINotifyActivityTips__Generate_BtnClose
  40. ---@field private toggleActivity UINotifyActivityTips__Generate_toggleActivity
  41. ---@field private toggleNotify UINotifyActivityTips__Generate_toggleNotify
  42. ---@field private notifyScrollList UINotifyActivityTips__Generate_notifyScrollList
  43. ---@field private activityScrollList UINotifyActivityTips__Generate_activityScrollList
  44. ---@field private actEmptyNode UnityEngine.GameObject
  45. ---@field private txtDsc UINotifyActivityTips__Generate_txtDsc
  46. local UINotifyActivityTipsView = class("UINotifyActivityTipsView", require("UIViewBase"))
  47. function UINotifyActivityTipsView:ctor()
  48. end
  49. ---@private
  50. function UINotifyActivityTipsView:SetActive(result)
  51. self.gameObject:SetActive(result)
  52. end
  53. ---@private
  54. function UINotifyActivityTipsView:InitGenerate(Root, data)
  55. self.transform = Root
  56. self.inited = true
  57. if self.super.Init then
  58. self.super.Init(self)
  59. end
  60. local tmp
  61. self:InitGenerate__1(Root,data)
  62. self:InitGenerate__2(Root,data)
  63. self:InitGenerate__3(Root,data)
  64. self:InitGenerate__4(Root,data)
  65. self:InitGenerate__5(Root,data)
  66. self:InitGenerate__6(Root,data)
  67. self:InitGenerate__7(Root,data)
  68. self:InitGenerate__8(Root,data)
  69. self:InitGenerate__9(Root,data)
  70. self:InitGenerate__10(Root,data)
  71. self:InitGenerate__11(Root,data)
  72. self:InitGenerate__12(Root,data)
  73. end
  74. ---@private
  75. function UINotifyActivityTipsView:InitGenerate__1(Root, data)
  76. --[[
  77. UIAnimator
  78. --]]
  79. local tmp = Root:Find("UIAnimator").gameObject
  80. if tolua.getpeer(tmp) == nil then
  81. tolua.setpeer(tmp, {})
  82. end
  83. self.uIAnimator = tmp
  84. tmp.animator = tmp:GetComponent(Enum.TypeInfo.Animator)
  85. tmp.animator.logWarnings = false
  86. end
  87. ---@private
  88. function UINotifyActivityTipsView:InitGenerate__2(Root, data)
  89. --[[
  90. UIAnimator/Alpha
  91. --]]
  92. local tmp = Root:Find("UIAnimator/Alpha").gameObject
  93. if tolua.getpeer(tmp) == nil then
  94. tolua.setpeer(tmp, {})
  95. end
  96. self.AnyBtn = tmp
  97. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  98. end
  99. ---@private
  100. function UINotifyActivityTipsView:InitGenerate__3(Root, data)
  101. --[[
  102. UIAnimator/Window
  103. --]]
  104. local tmp = Root:Find("UIAnimator/Window").gameObject
  105. if tolua.getpeer(tmp) == nil then
  106. tolua.setpeer(tmp, {})
  107. end
  108. self.window = tmp
  109. end
  110. ---@private
  111. function UINotifyActivityTipsView:InitGenerate__4(Root, data)
  112. --[[
  113. UIAnimator/Window/ClostBox/BtnCloseFlat
  114. --]]
  115. local tmp = Root:Find("UIAnimator/Window/ClostBox/BtnCloseFlat").gameObject
  116. if tolua.getpeer(tmp) == nil then
  117. tolua.setpeer(tmp, {})
  118. end
  119. self.BtnClose = tmp
  120. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  121. end
  122. ---@private
  123. function UINotifyActivityTipsView:InitGenerate__5(Root, data)
  124. --[[
  125. UIAnimator/Window/ToggleGroup/ToggleActivity
  126. --]]
  127. local tmp = Root:Find("UIAnimator/Window/ToggleGroup/ToggleActivity").gameObject
  128. if tolua.getpeer(tmp) == nil then
  129. tolua.setpeer(tmp, {})
  130. end
  131. self.toggleActivity = tmp
  132. tmp.toggle = tmp:GetComponent(Enum.TypeInfo.Toggle)
  133. end
  134. ---@private
  135. function UINotifyActivityTipsView:InitGenerate__6(Root, data)
  136. --[[
  137. UIAnimator/Window/ToggleGroup/ToggleNotify
  138. --]]
  139. local tmp = Root:Find("UIAnimator/Window/ToggleGroup/ToggleNotify").gameObject
  140. if tolua.getpeer(tmp) == nil then
  141. tolua.setpeer(tmp, {})
  142. end
  143. self.toggleNotify = tmp
  144. tmp.toggle = tmp:GetComponent(Enum.TypeInfo.Toggle)
  145. end
  146. ---@private
  147. function UINotifyActivityTipsView:InitGenerate__7(Root, data)
  148. --[[
  149. UIAnimator/Window/ScrollViewNotify
  150. --]]
  151. local tmp = Root:Find("UIAnimator/Window/ScrollViewNotify").gameObject
  152. if tolua.getpeer(tmp) == nil then
  153. tolua.setpeer(tmp, {})
  154. end
  155. self.notifyScrollList = tmp
  156. tmp.loopVerticalScrollRect = tmp:GetComponent(Enum.TypeInfo.LoopVerticalScrollRect)
  157. end
  158. ---@private
  159. function UINotifyActivityTipsView:InitGenerate__8(Root, data)
  160. --[[
  161. UIAnimator/Window/ScrollViewNotify/Viewport/Content
  162. --]]
  163. local tmp = Root:Find("UIAnimator/Window/ScrollViewNotify/Viewport/Content").gameObject
  164. if tolua.getpeer(tmp) == nil then
  165. tolua.setpeer(tmp, {})
  166. end
  167. self.notifyScrollList.content = tmp
  168. tmp.verticalLayoutGroup = tmp:GetComponent(Enum.TypeInfo.VerticalLayoutGroup)
  169. end
  170. ---@private
  171. function UINotifyActivityTipsView:InitGenerate__9(Root, data)
  172. --[[
  173. UIAnimator/Window/ScrollViewActivity
  174. --]]
  175. local tmp = Root:Find("UIAnimator/Window/ScrollViewActivity").gameObject
  176. if tolua.getpeer(tmp) == nil then
  177. tolua.setpeer(tmp, {})
  178. end
  179. self.activityScrollList = tmp
  180. tmp.loopVerticalScrollRect = tmp:GetComponent(Enum.TypeInfo.LoopVerticalScrollRect)
  181. end
  182. ---@private
  183. function UINotifyActivityTipsView:InitGenerate__10(Root, data)
  184. --[[
  185. UIAnimator/Window/ScrollViewActivity/Viewport/Content
  186. --]]
  187. local tmp = Root:Find("UIAnimator/Window/ScrollViewActivity/Viewport/Content").gameObject
  188. if tolua.getpeer(tmp) == nil then
  189. tolua.setpeer(tmp, {})
  190. end
  191. self.activityScrollList.content = tmp
  192. tmp.verticalLayoutGroup = tmp:GetComponent(Enum.TypeInfo.VerticalLayoutGroup)
  193. end
  194. ---@private
  195. function UINotifyActivityTipsView:InitGenerate__11(Root, data)
  196. --[[
  197. UIAnimator/Window/ActivityEmpty
  198. --]]
  199. local tmp = Root:Find("UIAnimator/Window/ActivityEmpty").gameObject
  200. if tolua.getpeer(tmp) == nil then
  201. tolua.setpeer(tmp, {})
  202. end
  203. self.actEmptyNode = tmp
  204. end
  205. ---@private
  206. function UINotifyActivityTipsView:InitGenerate__12(Root, data)
  207. --[[
  208. UIAnimator/Window/ActivityEmpty/TalkBox/TxtDsc
  209. --]]
  210. local tmp = Root:Find("UIAnimator/Window/ActivityEmpty/TalkBox/TxtDsc").gameObject
  211. if tolua.getpeer(tmp) == nil then
  212. tolua.setpeer(tmp, {})
  213. end
  214. self.txtDsc = tmp
  215. tmp.uILocalizeScript = tmp:GetComponent(Enum.TypeInfo.UILocalizeScript)
  216. end
  217. ---@private
  218. function UINotifyActivityTipsView:GenerateDestroy()
  219. if tolua.getpeer(self.activityScrollList.content) ~= nil then
  220. tolua.setpeer(self.activityScrollList.content, nil)
  221. end
  222. if tolua.getpeer(self.notifyScrollList.content) ~= nil then
  223. tolua.setpeer(self.notifyScrollList.content, nil)
  224. end
  225. if tolua.getpeer(self.uIAnimator) ~= nil then
  226. tolua.setpeer(self.uIAnimator, nil)
  227. end
  228. self.uIAnimator = nil
  229. if tolua.getpeer(self.AnyBtn) ~= nil then
  230. tolua.setpeer(self.AnyBtn, nil)
  231. end
  232. self.AnyBtn = nil
  233. if tolua.getpeer(self.window) ~= nil then
  234. tolua.setpeer(self.window, nil)
  235. end
  236. self.window = nil
  237. if tolua.getpeer(self.BtnClose) ~= nil then
  238. tolua.setpeer(self.BtnClose, nil)
  239. end
  240. self.BtnClose = nil
  241. if tolua.getpeer(self.toggleActivity) ~= nil then
  242. tolua.setpeer(self.toggleActivity, nil)
  243. end
  244. self.toggleActivity = nil
  245. if tolua.getpeer(self.toggleNotify) ~= nil then
  246. tolua.setpeer(self.toggleNotify, nil)
  247. end
  248. self.toggleNotify = nil
  249. if tolua.getpeer(self.notifyScrollList) ~= nil then
  250. tolua.setpeer(self.notifyScrollList, nil)
  251. end
  252. self.notifyScrollList = nil
  253. if tolua.getpeer(self.activityScrollList) ~= nil then
  254. tolua.setpeer(self.activityScrollList, nil)
  255. end
  256. self.activityScrollList = nil
  257. if tolua.getpeer(self.actEmptyNode) ~= nil then
  258. tolua.setpeer(self.actEmptyNode, nil)
  259. end
  260. self.actEmptyNode = nil
  261. if tolua.getpeer(self.txtDsc) ~= nil then
  262. tolua.setpeer(self.txtDsc, nil)
  263. end
  264. self.txtDsc = nil
  265. self.transform = nil
  266. self.gameObject = nil
  267. self.inited = false
  268. end
  269. return UINotifyActivityTipsView