UIDiffTaskView_Generate.lua 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463
  1. ---@class UIDiffTask__Generate_title
  2. ---@field public gameObject UnityEngine.GameObject
  3. ---@field public text TMPro.TextMeshProUGUI
  4. ---@class UIDiffTask__Generate_taskTxt
  5. ---@field public gameObject UnityEngine.GameObject
  6. ---@field public text TMPro.TextMeshProUGUI
  7. ---@class UIDiffTask__Generate_goodsItemsContent
  8. ---@field public gameObject UnityEngine.GameObject
  9. ---@field public horizontalLayoutGroup UnityEngine.UI.HorizontalLayoutGroup
  10. ---@class UIDiffTask__Generate_goodsItems
  11. ---@field public gameObject UnityEngine.GameObject
  12. ---@field public loopHorizontalScrollRect UnityEngine.UI.LoopHorizontalScrollRect
  13. ---@class UIDiffTask__Generate_BtnClose
  14. ---@field public gameObject UnityEngine.GameObject
  15. ---@field public button UnityEngine.UI.Button
  16. ---@class UIDiffTask__Generate_content
  17. ---@field public gameObject UnityEngine.GameObject
  18. ---@field public horizontalLayoutGroup UnityEngine.UI.HorizontalLayoutGroup
  19. ---@class UIDiffTask__Generate_scrollView
  20. ---@field public gameObject UnityEngine.GameObject
  21. ---@field public loopHorizontalScrollRect UnityEngine.UI.LoopHorizontalScrollRect
  22. ---@class UIDiffTask__Generate_rBtntxt
  23. ---@field public gameObject UnityEngine.GameObject
  24. ---@field public text TMPro.TextMeshProUGUI
  25. ---@class UIDiffTask__Generate_btnArrowR
  26. ---@field public gameObject UnityEngine.GameObject
  27. ---@field public button UnityEngine.UI.Button
  28. ---@class UIDiffTask__Generate_lBtntxt
  29. ---@field public gameObject UnityEngine.GameObject
  30. ---@field public text TMPro.TextMeshProUGUI
  31. ---@class UIDiffTask__Generate_btnArrowL
  32. ---@field public gameObject UnityEngine.GameObject
  33. ---@field public button UnityEngine.UI.Button
  34. ---@class UIDiffTask__Generate_btnGoto
  35. ---@field public gameObject UnityEngine.GameObject
  36. ---@field public button UnityEngine.UI.Button
  37. ---@field public text UnityEngine.GameObject
  38. ---@class UIDiffTask__Generate_getBtn_number
  39. ---@field public gameObject UnityEngine.GameObject
  40. ---@field public text TMPro.TextMeshProUGUI
  41. ---@class UIDiffTask__Generate_getBtn
  42. ---@field public gameObject UnityEngine.GameObject
  43. ---@field public button UnityEngine.UI.Button
  44. ---@field public number UIDiffTask__Generate_getBtn_number
  45. ---@class UIDiffTask__Generate_AnyBtn
  46. ---@field public gameObject UnityEngine.GameObject
  47. ---@field public button UnityEngine.UI.Button
  48. ---@class UIDiffTask__Generate
  49. ---@field private gameObject UnityEngine.GameObject
  50. ---@field private transform UnityEngine.Transform
  51. ---@field private AnyBtn UIDiffTask__Generate_AnyBtn
  52. ---@field private table1 UnityEngine.GameObject
  53. ---@field private table2 UnityEngine.GameObject
  54. ---@field private getBtn UIDiffTask__Generate_getBtn
  55. ---@field private sealBtn UnityEngine.GameObject
  56. ---@field private btnGoto UIDiffTask__Generate_btnGoto
  57. ---@field private btnArrowL UIDiffTask__Generate_btnArrowL
  58. ---@field private lBtntxt UIDiffTask__Generate_lBtntxt
  59. ---@field private btnArrowR UIDiffTask__Generate_btnArrowR
  60. ---@field private rBtntxt UIDiffTask__Generate_rBtntxt
  61. ---@field private scrollView UIDiffTask__Generate_scrollView
  62. ---@field private content UIDiffTask__Generate_content
  63. ---@field private BtnClose UIDiffTask__Generate_BtnClose
  64. ---@field private goodsItems UIDiffTask__Generate_goodsItems
  65. ---@field private goodsItemsContent UIDiffTask__Generate_goodsItemsContent
  66. ---@field private taskTxt UIDiffTask__Generate_taskTxt
  67. ---@field private title UIDiffTask__Generate_title
  68. local UIDiffTaskView = class("UIDiffTaskView", require("UIViewBase"))
  69. function UIDiffTaskView:ctor()
  70. end
  71. ---@private
  72. function UIDiffTaskView:SetActive(result)
  73. self.gameObject:SetActive(result)
  74. end
  75. ---@private
  76. function UIDiffTaskView:InitGenerate(Root, data)
  77. self.transform = Root
  78. self.inited = true
  79. if self.super.Init then
  80. self.super.Init(self)
  81. end
  82. local tmp
  83. self:InitGenerate__1(Root,data)
  84. self:InitGenerate__2(Root,data)
  85. self:InitGenerate__3(Root,data)
  86. self:InitGenerate__4(Root,data)
  87. self:InitGenerate__5(Root,data)
  88. self:InitGenerate__6(Root,data)
  89. self:InitGenerate__7(Root,data)
  90. self:InitGenerate__8(Root,data)
  91. self:InitGenerate__9(Root,data)
  92. self:InitGenerate__10(Root,data)
  93. self:InitGenerate__11(Root,data)
  94. self:InitGenerate__12(Root,data)
  95. self:InitGenerate__13(Root,data)
  96. self:InitGenerate__14(Root,data)
  97. self:InitGenerate__15(Root,data)
  98. self:InitGenerate__16(Root,data)
  99. self:InitGenerate__17(Root,data)
  100. self:InitGenerate__18(Root,data)
  101. self:InitGenerate__19(Root,data)
  102. end
  103. ---@private
  104. function UIDiffTaskView:InitGenerate__1(Root, data)
  105. --[[
  106. UIAnimator/Alpha
  107. --]]
  108. local tmp = Root:Find("UIAnimator/Alpha").gameObject
  109. if tolua.getpeer(tmp) == nil then
  110. tolua.setpeer(tmp, {})
  111. end
  112. self.AnyBtn = tmp
  113. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  114. end
  115. ---@private
  116. function UIDiffTaskView:InitGenerate__2(Root, data)
  117. --[[
  118. UIAnimator/Window/BG/table1
  119. --]]
  120. local tmp = Root:Find("UIAnimator/Window/BG/table1").gameObject
  121. if tolua.getpeer(tmp) == nil then
  122. tolua.setpeer(tmp, {})
  123. end
  124. self.table1 = tmp
  125. end
  126. ---@private
  127. function UIDiffTaskView:InitGenerate__3(Root, data)
  128. --[[
  129. UIAnimator/Window/BG/table2
  130. --]]
  131. local tmp = Root:Find("UIAnimator/Window/BG/table2").gameObject
  132. if tolua.getpeer(tmp) == nil then
  133. tolua.setpeer(tmp, {})
  134. end
  135. self.table2 = tmp
  136. end
  137. ---@private
  138. function UIDiffTaskView:InitGenerate__4(Root, data)
  139. --[[
  140. UIAnimator/Window/GetBtn
  141. --]]
  142. local tmp = Root:Find("UIAnimator/Window/GetBtn").gameObject
  143. if tolua.getpeer(tmp) == nil then
  144. tolua.setpeer(tmp, {})
  145. end
  146. self.getBtn = tmp
  147. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  148. end
  149. ---@private
  150. function UIDiffTaskView:InitGenerate__5(Root, data)
  151. --[[
  152. UIAnimator/Window/GetBtn/Number
  153. --]]
  154. local tmp = Root:Find("UIAnimator/Window/GetBtn/Number").gameObject
  155. if tolua.getpeer(tmp) == nil then
  156. tolua.setpeer(tmp, {})
  157. end
  158. self.getBtn.number = tmp
  159. tmp.text = tmp:GetComponent(Enum.TypeInfo.TextMeshProUGUI)
  160. end
  161. ---@private
  162. function UIDiffTaskView:InitGenerate__6(Root, data)
  163. --[[
  164. UIAnimator/Window/Seal
  165. --]]
  166. local tmp = Root:Find("UIAnimator/Window/Seal").gameObject
  167. if tolua.getpeer(tmp) == nil then
  168. tolua.setpeer(tmp, {})
  169. end
  170. self.sealBtn = tmp
  171. end
  172. ---@private
  173. function UIDiffTaskView:InitGenerate__7(Root, data)
  174. --[[
  175. UIAnimator/Window/BtnGoto
  176. --]]
  177. local tmp = Root:Find("UIAnimator/Window/BtnGoto").gameObject
  178. if tolua.getpeer(tmp) == nil then
  179. tolua.setpeer(tmp, {})
  180. end
  181. self.btnGoto = tmp
  182. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  183. end
  184. ---@private
  185. function UIDiffTaskView:InitGenerate__8(Root, data)
  186. --[[
  187. UIAnimator/Window/BtnGoto/Text
  188. --]]
  189. local tmp = Root:Find("UIAnimator/Window/BtnGoto/Text").gameObject
  190. if tolua.getpeer(tmp) == nil then
  191. tolua.setpeer(tmp, {})
  192. end
  193. self.btnGoto.text = tmp
  194. end
  195. ---@private
  196. function UIDiffTaskView:InitGenerate__9(Root, data)
  197. --[[
  198. UIAnimator/Window/BtnArrowL
  199. --]]
  200. local tmp = Root:Find("UIAnimator/Window/BtnArrowL").gameObject
  201. if tolua.getpeer(tmp) == nil then
  202. tolua.setpeer(tmp, {})
  203. end
  204. self.btnArrowL = tmp
  205. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  206. end
  207. ---@private
  208. function UIDiffTaskView:InitGenerate__10(Root, data)
  209. --[[
  210. UIAnimator/Window/BtnArrowL/LBtntxt
  211. --]]
  212. local tmp = Root:Find("UIAnimator/Window/BtnArrowL/LBtntxt").gameObject
  213. if tolua.getpeer(tmp) == nil then
  214. tolua.setpeer(tmp, {})
  215. end
  216. self.lBtntxt = tmp
  217. tmp.text = tmp:GetComponent(Enum.TypeInfo.TextMeshProUGUI)
  218. end
  219. ---@private
  220. function UIDiffTaskView:InitGenerate__11(Root, data)
  221. --[[
  222. UIAnimator/Window/BtnArrowR
  223. --]]
  224. local tmp = Root:Find("UIAnimator/Window/BtnArrowR").gameObject
  225. if tolua.getpeer(tmp) == nil then
  226. tolua.setpeer(tmp, {})
  227. end
  228. self.btnArrowR = tmp
  229. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  230. end
  231. ---@private
  232. function UIDiffTaskView:InitGenerate__12(Root, data)
  233. --[[
  234. UIAnimator/Window/BtnArrowR/RBtntxt
  235. --]]
  236. local tmp = Root:Find("UIAnimator/Window/BtnArrowR/RBtntxt").gameObject
  237. if tolua.getpeer(tmp) == nil then
  238. tolua.setpeer(tmp, {})
  239. end
  240. self.rBtntxt = tmp
  241. tmp.text = tmp:GetComponent(Enum.TypeInfo.TextMeshProUGUI)
  242. end
  243. ---@private
  244. function UIDiffTaskView:InitGenerate__13(Root, data)
  245. --[[
  246. UIAnimator/Window/TaskItems/ScrollView
  247. --]]
  248. local tmp = Root:Find("UIAnimator/Window/TaskItems/ScrollView").gameObject
  249. if tolua.getpeer(tmp) == nil then
  250. tolua.setpeer(tmp, {})
  251. end
  252. self.scrollView = tmp
  253. tmp.loopHorizontalScrollRect = tmp:GetComponent(Enum.TypeInfo.LoopHorizontalScrollRect)
  254. end
  255. ---@private
  256. function UIDiffTaskView:InitGenerate__14(Root, data)
  257. --[[
  258. UIAnimator/Window/TaskItems/ScrollView/Viewport/Content
  259. --]]
  260. local tmp = Root:Find("UIAnimator/Window/TaskItems/ScrollView/Viewport/Content").gameObject
  261. if tolua.getpeer(tmp) == nil then
  262. tolua.setpeer(tmp, {})
  263. end
  264. self.content = tmp
  265. tmp.horizontalLayoutGroup = tmp:GetComponent(Enum.TypeInfo.HorizontalLayoutGroup)
  266. end
  267. ---@private
  268. function UIDiffTaskView:InitGenerate__15(Root, data)
  269. --[[
  270. UIAnimator/Window/BtnCloseFlat
  271. --]]
  272. local tmp = Root:Find("UIAnimator/Window/BtnCloseFlat").gameObject
  273. if tolua.getpeer(tmp) == nil then
  274. tolua.setpeer(tmp, {})
  275. end
  276. self.BtnClose = tmp
  277. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  278. end
  279. ---@private
  280. function UIDiffTaskView:InitGenerate__16(Root, data)
  281. --[[
  282. UIAnimator/Window/GoodsItems
  283. --]]
  284. local tmp = Root:Find("UIAnimator/Window/GoodsItems").gameObject
  285. if tolua.getpeer(tmp) == nil then
  286. tolua.setpeer(tmp, {})
  287. end
  288. self.goodsItems = tmp
  289. tmp.loopHorizontalScrollRect = tmp:GetComponent(Enum.TypeInfo.LoopHorizontalScrollRect)
  290. end
  291. ---@private
  292. function UIDiffTaskView:InitGenerate__17(Root, data)
  293. --[[
  294. UIAnimator/Window/GoodsItems/Viewport/GoodsItemsContent
  295. --]]
  296. local tmp = Root:Find("UIAnimator/Window/GoodsItems/Viewport/GoodsItemsContent").gameObject
  297. if tolua.getpeer(tmp) == nil then
  298. tolua.setpeer(tmp, {})
  299. end
  300. self.goodsItemsContent = tmp
  301. tmp.horizontalLayoutGroup = tmp:GetComponent(Enum.TypeInfo.HorizontalLayoutGroup)
  302. end
  303. ---@private
  304. function UIDiffTaskView:InitGenerate__18(Root, data)
  305. --[[
  306. UIAnimator/Window/TaskTxt
  307. --]]
  308. local tmp = Root:Find("UIAnimator/Window/TaskTxt").gameObject
  309. if tolua.getpeer(tmp) == nil then
  310. tolua.setpeer(tmp, {})
  311. end
  312. self.taskTxt = tmp
  313. tmp.text = tmp:GetComponent(Enum.TypeInfo.TextMeshProUGUI)
  314. end
  315. ---@private
  316. function UIDiffTaskView:InitGenerate__19(Root, data)
  317. --[[
  318. UIAnimator/Window/Title
  319. --]]
  320. local tmp = Root:Find("UIAnimator/Window/Title").gameObject
  321. if tolua.getpeer(tmp) == nil then
  322. tolua.setpeer(tmp, {})
  323. end
  324. self.title = tmp
  325. tmp.text = tmp:GetComponent(Enum.TypeInfo.TextMeshProUGUI)
  326. end
  327. ---@private
  328. function UIDiffTaskView:GenerateDestroy()
  329. if tolua.getpeer(self.btnGoto.text) ~= nil then
  330. tolua.setpeer(self.btnGoto.text, nil)
  331. end
  332. if tolua.getpeer(self.getBtn.number) ~= nil then
  333. tolua.setpeer(self.getBtn.number, nil)
  334. end
  335. if tolua.getpeer(self.AnyBtn) ~= nil then
  336. tolua.setpeer(self.AnyBtn, nil)
  337. end
  338. self.AnyBtn = nil
  339. if tolua.getpeer(self.table1) ~= nil then
  340. tolua.setpeer(self.table1, nil)
  341. end
  342. self.table1 = nil
  343. if tolua.getpeer(self.table2) ~= nil then
  344. tolua.setpeer(self.table2, nil)
  345. end
  346. self.table2 = nil
  347. if tolua.getpeer(self.getBtn) ~= nil then
  348. tolua.setpeer(self.getBtn, nil)
  349. end
  350. self.getBtn = nil
  351. if tolua.getpeer(self.sealBtn) ~= nil then
  352. tolua.setpeer(self.sealBtn, nil)
  353. end
  354. self.sealBtn = nil
  355. if tolua.getpeer(self.btnGoto) ~= nil then
  356. tolua.setpeer(self.btnGoto, nil)
  357. end
  358. self.btnGoto = nil
  359. if tolua.getpeer(self.btnArrowL) ~= nil then
  360. tolua.setpeer(self.btnArrowL, nil)
  361. end
  362. self.btnArrowL = nil
  363. if tolua.getpeer(self.lBtntxt) ~= nil then
  364. tolua.setpeer(self.lBtntxt, nil)
  365. end
  366. self.lBtntxt = nil
  367. if tolua.getpeer(self.btnArrowR) ~= nil then
  368. tolua.setpeer(self.btnArrowR, nil)
  369. end
  370. self.btnArrowR = nil
  371. if tolua.getpeer(self.rBtntxt) ~= nil then
  372. tolua.setpeer(self.rBtntxt, nil)
  373. end
  374. self.rBtntxt = nil
  375. if tolua.getpeer(self.scrollView) ~= nil then
  376. tolua.setpeer(self.scrollView, nil)
  377. end
  378. self.scrollView = nil
  379. if tolua.getpeer(self.content) ~= nil then
  380. tolua.setpeer(self.content, nil)
  381. end
  382. self.content = nil
  383. if tolua.getpeer(self.BtnClose) ~= nil then
  384. tolua.setpeer(self.BtnClose, nil)
  385. end
  386. self.BtnClose = nil
  387. if tolua.getpeer(self.goodsItems) ~= nil then
  388. tolua.setpeer(self.goodsItems, nil)
  389. end
  390. self.goodsItems = nil
  391. if tolua.getpeer(self.goodsItemsContent) ~= nil then
  392. tolua.setpeer(self.goodsItemsContent, nil)
  393. end
  394. self.goodsItemsContent = nil
  395. if tolua.getpeer(self.taskTxt) ~= nil then
  396. tolua.setpeer(self.taskTxt, nil)
  397. end
  398. self.taskTxt = nil
  399. if tolua.getpeer(self.title) ~= nil then
  400. tolua.setpeer(self.title, nil)
  401. end
  402. self.title = nil
  403. self.transform = nil
  404. self.gameObject = nil
  405. self.inited = false
  406. end
  407. return UIDiffTaskView