UIDiffTaskView_Generate.lua 10 KB

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