UIFashionPaperTipsView_Generate.lua 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538
  1. ---@class UIFashionPaperTips__Generate_decomposeBtn_text
  2. ---@field public gameObject UnityEngine.GameObject
  3. ---@field public uILocalizeScript UILocalizeScript
  4. ---@class UIFashionPaperTips__Generate_decomposeBtn
  5. ---@field public gameObject UnityEngine.GameObject
  6. ---@field public button UnityEngine.UI.Button
  7. ---@field public text UIFashionPaperTips__Generate_decomposeBtn_text
  8. ---@class UIFashionPaperTips__Generate_composeBtn_text
  9. ---@field public gameObject UnityEngine.GameObject
  10. ---@field public uILocalizeScript UILocalizeScript
  11. ---@class UIFashionPaperTips__Generate_composeBtn
  12. ---@field public gameObject UnityEngine.GameObject
  13. ---@field public button UnityEngine.UI.Button
  14. ---@field public text UIFashionPaperTips__Generate_composeBtn_text
  15. ---@class UIFashionPaperTips__Generate_desTxt
  16. ---@field public gameObject UnityEngine.GameObject
  17. ---@field public text UnityEngine.UI.Text
  18. ---@class UIFashionPaperTips__Generate_materialItem_number
  19. ---@field public gameObject UnityEngine.GameObject
  20. ---@field public text UnityEngine.UI.Text
  21. ---@class UIFashionPaperTips__Generate_materialItem_text
  22. ---@field public gameObject UnityEngine.GameObject
  23. ---@field public text UnityEngine.UI.Text
  24. ---@class UIFashionPaperTips__Generate_materialItem
  25. ---@field public gameObject UnityEngine.GameObject
  26. ---@field public text UIFashionPaperTips__Generate_materialItem_text
  27. ---@field public number UIFashionPaperTips__Generate_materialItem_number
  28. ---@class UIFashionPaperTips__Generate_suitTxt
  29. ---@field public gameObject UnityEngine.GameObject
  30. ---@field public text UnityEngine.UI.Text
  31. ---@class UIFashionPaperTips__Generate_equipBox_attrs_text
  32. ---@field public gameObject UnityEngine.GameObject
  33. ---@field public uILocalizeScript UILocalizeScript
  34. ---@class UIFashionPaperTips__Generate_equipBox_attrs
  35. ---@field public gameObject UnityEngine.GameObject
  36. ---@field public text UIFashionPaperTips__Generate_equipBox_attrs_text
  37. ---@field public grid UnityEngine.GameObject
  38. ---@class UIFashionPaperTips__Generate_equipBox
  39. ---@field public gameObject UnityEngine.GameObject
  40. ---@field public attrs UIFashionPaperTips__Generate_equipBox_attrs
  41. ---@field public needMaterials UnityEngine.GameObject
  42. ---@class UIFashionPaperTips__Generate_textType
  43. ---@field public gameObject UnityEngine.GameObject
  44. ---@field public uILocalizeScript UILocalizeScript
  45. ---@class UIFashionPaperTips__Generate_textName
  46. ---@field public gameObject UnityEngine.GameObject
  47. ---@field public text UnityEngine.UI.Text
  48. ---@class UIFashionPaperTips__Generate_btnClose
  49. ---@field public gameObject UnityEngine.GameObject
  50. ---@field public button UnityEngine.UI.Button
  51. ---@class UIFashionPaperTips__Generate_window
  52. ---@field public gameObject UnityEngine.GameObject
  53. ---@field public animator UnityEngine.Animator
  54. ---@class UIFashionPaperTips__Generate
  55. ---@field private gameObject UnityEngine.GameObject
  56. ---@field private transform UnityEngine.Transform
  57. ---@field private uIEventHandler UIEventHandler
  58. ---@field private window UIFashionPaperTips__Generate_window
  59. ---@field private closeBox UnityEngine.GameObject
  60. ---@field private btnClose UIFashionPaperTips__Generate_btnClose
  61. ---@field private topItem UnityEngine.GameObject
  62. ---@field private contentItem UnityEngine.GameObject
  63. ---@field private textName UIFashionPaperTips__Generate_textName
  64. ---@field private textType UIFashionPaperTips__Generate_textType
  65. ---@field private composedTxt UnityEngine.GameObject
  66. ---@field private equipBox UIFashionPaperTips__Generate_equipBox
  67. ---@field private suitTxt UIFashionPaperTips__Generate_suitTxt
  68. ---@field private materialItem UIFashionPaperTips__Generate_materialItem
  69. ---@field private desTxt UIFashionPaperTips__Generate_desTxt
  70. ---@field private btnBox UnityEngine.GameObject
  71. ---@field private composeBtn UIFashionPaperTips__Generate_composeBtn
  72. ---@field private decomposeBtn UIFashionPaperTips__Generate_decomposeBtn
  73. local UIFashionPaperTipsView = class("UIFashionPaperTipsView", require("UIViewBase"))
  74. function UIFashionPaperTipsView:ctor()
  75. end
  76. ---@private
  77. function UIFashionPaperTipsView:SetActive(result)
  78. self.gameObject:SetActive(result)
  79. end
  80. ---@private
  81. function UIFashionPaperTipsView:InitGenerate(Root, data)
  82. self.transform = Root
  83. self.inited = true
  84. if self.super.Init then
  85. self.super.Init(self)
  86. end
  87. local tmp
  88. self:InitGenerate__1(Root,data)
  89. self:InitGenerate__2(Root,data)
  90. self:InitGenerate__3(Root,data)
  91. self:InitGenerate__4(Root,data)
  92. self:InitGenerate__5(Root,data)
  93. self:InitGenerate__6(Root,data)
  94. self:InitGenerate__7(Root,data)
  95. self:InitGenerate__8(Root,data)
  96. self:InitGenerate__9(Root,data)
  97. self:InitGenerate__10(Root,data)
  98. self:InitGenerate__11(Root,data)
  99. self:InitGenerate__12(Root,data)
  100. self:InitGenerate__13(Root,data)
  101. self:InitGenerate__14(Root,data)
  102. self:InitGenerate__15(Root,data)
  103. self:InitGenerate__16(Root,data)
  104. self:InitGenerate__17(Root,data)
  105. self:InitGenerate__18(Root,data)
  106. self:InitGenerate__19(Root,data)
  107. self:InitGenerate__20(Root,data)
  108. self:InitGenerate__21(Root,data)
  109. self:InitGenerate__22(Root,data)
  110. self:InitGenerate__23(Root,data)
  111. self:InitGenerate__24(Root,data)
  112. end
  113. ---@private
  114. function UIFashionPaperTipsView:InitGenerate__1(Root, data)
  115. --[[
  116. Root
  117. --]]
  118. self.uIEventHandler = Root:GetComponent(Enum.TypeInfo.UIEventHandler)
  119. end
  120. ---@private
  121. function UIFashionPaperTipsView:InitGenerate__2(Root, data)
  122. --[[
  123. Window
  124. --]]
  125. local tmp = Root:Find("Window").gameObject
  126. if tolua.getpeer(tmp) == nil then
  127. tolua.setpeer(tmp, {})
  128. end
  129. self.window = tmp
  130. tmp.animator = tmp:GetComponent(Enum.TypeInfo.Animator)
  131. tmp.animator.logWarnings = false
  132. end
  133. ---@private
  134. function UIFashionPaperTipsView:InitGenerate__3(Root, data)
  135. --[[
  136. Window/Bg/CloseBox
  137. --]]
  138. local tmp = Root:Find("Window/Bg/CloseBox").gameObject
  139. if tolua.getpeer(tmp) == nil then
  140. tolua.setpeer(tmp, {})
  141. end
  142. self.closeBox = tmp
  143. end
  144. ---@private
  145. function UIFashionPaperTipsView:InitGenerate__4(Root, data)
  146. --[[
  147. Window/Bg/CloseBox/BtnClose
  148. --]]
  149. local tmp = Root:Find("Window/Bg/CloseBox/BtnClose").gameObject
  150. if tolua.getpeer(tmp) == nil then
  151. tolua.setpeer(tmp, {})
  152. end
  153. self.btnClose = tmp
  154. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  155. end
  156. ---@private
  157. function UIFashionPaperTipsView:InitGenerate__5(Root, data)
  158. --[[
  159. Window/Bg/TopItem
  160. --]]
  161. local tmp = Root:Find("Window/Bg/TopItem").gameObject
  162. if tolua.getpeer(tmp) == nil then
  163. tolua.setpeer(tmp, {})
  164. end
  165. self.topItem = tmp
  166. end
  167. ---@private
  168. function UIFashionPaperTipsView:InitGenerate__6(Root, data)
  169. --[[
  170. Window/Bg/TopItem/ContentItem
  171. --]]
  172. local tmp = Root:Find("Window/Bg/TopItem/ContentItem").gameObject
  173. if tolua.getpeer(tmp) == nil then
  174. tolua.setpeer(tmp, {})
  175. end
  176. self.contentItem = tmp
  177. end
  178. ---@private
  179. function UIFashionPaperTipsView:InitGenerate__7(Root, data)
  180. --[[
  181. Window/Bg/TopItem/Texts/TextName
  182. --]]
  183. local tmp = Root:Find("Window/Bg/TopItem/Texts/TextName").gameObject
  184. if tolua.getpeer(tmp) == nil then
  185. tolua.setpeer(tmp, {})
  186. end
  187. self.textName = tmp
  188. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  189. end
  190. ---@private
  191. function UIFashionPaperTipsView:InitGenerate__8(Root, data)
  192. --[[
  193. Window/Bg/TopItem/Texts/TextType
  194. --]]
  195. local tmp = Root:Find("Window/Bg/TopItem/Texts/TextType").gameObject
  196. if tolua.getpeer(tmp) == nil then
  197. tolua.setpeer(tmp, {})
  198. end
  199. self.textType = tmp
  200. tmp.uILocalizeScript = tmp:GetComponent(Enum.TypeInfo.UILocalizeScript)
  201. end
  202. ---@private
  203. function UIFashionPaperTipsView:InitGenerate__9(Root, data)
  204. --[[
  205. Window/Bg/TopItem/ComposedTxt
  206. --]]
  207. local tmp = Root:Find("Window/Bg/TopItem/ComposedTxt").gameObject
  208. if tolua.getpeer(tmp) == nil then
  209. tolua.setpeer(tmp, {})
  210. end
  211. self.composedTxt = tmp
  212. end
  213. ---@private
  214. function UIFashionPaperTipsView:InitGenerate__10(Root, data)
  215. --[[
  216. Window/Bg/EquipBox
  217. --]]
  218. local tmp = Root:Find("Window/Bg/EquipBox").gameObject
  219. if tolua.getpeer(tmp) == nil then
  220. tolua.setpeer(tmp, {})
  221. end
  222. self.equipBox = tmp
  223. end
  224. ---@private
  225. function UIFashionPaperTipsView:InitGenerate__11(Root, data)
  226. --[[
  227. Window/Bg/EquipBox/Attrs
  228. --]]
  229. local tmp = Root:Find("Window/Bg/EquipBox/Attrs").gameObject
  230. if tolua.getpeer(tmp) == nil then
  231. tolua.setpeer(tmp, {})
  232. end
  233. self.equipBox.attrs = tmp
  234. end
  235. ---@private
  236. function UIFashionPaperTipsView:InitGenerate__12(Root, data)
  237. --[[
  238. Window/Bg/EquipBox/Attrs/TitleBase/Text
  239. --]]
  240. local tmp = Root:Find("Window/Bg/EquipBox/Attrs/TitleBase/Text").gameObject
  241. if tolua.getpeer(tmp) == nil then
  242. tolua.setpeer(tmp, {})
  243. end
  244. self.equipBox.attrs.text = tmp
  245. tmp.uILocalizeScript = tmp:GetComponent(Enum.TypeInfo.UILocalizeScript)
  246. end
  247. ---@private
  248. function UIFashionPaperTipsView:InitGenerate__13(Root, data)
  249. --[[
  250. Window/Bg/EquipBox/Attrs/Grid
  251. --]]
  252. local tmp = Root:Find("Window/Bg/EquipBox/Attrs/Grid").gameObject
  253. if tolua.getpeer(tmp) == nil then
  254. tolua.setpeer(tmp, {})
  255. end
  256. self.equipBox.attrs.grid = tmp
  257. end
  258. ---@private
  259. function UIFashionPaperTipsView:InitGenerate__14(Root, data)
  260. --[[
  261. Window/Bg/EquipBox/NeedMaterials
  262. --]]
  263. local tmp = Root:Find("Window/Bg/EquipBox/NeedMaterials").gameObject
  264. if tolua.getpeer(tmp) == nil then
  265. tolua.setpeer(tmp, {})
  266. end
  267. self.equipBox.needMaterials = tmp
  268. end
  269. ---@private
  270. function UIFashionPaperTipsView:InitGenerate__15(Root, data)
  271. --[[
  272. Window/Bg/EquipBox/NeedMaterials/TitleSuit/SuitTxt
  273. --]]
  274. local tmp = Root:Find("Window/Bg/EquipBox/NeedMaterials/TitleSuit/SuitTxt").gameObject
  275. if tolua.getpeer(tmp) == nil then
  276. tolua.setpeer(tmp, {})
  277. end
  278. self.suitTxt = tmp
  279. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  280. end
  281. ---@private
  282. function UIFashionPaperTipsView:InitGenerate__16(Root, data)
  283. --[[
  284. Window/Bg/EquipBox/NeedMaterials/MaterialItem
  285. --]]
  286. local tmp = Root:Find("Window/Bg/EquipBox/NeedMaterials/MaterialItem").gameObject
  287. if tolua.getpeer(tmp) == nil then
  288. tolua.setpeer(tmp, {})
  289. end
  290. self.materialItem = tmp
  291. end
  292. ---@private
  293. function UIFashionPaperTipsView:InitGenerate__17(Root, data)
  294. --[[
  295. Window/Bg/EquipBox/NeedMaterials/MaterialItem/Text
  296. --]]
  297. local tmp = Root:Find("Window/Bg/EquipBox/NeedMaterials/MaterialItem/Text").gameObject
  298. if tolua.getpeer(tmp) == nil then
  299. tolua.setpeer(tmp, {})
  300. end
  301. self.materialItem.text = tmp
  302. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  303. end
  304. ---@private
  305. function UIFashionPaperTipsView:InitGenerate__18(Root, data)
  306. --[[
  307. Window/Bg/EquipBox/NeedMaterials/MaterialItem/Number
  308. --]]
  309. local tmp = Root:Find("Window/Bg/EquipBox/NeedMaterials/MaterialItem/Number").gameObject
  310. if tolua.getpeer(tmp) == nil then
  311. tolua.setpeer(tmp, {})
  312. end
  313. self.materialItem.number = tmp
  314. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  315. end
  316. ---@private
  317. function UIFashionPaperTipsView:InitGenerate__19(Root, data)
  318. --[[
  319. Window/Bg/DscBox/DesTxt
  320. --]]
  321. local tmp = Root:Find("Window/Bg/DscBox/DesTxt").gameObject
  322. if tolua.getpeer(tmp) == nil then
  323. tolua.setpeer(tmp, {})
  324. end
  325. self.desTxt = tmp
  326. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  327. end
  328. ---@private
  329. function UIFashionPaperTipsView:InitGenerate__20(Root, data)
  330. --[[
  331. Window/Bg/BtnBox
  332. --]]
  333. local tmp = Root:Find("Window/Bg/BtnBox").gameObject
  334. if tolua.getpeer(tmp) == nil then
  335. tolua.setpeer(tmp, {})
  336. end
  337. self.btnBox = tmp
  338. end
  339. ---@private
  340. function UIFashionPaperTipsView:InitGenerate__21(Root, data)
  341. --[[
  342. Window/Bg/BtnBox/ComposeBtn
  343. --]]
  344. local tmp = Root:Find("Window/Bg/BtnBox/ComposeBtn").gameObject
  345. if tolua.getpeer(tmp) == nil then
  346. tolua.setpeer(tmp, {})
  347. end
  348. self.composeBtn = tmp
  349. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  350. end
  351. ---@private
  352. function UIFashionPaperTipsView:InitGenerate__22(Root, data)
  353. --[[
  354. Window/Bg/BtnBox/ComposeBtn/Text
  355. --]]
  356. local tmp = Root:Find("Window/Bg/BtnBox/ComposeBtn/Text").gameObject
  357. if tolua.getpeer(tmp) == nil then
  358. tolua.setpeer(tmp, {})
  359. end
  360. self.composeBtn.text = tmp
  361. tmp.uILocalizeScript = tmp:GetComponent(Enum.TypeInfo.UILocalizeScript)
  362. end
  363. ---@private
  364. function UIFashionPaperTipsView:InitGenerate__23(Root, data)
  365. --[[
  366. Window/Bg/BtnBox/DecomposeBtn
  367. --]]
  368. local tmp = Root:Find("Window/Bg/BtnBox/DecomposeBtn").gameObject
  369. if tolua.getpeer(tmp) == nil then
  370. tolua.setpeer(tmp, {})
  371. end
  372. self.decomposeBtn = tmp
  373. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  374. end
  375. ---@private
  376. function UIFashionPaperTipsView:InitGenerate__24(Root, data)
  377. --[[
  378. Window/Bg/BtnBox/DecomposeBtn/Text
  379. --]]
  380. local tmp = Root:Find("Window/Bg/BtnBox/DecomposeBtn/Text").gameObject
  381. if tolua.getpeer(tmp) == nil then
  382. tolua.setpeer(tmp, {})
  383. end
  384. self.decomposeBtn.text = tmp
  385. tmp.uILocalizeScript = tmp:GetComponent(Enum.TypeInfo.UILocalizeScript)
  386. end
  387. ---@private
  388. function UIFashionPaperTipsView:GenerateDestroy()
  389. if tolua.getpeer(self.decomposeBtn.text) ~= nil then
  390. tolua.setpeer(self.decomposeBtn.text, nil)
  391. end
  392. if tolua.getpeer(self.composeBtn.text) ~= nil then
  393. tolua.setpeer(self.composeBtn.text, nil)
  394. end
  395. if tolua.getpeer(self.materialItem.number) ~= nil then
  396. tolua.setpeer(self.materialItem.number, nil)
  397. end
  398. if tolua.getpeer(self.materialItem.text) ~= nil then
  399. tolua.setpeer(self.materialItem.text, nil)
  400. end
  401. if tolua.getpeer(self.equipBox.needMaterials) ~= nil then
  402. tolua.setpeer(self.equipBox.needMaterials, nil)
  403. end
  404. if tolua.getpeer(self.equipBox.attrs.grid) ~= nil then
  405. tolua.setpeer(self.equipBox.attrs.grid, nil)
  406. end
  407. if tolua.getpeer(self.equipBox.attrs.text) ~= nil then
  408. tolua.setpeer(self.equipBox.attrs.text, nil)
  409. end
  410. if tolua.getpeer(self.equipBox.attrs) ~= nil then
  411. tolua.setpeer(self.equipBox.attrs, nil)
  412. end
  413. if tolua.getpeer(self.window) ~= nil then
  414. tolua.setpeer(self.window, nil)
  415. end
  416. self.window = nil
  417. if tolua.getpeer(self.closeBox) ~= nil then
  418. tolua.setpeer(self.closeBox, nil)
  419. end
  420. self.closeBox = nil
  421. if tolua.getpeer(self.btnClose) ~= nil then
  422. tolua.setpeer(self.btnClose, nil)
  423. end
  424. self.btnClose = nil
  425. if tolua.getpeer(self.topItem) ~= nil then
  426. tolua.setpeer(self.topItem, nil)
  427. end
  428. self.topItem = nil
  429. if tolua.getpeer(self.contentItem) ~= nil then
  430. tolua.setpeer(self.contentItem, nil)
  431. end
  432. self.contentItem = nil
  433. if tolua.getpeer(self.textName) ~= nil then
  434. tolua.setpeer(self.textName, nil)
  435. end
  436. self.textName = nil
  437. if tolua.getpeer(self.textType) ~= nil then
  438. tolua.setpeer(self.textType, nil)
  439. end
  440. self.textType = nil
  441. if tolua.getpeer(self.composedTxt) ~= nil then
  442. tolua.setpeer(self.composedTxt, nil)
  443. end
  444. self.composedTxt = nil
  445. if tolua.getpeer(self.equipBox) ~= nil then
  446. tolua.setpeer(self.equipBox, nil)
  447. end
  448. self.equipBox = nil
  449. if tolua.getpeer(self.suitTxt) ~= nil then
  450. tolua.setpeer(self.suitTxt, nil)
  451. end
  452. self.suitTxt = nil
  453. if tolua.getpeer(self.materialItem) ~= nil then
  454. tolua.setpeer(self.materialItem, nil)
  455. end
  456. self.materialItem = nil
  457. if tolua.getpeer(self.desTxt) ~= nil then
  458. tolua.setpeer(self.desTxt, nil)
  459. end
  460. self.desTxt = nil
  461. if tolua.getpeer(self.btnBox) ~= nil then
  462. tolua.setpeer(self.btnBox, nil)
  463. end
  464. self.btnBox = nil
  465. if tolua.getpeer(self.composeBtn) ~= nil then
  466. tolua.setpeer(self.composeBtn, nil)
  467. end
  468. self.composeBtn = nil
  469. if tolua.getpeer(self.decomposeBtn) ~= nil then
  470. tolua.setpeer(self.decomposeBtn, nil)
  471. end
  472. self.decomposeBtn = nil
  473. self.transform = nil
  474. self.gameObject = nil
  475. self.inited = false
  476. end
  477. return UIFashionPaperTipsView