UIFashionWashView_Generate.lua 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488
  1. ---@class UIFashionWash__Generate_btnKeep
  2. ---@field public gameObject UnityEngine.GameObject
  3. ---@field public button UnityEngine.UI.Button
  4. ---@class UIFashionWash__Generate_btnWashAgain
  5. ---@field public gameObject UnityEngine.GameObject
  6. ---@field public button UnityEngine.UI.Button
  7. ---@class UIFashionWash__Generate_btnWash
  8. ---@field public gameObject UnityEngine.GameObject
  9. ---@field public button UnityEngine.UI.Button
  10. ---@class UIFashionWash__Generate_washAttrItem5
  11. ---@field public gameObject UnityEngine.GameObject
  12. ---@field public uIEffectCfg UIEffectCfg
  13. ---@class UIFashionWash__Generate_washAttrItem4
  14. ---@field public gameObject UnityEngine.GameObject
  15. ---@field public uIEffectCfg UIEffectCfg
  16. ---@class UIFashionWash__Generate_washAttrItem3
  17. ---@field public gameObject UnityEngine.GameObject
  18. ---@field public uIEffectCfg UIEffectCfg
  19. ---@class UIFashionWash__Generate_washAttrItem2
  20. ---@field public gameObject UnityEngine.GameObject
  21. ---@field public uIEffectCfg UIEffectCfg
  22. ---@class UIFashionWash__Generate_washAttrItem1
  23. ---@field public gameObject UnityEngine.GameObject
  24. ---@field public uIEffectCfg UIEffectCfg
  25. ---@class UIFashionWash__Generate_btnClose
  26. ---@field public gameObject UnityEngine.GameObject
  27. ---@field public button UnityEngine.UI.Button
  28. ---@class UIFashionWash__Generate_bg
  29. ---@field public gameObject UnityEngine.GameObject
  30. ---@field public verticalLayoutGroup UnityEngine.UI.VerticalLayoutGroup
  31. ---@class UIFashionWash__Generate_AnyBtn
  32. ---@field public gameObject UnityEngine.GameObject
  33. ---@field public button UnityEngine.UI.Button
  34. ---@class UIFashionWash__Generate_uIAnimator
  35. ---@field public gameObject UnityEngine.GameObject
  36. ---@field public animator UnityEngine.Animator
  37. ---@class UIFashionWash__Generate
  38. ---@field private gameObject UnityEngine.GameObject
  39. ---@field private transform UnityEngine.Transform
  40. ---@field private uIAnimator UIFashionWash__Generate_uIAnimator
  41. ---@field private AnyBtn UIFashionWash__Generate_AnyBtn
  42. ---@field private window UnityEngine.GameObject
  43. ---@field private bg UIFashionWash__Generate_bg
  44. ---@field private closeBox UnityEngine.GameObject
  45. ---@field private btnClose UIFashionWash__Generate_btnClose
  46. ---@field private washAttrItem1 UIFashionWash__Generate_washAttrItem1
  47. ---@field private washAttrItem2 UIFashionWash__Generate_washAttrItem2
  48. ---@field private washAttrItem3 UIFashionWash__Generate_washAttrItem3
  49. ---@field private washAttrItem4 UIFashionWash__Generate_washAttrItem4
  50. ---@field private washAttrItem5 UIFashionWash__Generate_washAttrItem5
  51. ---@field private btnBox UnityEngine.GameObject
  52. ---@field private boxCost UnityEngine.GameObject
  53. ---@field private cost1 UnityEngine.GameObject
  54. ---@field private cost2 UnityEngine.GameObject
  55. ---@field private cost3 UnityEngine.GameObject
  56. ---@field private btnWash UIFashionWash__Generate_btnWash
  57. ---@field private btnWashAgain UIFashionWash__Generate_btnWashAgain
  58. ---@field private btnKeep UIFashionWash__Generate_btnKeep
  59. local UIFashionWashView = class("UIFashionWashView", require("UIViewBase"))
  60. function UIFashionWashView:ctor()
  61. end
  62. ---@private
  63. function UIFashionWashView:SetActive(result)
  64. self.gameObject:SetActive(result)
  65. end
  66. ---@private
  67. function UIFashionWashView:InitGenerate(Root, data)
  68. self.transform = Root
  69. self.inited = true
  70. if self.super.Init then
  71. self.super.Init(self)
  72. end
  73. local tmp
  74. self:InitGenerate__1(Root,data)
  75. self:InitGenerate__2(Root,data)
  76. self:InitGenerate__3(Root,data)
  77. self:InitGenerate__4(Root,data)
  78. self:InitGenerate__5(Root,data)
  79. self:InitGenerate__6(Root,data)
  80. self:InitGenerate__7(Root,data)
  81. self:InitGenerate__8(Root,data)
  82. self:InitGenerate__9(Root,data)
  83. self:InitGenerate__10(Root,data)
  84. self:InitGenerate__11(Root,data)
  85. self:InitGenerate__12(Root,data)
  86. self:InitGenerate__13(Root,data)
  87. self:InitGenerate__14(Root,data)
  88. self:InitGenerate__15(Root,data)
  89. self:InitGenerate__16(Root,data)
  90. self:InitGenerate__17(Root,data)
  91. self:InitGenerate__18(Root,data)
  92. self:InitGenerate__19(Root,data)
  93. self:InitGenerate__20(Root,data)
  94. end
  95. ---@private
  96. function UIFashionWashView:InitGenerate__1(Root, data)
  97. --[[
  98. Root
  99. --]]
  100. end
  101. ---@private
  102. function UIFashionWashView:InitGenerate__2(Root, data)
  103. --[[
  104. UIAnimator
  105. --]]
  106. local tmp = Root:Find("UIAnimator").gameObject
  107. if tolua.getpeer(tmp) == nil then
  108. tolua.setpeer(tmp, {})
  109. end
  110. self.uIAnimator = tmp
  111. tmp.animator = tmp:GetComponent(Enum.TypeInfo.Animator)
  112. tmp.animator.logWarnings = false
  113. end
  114. ---@private
  115. function UIFashionWashView:InitGenerate__3(Root, data)
  116. --[[
  117. UIAnimator/Alpha
  118. --]]
  119. local tmp = Root:Find("UIAnimator/Alpha").gameObject
  120. if tolua.getpeer(tmp) == nil then
  121. tolua.setpeer(tmp, {})
  122. end
  123. self.AnyBtn = tmp
  124. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  125. end
  126. ---@private
  127. function UIFashionWashView:InitGenerate__4(Root, data)
  128. --[[
  129. UIAnimator/Window
  130. --]]
  131. local tmp = Root:Find("UIAnimator/Window").gameObject
  132. if tolua.getpeer(tmp) == nil then
  133. tolua.setpeer(tmp, {})
  134. end
  135. self.window = tmp
  136. end
  137. ---@private
  138. function UIFashionWashView:InitGenerate__5(Root, data)
  139. --[[
  140. UIAnimator/Window/Bg
  141. --]]
  142. local tmp = Root:Find("UIAnimator/Window/Bg").gameObject
  143. if tolua.getpeer(tmp) == nil then
  144. tolua.setpeer(tmp, {})
  145. end
  146. self.bg = tmp
  147. tmp.verticalLayoutGroup = tmp:GetComponent(Enum.TypeInfo.VerticalLayoutGroup)
  148. end
  149. ---@private
  150. function UIFashionWashView:InitGenerate__6(Root, data)
  151. --[[
  152. UIAnimator/Window/Bg/CloseBox
  153. --]]
  154. local tmp = Root:Find("UIAnimator/Window/Bg/CloseBox").gameObject
  155. if tolua.getpeer(tmp) == nil then
  156. tolua.setpeer(tmp, {})
  157. end
  158. self.closeBox = tmp
  159. end
  160. ---@private
  161. function UIFashionWashView:InitGenerate__7(Root, data)
  162. --[[
  163. UIAnimator/Window/Bg/CloseBox/BtnClose
  164. --]]
  165. local tmp = Root:Find("UIAnimator/Window/Bg/CloseBox/BtnClose").gameObject
  166. if tolua.getpeer(tmp) == nil then
  167. tolua.setpeer(tmp, {})
  168. end
  169. self.btnClose = tmp
  170. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  171. end
  172. ---@private
  173. function UIFashionWashView:InitGenerate__8(Root, data)
  174. --[[
  175. UIAnimator/Window/Bg/WashBox/WashAttrItem1
  176. --]]
  177. local tmp = Root:Find("UIAnimator/Window/Bg/WashBox/WashAttrItem1").gameObject
  178. if tolua.getpeer(tmp) == nil then
  179. tolua.setpeer(tmp, {})
  180. end
  181. self.washAttrItem1 = CommonUtil.BindGridViewItem2LuaStatic("WashAttrItem", tmp)
  182. self.washAttrItem1.prefabName = "WashAttrItem"
  183. tmp.uIEffectCfg = tmp:GetComponent(Enum.TypeInfo.UIEffectCfg)
  184. end
  185. ---@private
  186. function UIFashionWashView:InitGenerate__9(Root, data)
  187. --[[
  188. UIAnimator/Window/Bg/WashBox/WashAttrItem2
  189. --]]
  190. local tmp = Root:Find("UIAnimator/Window/Bg/WashBox/WashAttrItem2").gameObject
  191. if tolua.getpeer(tmp) == nil then
  192. tolua.setpeer(tmp, {})
  193. end
  194. self.washAttrItem2 = CommonUtil.BindGridViewItem2LuaStatic("WashAttrItem", tmp)
  195. self.washAttrItem2.prefabName = "WashAttrItem"
  196. tmp.uIEffectCfg = tmp:GetComponent(Enum.TypeInfo.UIEffectCfg)
  197. end
  198. ---@private
  199. function UIFashionWashView:InitGenerate__10(Root, data)
  200. --[[
  201. UIAnimator/Window/Bg/WashBox/WashAttrItem3
  202. --]]
  203. local tmp = Root:Find("UIAnimator/Window/Bg/WashBox/WashAttrItem3").gameObject
  204. if tolua.getpeer(tmp) == nil then
  205. tolua.setpeer(tmp, {})
  206. end
  207. self.washAttrItem3 = CommonUtil.BindGridViewItem2LuaStatic("WashAttrItem", tmp)
  208. self.washAttrItem3.prefabName = "WashAttrItem"
  209. tmp.uIEffectCfg = tmp:GetComponent(Enum.TypeInfo.UIEffectCfg)
  210. end
  211. ---@private
  212. function UIFashionWashView:InitGenerate__11(Root, data)
  213. --[[
  214. UIAnimator/Window/Bg/WashBox/WashAttrItem4
  215. --]]
  216. local tmp = Root:Find("UIAnimator/Window/Bg/WashBox/WashAttrItem4").gameObject
  217. if tolua.getpeer(tmp) == nil then
  218. tolua.setpeer(tmp, {})
  219. end
  220. self.washAttrItem4 = CommonUtil.BindGridViewItem2LuaStatic("WashAttrItem", tmp)
  221. self.washAttrItem4.prefabName = "WashAttrItem"
  222. tmp.uIEffectCfg = tmp:GetComponent(Enum.TypeInfo.UIEffectCfg)
  223. end
  224. ---@private
  225. function UIFashionWashView:InitGenerate__12(Root, data)
  226. --[[
  227. UIAnimator/Window/Bg/WashBox/WashAttrItem5
  228. --]]
  229. local tmp = Root:Find("UIAnimator/Window/Bg/WashBox/WashAttrItem5").gameObject
  230. if tolua.getpeer(tmp) == nil then
  231. tolua.setpeer(tmp, {})
  232. end
  233. self.washAttrItem5 = CommonUtil.BindGridViewItem2LuaStatic("WashAttrItem", tmp)
  234. self.washAttrItem5.prefabName = "WashAttrItem"
  235. tmp.uIEffectCfg = tmp:GetComponent(Enum.TypeInfo.UIEffectCfg)
  236. end
  237. ---@private
  238. function UIFashionWashView:InitGenerate__13(Root, data)
  239. --[[
  240. UIAnimator/Window/Bg/BtnBox
  241. --]]
  242. local tmp = Root:Find("UIAnimator/Window/Bg/BtnBox").gameObject
  243. if tolua.getpeer(tmp) == nil then
  244. tolua.setpeer(tmp, {})
  245. end
  246. self.btnBox = tmp
  247. end
  248. ---@private
  249. function UIFashionWashView:InitGenerate__14(Root, data)
  250. --[[
  251. UIAnimator/Window/Bg/BtnBox/BoxCost
  252. --]]
  253. local tmp = Root:Find("UIAnimator/Window/Bg/BtnBox/BoxCost").gameObject
  254. if tolua.getpeer(tmp) == nil then
  255. tolua.setpeer(tmp, {})
  256. end
  257. self.boxCost = tmp
  258. end
  259. ---@private
  260. function UIFashionWashView:InitGenerate__15(Root, data)
  261. --[[
  262. UIAnimator/Window/Bg/BtnBox/BoxCost/Cost/CostItem
  263. --]]
  264. local tmp = Root:Find("UIAnimator/Window/Bg/BtnBox/BoxCost/Cost/CostItem").gameObject
  265. if tolua.getpeer(tmp) == nil then
  266. tolua.setpeer(tmp, {})
  267. end
  268. self.cost1 = CommonUtil.BindGridViewItem2LuaStatic("CostItem", tmp)
  269. self.cost1.prefabName = "CostItem"
  270. end
  271. ---@private
  272. function UIFashionWashView:InitGenerate__16(Root, data)
  273. --[[
  274. UIAnimator/Window/Bg/BtnBox/BoxCost/Cost/CostItem1
  275. --]]
  276. local tmp = Root:Find("UIAnimator/Window/Bg/BtnBox/BoxCost/Cost/CostItem1").gameObject
  277. if tolua.getpeer(tmp) == nil then
  278. tolua.setpeer(tmp, {})
  279. end
  280. self.cost2 = CommonUtil.BindGridViewItem2LuaStatic("CostItem", tmp)
  281. self.cost2.prefabName = "CostItem"
  282. end
  283. ---@private
  284. function UIFashionWashView:InitGenerate__17(Root, data)
  285. --[[
  286. UIAnimator/Window/Bg/BtnBox/BoxCost/Cost/CostItem2
  287. --]]
  288. local tmp = Root:Find("UIAnimator/Window/Bg/BtnBox/BoxCost/Cost/CostItem2").gameObject
  289. if tolua.getpeer(tmp) == nil then
  290. tolua.setpeer(tmp, {})
  291. end
  292. self.cost3 = CommonUtil.BindGridViewItem2LuaStatic("CostItem", tmp)
  293. self.cost3.prefabName = "CostItem"
  294. end
  295. ---@private
  296. function UIFashionWashView:InitGenerate__18(Root, data)
  297. --[[
  298. UIAnimator/Window/Bg/BtnBox/BtnWash
  299. --]]
  300. local tmp = Root:Find("UIAnimator/Window/Bg/BtnBox/BtnWash").gameObject
  301. if tolua.getpeer(tmp) == nil then
  302. tolua.setpeer(tmp, {})
  303. end
  304. self.btnWash = tmp
  305. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  306. end
  307. ---@private
  308. function UIFashionWashView:InitGenerate__19(Root, data)
  309. --[[
  310. UIAnimator/Window/Bg/BtnBox/BtnWashAgain
  311. --]]
  312. local tmp = Root:Find("UIAnimator/Window/Bg/BtnBox/BtnWashAgain").gameObject
  313. if tolua.getpeer(tmp) == nil then
  314. tolua.setpeer(tmp, {})
  315. end
  316. self.btnWashAgain = tmp
  317. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  318. end
  319. ---@private
  320. function UIFashionWashView:InitGenerate__20(Root, data)
  321. --[[
  322. UIAnimator/Window/Bg/BtnBox/BtnKeep
  323. --]]
  324. local tmp = Root:Find("UIAnimator/Window/Bg/BtnBox/BtnKeep").gameObject
  325. if tolua.getpeer(tmp) == nil then
  326. tolua.setpeer(tmp, {})
  327. end
  328. self.btnKeep = tmp
  329. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  330. end
  331. ---@private
  332. function UIFashionWashView:GenerateDestroy()
  333. if tolua.getpeer(self.uIAnimator) ~= nil then
  334. tolua.setpeer(self.uIAnimator, nil)
  335. end
  336. self.uIAnimator = nil
  337. if tolua.getpeer(self.AnyBtn) ~= nil then
  338. tolua.setpeer(self.AnyBtn, nil)
  339. end
  340. self.AnyBtn = nil
  341. if tolua.getpeer(self.window) ~= nil then
  342. tolua.setpeer(self.window, nil)
  343. end
  344. self.window = nil
  345. if tolua.getpeer(self.bg) ~= nil then
  346. tolua.setpeer(self.bg, nil)
  347. end
  348. self.bg = nil
  349. if tolua.getpeer(self.closeBox) ~= nil then
  350. tolua.setpeer(self.closeBox, nil)
  351. end
  352. self.closeBox = nil
  353. if tolua.getpeer(self.btnClose) ~= nil then
  354. tolua.setpeer(self.btnClose, nil)
  355. end
  356. self.btnClose = nil
  357. if self.washAttrItem1.GenerateDestroy ~= nil then
  358. self.washAttrItem1:GenerateDestroy()
  359. end
  360. if tolua.getpeer(self.washAttrItem1) ~= nil then
  361. tolua.setpeer(self.washAttrItem1, nil)
  362. end
  363. self.washAttrItem1 = nil
  364. if self.washAttrItem2.GenerateDestroy ~= nil then
  365. self.washAttrItem2:GenerateDestroy()
  366. end
  367. if tolua.getpeer(self.washAttrItem2) ~= nil then
  368. tolua.setpeer(self.washAttrItem2, nil)
  369. end
  370. self.washAttrItem2 = nil
  371. if self.washAttrItem3.GenerateDestroy ~= nil then
  372. self.washAttrItem3:GenerateDestroy()
  373. end
  374. if tolua.getpeer(self.washAttrItem3) ~= nil then
  375. tolua.setpeer(self.washAttrItem3, nil)
  376. end
  377. self.washAttrItem3 = nil
  378. if self.washAttrItem4.GenerateDestroy ~= nil then
  379. self.washAttrItem4:GenerateDestroy()
  380. end
  381. if tolua.getpeer(self.washAttrItem4) ~= nil then
  382. tolua.setpeer(self.washAttrItem4, nil)
  383. end
  384. self.washAttrItem4 = nil
  385. if self.washAttrItem5.GenerateDestroy ~= nil then
  386. self.washAttrItem5:GenerateDestroy()
  387. end
  388. if tolua.getpeer(self.washAttrItem5) ~= nil then
  389. tolua.setpeer(self.washAttrItem5, nil)
  390. end
  391. self.washAttrItem5 = nil
  392. if tolua.getpeer(self.btnBox) ~= nil then
  393. tolua.setpeer(self.btnBox, nil)
  394. end
  395. self.btnBox = nil
  396. if tolua.getpeer(self.boxCost) ~= nil then
  397. tolua.setpeer(self.boxCost, nil)
  398. end
  399. self.boxCost = nil
  400. if self.cost1.GenerateDestroy ~= nil then
  401. self.cost1:GenerateDestroy()
  402. end
  403. if tolua.getpeer(self.cost1) ~= nil then
  404. tolua.setpeer(self.cost1, nil)
  405. end
  406. self.cost1 = nil
  407. if self.cost2.GenerateDestroy ~= nil then
  408. self.cost2:GenerateDestroy()
  409. end
  410. if tolua.getpeer(self.cost2) ~= nil then
  411. tolua.setpeer(self.cost2, nil)
  412. end
  413. self.cost2 = nil
  414. if self.cost3.GenerateDestroy ~= nil then
  415. self.cost3:GenerateDestroy()
  416. end
  417. if tolua.getpeer(self.cost3) ~= nil then
  418. tolua.setpeer(self.cost3, nil)
  419. end
  420. self.cost3 = nil
  421. if tolua.getpeer(self.btnWash) ~= nil then
  422. tolua.setpeer(self.btnWash, nil)
  423. end
  424. self.btnWash = nil
  425. if tolua.getpeer(self.btnWashAgain) ~= nil then
  426. tolua.setpeer(self.btnWashAgain, nil)
  427. end
  428. self.btnWashAgain = nil
  429. if tolua.getpeer(self.btnKeep) ~= nil then
  430. tolua.setpeer(self.btnKeep, nil)
  431. end
  432. self.btnKeep = nil
  433. self.transform = nil
  434. self.gameObject = nil
  435. self.inited = false
  436. end
  437. return UIFashionWashView