IconSmallItem_Generate.lua 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596
  1. ---@class IconSmallItem__Generate_locked
  2. ---@field public gameObject UnityEngine.GameObject
  3. ---@field public locked UnityEngine.GameObject
  4. ---@class IconSmallItem__Generate_label
  5. ---@field public gameObject UnityEngine.GameObject
  6. ---@field public image UnityEngine.UI.Image
  7. ---@class IconSmallItem__Generate_advenceLv
  8. ---@field public gameObject UnityEngine.GameObject
  9. ---@field public text TMPro.TextMeshProUGUI
  10. ---@class IconSmallItem__Generate_text
  11. ---@field public gameObject UnityEngine.GameObject
  12. ---@field public text TMPro.TextMeshProUGUI
  13. ---@class IconSmallItem__Generate_refineLv
  14. ---@field public gameObject UnityEngine.GameObject
  15. ---@field public text TMPro.TextMeshProUGUI
  16. ---@class IconSmallItem__Generate_num
  17. ---@field public gameObject UnityEngine.GameObject
  18. ---@field public text TMPro.TextMeshProUGUI
  19. ---@class IconSmallItem__Generate_piece
  20. ---@field public gameObject UnityEngine.GameObject
  21. ---@field public image UnityEngine.UI.Image
  22. ---@class IconSmallItem__Generate_cardLabel
  23. ---@field public gameObject UnityEngine.GameObject
  24. ---@field public image UnityEngine.UI.Image
  25. ---@class IconSmallItem__Generate_sexLabel
  26. ---@field public gameObject UnityEngine.GameObject
  27. ---@field public image UnityEngine.UI.Image
  28. ---@class IconSmallItem__Generate_job
  29. ---@field public gameObject UnityEngine.GameObject
  30. ---@field public image UnityEngine.UI.Image
  31. ---@class IconSmallItem__Generate_level
  32. ---@field public gameObject UnityEngine.GameObject
  33. ---@field public image UnityEngine.UI.Image
  34. ---@class IconSmallItem__Generate_frameLead
  35. ---@field public gameObject UnityEngine.GameObject
  36. ---@field public image UnityEngine.UI.Image
  37. ---@class IconSmallItem__Generate_frame
  38. ---@field public gameObject UnityEngine.GameObject
  39. ---@field public image UnityEngine.UI.Image
  40. ---@class IconSmallItem__Generate_icon
  41. ---@field public gameObject UnityEngine.GameObject
  42. ---@field public image UnityEngine.UI.Image
  43. ---@class IconSmallItem__Generate_bg
  44. ---@field public gameObject UnityEngine.GameObject
  45. ---@field public image UnityEngine.UI.Image
  46. ---@field public button UnityEngine.UI.Button
  47. ---@field public uIEventTriggerListener UIEventTriggerListener
  48. ---@class IconSmallItem__Generate_shadow
  49. ---@field public gameObject UnityEngine.GameObject
  50. ---@field public image UnityEngine.UI.Image
  51. ---@field public button UnityEngine.UI.Button
  52. ---@class IconSmallItem__Generate
  53. ---@field private gameObject UnityEngine.GameObject
  54. ---@field private transform UnityEngine.Transform
  55. ---@field private rectTransform UnityEngine.RectTransform
  56. ---@field private layoutElement UnityEngine.UI.LayoutElement
  57. ---@field private shadow IconSmallItem__Generate_shadow
  58. ---@field private bg IconSmallItem__Generate_bg
  59. ---@field private icon IconSmallItem__Generate_icon
  60. ---@field private frame IconSmallItem__Generate_frame
  61. ---@field private frameLead IconSmallItem__Generate_frameLead
  62. ---@field private level IconSmallItem__Generate_level
  63. ---@field private job IconSmallItem__Generate_job
  64. ---@field private sexLabel IconSmallItem__Generate_sexLabel
  65. ---@field private limited UnityEngine.GameObject
  66. ---@field private cardLabel IconSmallItem__Generate_cardLabel
  67. ---@field private piece IconSmallItem__Generate_piece
  68. ---@field private num IconSmallItem__Generate_num
  69. ---@field private refineLv IconSmallItem__Generate_refineLv
  70. ---@field private conertips UnityEngine.GameObject
  71. ---@field private text IconSmallItem__Generate_text
  72. ---@field private repeatSign UnityEngine.GameObject
  73. ---@field private qualityFX UnityEngine.GameObject
  74. ---@field private advence UnityEngine.GameObject
  75. ---@field private advenceLv IconSmallItem__Generate_advenceLv
  76. ---@field private vip UnityEngine.GameObject
  77. ---@field private label IconSmallItem__Generate_label
  78. ---@field private redPoint UnityEngine.GameObject
  79. ---@field private selected UnityEngine.GameObject
  80. ---@field private locked IconSmallItem__Generate_locked
  81. local IconSmallItemView = class("IconSmallItemView")
  82. function IconSmallItemView:ctor()
  83. end
  84. ---@private
  85. function IconSmallItemView:SetActive(result)
  86. self.gameObject:SetActive(result)
  87. end
  88. ---@private
  89. function IconSmallItemView:InitGenerate(Root, data)
  90. self.transform = Root
  91. self.inited = true
  92. local tmp
  93. self:InitGenerate__1(Root,data)
  94. self:InitGenerate__2(Root,data)
  95. self:InitGenerate__3(Root,data)
  96. self:InitGenerate__4(Root,data)
  97. self:InitGenerate__5(Root,data)
  98. self:InitGenerate__6(Root,data)
  99. self:InitGenerate__7(Root,data)
  100. self:InitGenerate__8(Root,data)
  101. self:InitGenerate__9(Root,data)
  102. self:InitGenerate__10(Root,data)
  103. self:InitGenerate__11(Root,data)
  104. self:InitGenerate__12(Root,data)
  105. self:InitGenerate__13(Root,data)
  106. self:InitGenerate__14(Root,data)
  107. self:InitGenerate__15(Root,data)
  108. self:InitGenerate__16(Root,data)
  109. self:InitGenerate__17(Root,data)
  110. self:InitGenerate__18(Root,data)
  111. self:InitGenerate__19(Root,data)
  112. self:InitGenerate__20(Root,data)
  113. self:InitGenerate__21(Root,data)
  114. self:InitGenerate__22(Root,data)
  115. self:InitGenerate__23(Root,data)
  116. self:InitGenerate__24(Root,data)
  117. self:InitGenerate__25(Root,data)
  118. self:InitGenerate__26(Root,data)
  119. end
  120. ---@private
  121. function IconSmallItemView:InitGenerate__1(Root, data)
  122. --[[
  123. Root
  124. --]]
  125. self.rectTransform = Root:GetComponent(Enum.TypeInfo.RectTransform)
  126. self.layoutElement = Root:GetComponent(Enum.TypeInfo.LayoutElement)
  127. end
  128. ---@private
  129. function IconSmallItemView:InitGenerate__2(Root, data)
  130. --[[
  131. shadow
  132. --]]
  133. local tmp = Root:Find("shadow").gameObject
  134. if tolua.getpeer(tmp) == nil then
  135. tolua.setpeer(tmp, {})
  136. end
  137. self.shadow = tmp
  138. tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
  139. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  140. end
  141. ---@private
  142. function IconSmallItemView:InitGenerate__3(Root, data)
  143. --[[
  144. bg
  145. --]]
  146. local tmp = Root:Find("bg").gameObject
  147. if tolua.getpeer(tmp) == nil then
  148. tolua.setpeer(tmp, {})
  149. end
  150. self.bg = tmp
  151. tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
  152. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  153. tmp.uIEventTriggerListener = tmp:GetComponent(Enum.TypeInfo.UIEventTriggerListener)
  154. end
  155. ---@private
  156. function IconSmallItemView:InitGenerate__4(Root, data)
  157. --[[
  158. Icon
  159. --]]
  160. local tmp = Root:Find("Icon").gameObject
  161. if tolua.getpeer(tmp) == nil then
  162. tolua.setpeer(tmp, {})
  163. end
  164. self.icon = tmp
  165. tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
  166. end
  167. ---@private
  168. function IconSmallItemView:InitGenerate__5(Root, data)
  169. --[[
  170. Frame
  171. --]]
  172. local tmp = Root:Find("Frame").gameObject
  173. if tolua.getpeer(tmp) == nil then
  174. tolua.setpeer(tmp, {})
  175. end
  176. self.frame = tmp
  177. tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
  178. end
  179. ---@private
  180. function IconSmallItemView:InitGenerate__6(Root, data)
  181. --[[
  182. FrameLead
  183. --]]
  184. local tmp = Root:Find("FrameLead").gameObject
  185. if tolua.getpeer(tmp) == nil then
  186. tolua.setpeer(tmp, {})
  187. end
  188. self.frameLead = tmp
  189. tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
  190. end
  191. ---@private
  192. function IconSmallItemView:InitGenerate__7(Root, data)
  193. --[[
  194. Level
  195. --]]
  196. local tmp = Root:Find("Level").gameObject
  197. if tolua.getpeer(tmp) == nil then
  198. tolua.setpeer(tmp, {})
  199. end
  200. self.level = tmp
  201. tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
  202. end
  203. ---@private
  204. function IconSmallItemView:InitGenerate__8(Root, data)
  205. --[[
  206. Job
  207. --]]
  208. local tmp = Root:Find("Job").gameObject
  209. if tolua.getpeer(tmp) == nil then
  210. tolua.setpeer(tmp, {})
  211. end
  212. self.job = tmp
  213. tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
  214. end
  215. ---@private
  216. function IconSmallItemView:InitGenerate__9(Root, data)
  217. --[[
  218. SexLabel
  219. --]]
  220. local tmp = Root:Find("SexLabel").gameObject
  221. if tolua.getpeer(tmp) == nil then
  222. tolua.setpeer(tmp, {})
  223. end
  224. self.sexLabel = tmp
  225. tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
  226. end
  227. ---@private
  228. function IconSmallItemView:InitGenerate__10(Root, data)
  229. --[[
  230. Limited
  231. --]]
  232. local tmp = Root:Find("Limited").gameObject
  233. if tolua.getpeer(tmp) == nil then
  234. tolua.setpeer(tmp, {})
  235. end
  236. self.limited = tmp
  237. end
  238. ---@private
  239. function IconSmallItemView:InitGenerate__11(Root, data)
  240. --[[
  241. CardLabel
  242. --]]
  243. local tmp = Root:Find("CardLabel").gameObject
  244. if tolua.getpeer(tmp) == nil then
  245. tolua.setpeer(tmp, {})
  246. end
  247. self.cardLabel = tmp
  248. tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
  249. end
  250. ---@private
  251. function IconSmallItemView:InitGenerate__12(Root, data)
  252. --[[
  253. Piece
  254. --]]
  255. local tmp = Root:Find("Piece").gameObject
  256. if tolua.getpeer(tmp) == nil then
  257. tolua.setpeer(tmp, {})
  258. end
  259. self.piece = tmp
  260. self.piece:SetActive(false)
  261. tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
  262. end
  263. ---@private
  264. function IconSmallItemView:InitGenerate__13(Root, data)
  265. --[[
  266. Num
  267. --]]
  268. local tmp = Root:Find("Num").gameObject
  269. if tolua.getpeer(tmp) == nil then
  270. tolua.setpeer(tmp, {})
  271. end
  272. self.num = tmp
  273. tmp.text = tmp:GetComponent(Enum.TypeInfo.TextMeshProUGUI)
  274. end
  275. ---@private
  276. function IconSmallItemView:InitGenerate__14(Root, data)
  277. --[[
  278. RefineLv
  279. --]]
  280. local tmp = Root:Find("RefineLv").gameObject
  281. if tolua.getpeer(tmp) == nil then
  282. tolua.setpeer(tmp, {})
  283. end
  284. self.refineLv = tmp
  285. tmp.text = tmp:GetComponent(Enum.TypeInfo.TextMeshProUGUI)
  286. end
  287. ---@private
  288. function IconSmallItemView:InitGenerate__15(Root, data)
  289. --[[
  290. Conertips
  291. --]]
  292. local tmp = Root:Find("Conertips").gameObject
  293. if tolua.getpeer(tmp) == nil then
  294. tolua.setpeer(tmp, {})
  295. end
  296. self.conertips = tmp
  297. end
  298. ---@private
  299. function IconSmallItemView:InitGenerate__16(Root, data)
  300. --[[
  301. Conertips/Text
  302. --]]
  303. local tmp = Root:Find("Conertips/Text").gameObject
  304. if tolua.getpeer(tmp) == nil then
  305. tolua.setpeer(tmp, {})
  306. end
  307. self.text = tmp
  308. tmp.text = tmp:GetComponent(Enum.TypeInfo.TextMeshProUGUI)
  309. end
  310. ---@private
  311. function IconSmallItemView:InitGenerate__17(Root, data)
  312. --[[
  313. RepeatSign
  314. --]]
  315. local tmp = Root:Find("RepeatSign").gameObject
  316. if tolua.getpeer(tmp) == nil then
  317. tolua.setpeer(tmp, {})
  318. end
  319. self.repeatSign = tmp
  320. end
  321. ---@private
  322. function IconSmallItemView:InitGenerate__18(Root, data)
  323. --[[
  324. QualityFX
  325. --]]
  326. local tmp = Root:Find("QualityFX").gameObject
  327. if tolua.getpeer(tmp) == nil then
  328. tolua.setpeer(tmp, {})
  329. end
  330. self.qualityFX = tmp
  331. end
  332. ---@private
  333. function IconSmallItemView:InitGenerate__19(Root, data)
  334. --[[
  335. Advence
  336. --]]
  337. local tmp = Root:Find("Advence").gameObject
  338. if tolua.getpeer(tmp) == nil then
  339. tolua.setpeer(tmp, {})
  340. end
  341. self.advence = tmp
  342. end
  343. ---@private
  344. function IconSmallItemView:InitGenerate__20(Root, data)
  345. --[[
  346. Advence/AdvenceLv
  347. --]]
  348. local tmp = Root:Find("Advence/AdvenceLv").gameObject
  349. if tolua.getpeer(tmp) == nil then
  350. tolua.setpeer(tmp, {})
  351. end
  352. self.advenceLv = tmp
  353. tmp.text = tmp:GetComponent(Enum.TypeInfo.TextMeshProUGUI)
  354. end
  355. ---@private
  356. function IconSmallItemView:InitGenerate__21(Root, data)
  357. --[[
  358. Vip
  359. --]]
  360. local tmp = Root:Find("Vip").gameObject
  361. if tolua.getpeer(tmp) == nil then
  362. tolua.setpeer(tmp, {})
  363. end
  364. self.vip = tmp
  365. end
  366. ---@private
  367. function IconSmallItemView:InitGenerate__22(Root, data)
  368. --[[
  369. Vip/label
  370. --]]
  371. local tmp = Root:Find("Vip/label").gameObject
  372. if tolua.getpeer(tmp) == nil then
  373. tolua.setpeer(tmp, {})
  374. end
  375. self.label = tmp
  376. tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
  377. end
  378. ---@private
  379. function IconSmallItemView:InitGenerate__23(Root, data)
  380. --[[
  381. RedPoint
  382. --]]
  383. local tmp = Root:Find("RedPoint").gameObject
  384. if tolua.getpeer(tmp) == nil then
  385. tolua.setpeer(tmp, {})
  386. end
  387. self.redPoint = tmp
  388. end
  389. ---@private
  390. function IconSmallItemView:InitGenerate__24(Root, data)
  391. --[[
  392. Selected
  393. --]]
  394. local tmp = Root:Find("Selected").gameObject
  395. if tolua.getpeer(tmp) == nil then
  396. tolua.setpeer(tmp, {})
  397. end
  398. self.selected = tmp
  399. end
  400. ---@private
  401. function IconSmallItemView:InitGenerate__25(Root, data)
  402. --[[
  403. Locked
  404. --]]
  405. local tmp = Root:Find("Locked").gameObject
  406. if tolua.getpeer(tmp) == nil then
  407. tolua.setpeer(tmp, {})
  408. end
  409. self.locked = tmp
  410. end
  411. ---@private
  412. function IconSmallItemView:InitGenerate__26(Root, data)
  413. --[[
  414. Locked/Locked
  415. --]]
  416. local tmp = Root:Find("Locked/Locked").gameObject
  417. if tolua.getpeer(tmp) == nil then
  418. tolua.setpeer(tmp, {})
  419. end
  420. self.locked.locked = tmp
  421. end
  422. ---@private
  423. function IconSmallItemView:GenerateDestroy()
  424. if tolua.getpeer(self.locked.locked) ~= nil then
  425. tolua.setpeer(self.locked.locked, nil)
  426. end
  427. if tolua.getpeer(self.shadow) ~= nil then
  428. tolua.setpeer(self.shadow, nil)
  429. end
  430. self.shadow = nil
  431. if tolua.getpeer(self.bg) ~= nil then
  432. tolua.setpeer(self.bg, nil)
  433. end
  434. self.bg = nil
  435. if tolua.getpeer(self.icon) ~= nil then
  436. tolua.setpeer(self.icon, nil)
  437. end
  438. self.icon = nil
  439. if tolua.getpeer(self.frame) ~= nil then
  440. tolua.setpeer(self.frame, nil)
  441. end
  442. self.frame = nil
  443. if tolua.getpeer(self.frameLead) ~= nil then
  444. tolua.setpeer(self.frameLead, nil)
  445. end
  446. self.frameLead = nil
  447. if tolua.getpeer(self.level) ~= nil then
  448. tolua.setpeer(self.level, nil)
  449. end
  450. self.level = nil
  451. if tolua.getpeer(self.job) ~= nil then
  452. tolua.setpeer(self.job, nil)
  453. end
  454. self.job = nil
  455. if tolua.getpeer(self.sexLabel) ~= nil then
  456. tolua.setpeer(self.sexLabel, nil)
  457. end
  458. self.sexLabel = nil
  459. if tolua.getpeer(self.limited) ~= nil then
  460. tolua.setpeer(self.limited, nil)
  461. end
  462. self.limited = nil
  463. if tolua.getpeer(self.cardLabel) ~= nil then
  464. tolua.setpeer(self.cardLabel, nil)
  465. end
  466. self.cardLabel = nil
  467. if tolua.getpeer(self.piece) ~= nil then
  468. tolua.setpeer(self.piece, nil)
  469. end
  470. self.piece = nil
  471. if tolua.getpeer(self.num) ~= nil then
  472. tolua.setpeer(self.num, nil)
  473. end
  474. self.num = nil
  475. if tolua.getpeer(self.refineLv) ~= nil then
  476. tolua.setpeer(self.refineLv, nil)
  477. end
  478. self.refineLv = nil
  479. if tolua.getpeer(self.conertips) ~= nil then
  480. tolua.setpeer(self.conertips, nil)
  481. end
  482. self.conertips = nil
  483. if tolua.getpeer(self.text) ~= nil then
  484. tolua.setpeer(self.text, nil)
  485. end
  486. self.text = nil
  487. if tolua.getpeer(self.repeatSign) ~= nil then
  488. tolua.setpeer(self.repeatSign, nil)
  489. end
  490. self.repeatSign = nil
  491. if tolua.getpeer(self.qualityFX) ~= nil then
  492. tolua.setpeer(self.qualityFX, nil)
  493. end
  494. self.qualityFX = nil
  495. if tolua.getpeer(self.advence) ~= nil then
  496. tolua.setpeer(self.advence, nil)
  497. end
  498. self.advence = nil
  499. if tolua.getpeer(self.advenceLv) ~= nil then
  500. tolua.setpeer(self.advenceLv, nil)
  501. end
  502. self.advenceLv = nil
  503. if tolua.getpeer(self.vip) ~= nil then
  504. tolua.setpeer(self.vip, nil)
  505. end
  506. self.vip = nil
  507. if tolua.getpeer(self.label) ~= nil then
  508. tolua.setpeer(self.label, nil)
  509. end
  510. self.label = nil
  511. if tolua.getpeer(self.redPoint) ~= nil then
  512. tolua.setpeer(self.redPoint, nil)
  513. end
  514. self.redPoint = nil
  515. if tolua.getpeer(self.selected) ~= nil then
  516. tolua.setpeer(self.selected, nil)
  517. end
  518. self.selected = nil
  519. if tolua.getpeer(self.locked) ~= nil then
  520. tolua.setpeer(self.locked, nil)
  521. end
  522. self.locked = nil
  523. self.transform = nil
  524. self.gameObject = nil
  525. self.inited = false
  526. end
  527. return IconSmallItemView