ClimbingTowerTopItem_Generate.lua 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528
  1. ---@class ClimbingTowerTopItem__Generate_levelNum
  2. ---@field public gameObject UnityEngine.GameObject
  3. ---@field public text UnityEngine.UI.Text
  4. ---@class ClimbingTowerTopItem__Generate_btnBuy_num
  5. ---@field public gameObject UnityEngine.GameObject
  6. ---@field public text UnityEngine.UI.Text
  7. ---@class ClimbingTowerTopItem__Generate_btnBuy_icon
  8. ---@field public gameObject UnityEngine.GameObject
  9. ---@field public image UnityEngine.UI.Image
  10. ---@class ClimbingTowerTopItem__Generate_btnBuy
  11. ---@field public gameObject UnityEngine.GameObject
  12. ---@field public button UnityEngine.UI.Button
  13. ---@field public icon ClimbingTowerTopItem__Generate_btnBuy_icon
  14. ---@field public num ClimbingTowerTopItem__Generate_btnBuy_num
  15. ---@class ClimbingTowerTopItem__Generate_iconSmallItem
  16. ---@field public gameObject UnityEngine.GameObject
  17. ---@field public rectTransform UnityEngine.RectTransform
  18. ---@field public layoutElement UnityEngine.UI.LayoutElement
  19. ---@class ClimbingTowerTopItem__Generate_scrollView
  20. ---@field public gameObject UnityEngine.GameObject
  21. ---@field public loopGridView SuperScrollView.LoopGridView
  22. ---@class ClimbingTowerTopItem__Generate_challengeBtn
  23. ---@field public gameObject UnityEngine.GameObject
  24. ---@field public button UnityEngine.UI.Button
  25. ---@class ClimbingTowerTopItem__Generate_center
  26. ---@field public gameObject UnityEngine.GameObject
  27. ---@field public image UnityEngine.UI.Image
  28. ---@class ClimbingTowerTopItem__Generate_right
  29. ---@field public gameObject UnityEngine.GameObject
  30. ---@field public image UnityEngine.UI.Image
  31. ---@class ClimbingTowerTopItem__Generate_left
  32. ---@field public gameObject UnityEngine.GameObject
  33. ---@field public image UnityEngine.UI.Image
  34. ---@class ClimbingTowerTopItem__Generate_btnMessage
  35. ---@field public gameObject UnityEngine.GameObject
  36. ---@field public button UnityEngine.UI.Button
  37. ---@class ClimbingTowerTopItem__Generate_atknum
  38. ---@field public gameObject UnityEngine.GameObject
  39. ---@field public text UnityEngine.UI.Text
  40. ---@class ClimbingTowerTopItem__Generate_servertext
  41. ---@field public gameObject UnityEngine.GameObject
  42. ---@field public text TMPro.TextMeshProUGUI
  43. ---@class ClimbingTowerTopItem__Generate_nametext
  44. ---@field public gameObject UnityEngine.GameObject
  45. ---@field public text TMPro.TextMeshProUGUI
  46. ---@class ClimbingTowerTopItem__Generate_roleModel
  47. ---@field public gameObject UnityEngine.GameObject
  48. ---@field public rawImage UnityEngine.UI.RawImage
  49. ---@field public uIEventTriggerListener UIEventTriggerListener
  50. ---@class ClimbingTowerTopItem__Generate_pos
  51. ---@field public gameObject UnityEngine.GameObject
  52. ---@field public rectTransform UnityEngine.RectTransform
  53. ---@field public image UnityEngine.UI.Image
  54. ---@class ClimbingTowerTopItem__Generate
  55. ---@field private gameObject UnityEngine.GameObject
  56. ---@field private transform UnityEngine.Transform
  57. ---@field private playerNode UnityEngine.GameObject
  58. ---@field private pos ClimbingTowerTopItem__Generate_pos
  59. ---@field private roleModel ClimbingTowerTopItem__Generate_roleModel
  60. ---@field private nametext ClimbingTowerTopItem__Generate_nametext
  61. ---@field private servertext ClimbingTowerTopItem__Generate_servertext
  62. ---@field private atknum ClimbingTowerTopItem__Generate_atknum
  63. ---@field private btnMessage ClimbingTowerTopItem__Generate_btnMessage
  64. ---@field private bottomNode UnityEngine.GameObject
  65. ---@field private left ClimbingTowerTopItem__Generate_left
  66. ---@field private right ClimbingTowerTopItem__Generate_right
  67. ---@field private center ClimbingTowerTopItem__Generate_center
  68. ---@field private challengeBtn ClimbingTowerTopItem__Generate_challengeBtn
  69. ---@field private passedNode UnityEngine.GameObject
  70. ---@field private cover UnityEngine.GameObject
  71. ---@field private rewards UnityEngine.GameObject
  72. ---@field private scrollView ClimbingTowerTopItem__Generate_scrollView
  73. ---@field private content UnityEngine.GameObject
  74. ---@field private iconSmallItem ClimbingTowerTopItem__Generate_iconSmallItem
  75. ---@field private btnBuy ClimbingTowerTopItem__Generate_btnBuy
  76. ---@field private levelNum ClimbingTowerTopItem__Generate_levelNum
  77. local ClimbingTowerTopItemView = class("ClimbingTowerTopItemView")
  78. function ClimbingTowerTopItemView:ctor()
  79. end
  80. ---@private
  81. function ClimbingTowerTopItemView:SetActive(result)
  82. self.gameObject:SetActive(result)
  83. end
  84. ---@private
  85. function ClimbingTowerTopItemView:InitGenerate(Root, data)
  86. self.transform = Root
  87. self.inited = true
  88. local tmp
  89. self:InitGenerate__1(Root,data)
  90. self:InitGenerate__2(Root,data)
  91. self:InitGenerate__3(Root,data)
  92. self:InitGenerate__4(Root,data)
  93. self:InitGenerate__5(Root,data)
  94. self:InitGenerate__6(Root,data)
  95. self:InitGenerate__7(Root,data)
  96. self:InitGenerate__8(Root,data)
  97. self:InitGenerate__9(Root,data)
  98. self:InitGenerate__10(Root,data)
  99. self:InitGenerate__11(Root,data)
  100. self:InitGenerate__12(Root,data)
  101. self:InitGenerate__13(Root,data)
  102. self:InitGenerate__14(Root,data)
  103. self:InitGenerate__15(Root,data)
  104. self:InitGenerate__16(Root,data)
  105. self:InitGenerate__17(Root,data)
  106. self:InitGenerate__18(Root,data)
  107. self:InitGenerate__19(Root,data)
  108. self:InitGenerate__20(Root,data)
  109. self:InitGenerate__21(Root,data)
  110. self:InitGenerate__22(Root,data)
  111. self:InitGenerate__23(Root,data)
  112. end
  113. ---@private
  114. function ClimbingTowerTopItemView:InitGenerate__1(Root, data)
  115. --[[
  116. Root
  117. --]]
  118. end
  119. ---@private
  120. function ClimbingTowerTopItemView:InitGenerate__2(Root, data)
  121. --[[
  122. PlayerNode
  123. --]]
  124. local tmp = Root:Find("PlayerNode").gameObject
  125. if tolua.getpeer(tmp) == nil then
  126. tolua.setpeer(tmp, {})
  127. end
  128. self.playerNode = tmp
  129. end
  130. ---@private
  131. function ClimbingTowerTopItemView:InitGenerate__3(Root, data)
  132. --[[
  133. PlayerNode/Pos
  134. --]]
  135. local tmp = Root:Find("PlayerNode/Pos").gameObject
  136. if tolua.getpeer(tmp) == nil then
  137. tolua.setpeer(tmp, {})
  138. end
  139. self.pos = tmp
  140. tmp.rectTransform = tmp:GetComponent(Enum.TypeInfo.RectTransform)
  141. tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
  142. end
  143. ---@private
  144. function ClimbingTowerTopItemView:InitGenerate__4(Root, data)
  145. --[[
  146. PlayerNode/RoleModel
  147. --]]
  148. local tmp = Root:Find("PlayerNode/RoleModel").gameObject
  149. if tolua.getpeer(tmp) == nil then
  150. tolua.setpeer(tmp, {})
  151. end
  152. self.roleModel = tmp
  153. tmp.rawImage = tmp:GetComponent(Enum.TypeInfo.RawImage)
  154. tmp.uIEventTriggerListener = tmp:GetComponent(Enum.TypeInfo.UIEventTriggerListener)
  155. end
  156. ---@private
  157. function ClimbingTowerTopItemView:InitGenerate__5(Root, data)
  158. --[[
  159. PlayerNode/Info/nametext
  160. --]]
  161. local tmp = Root:Find("PlayerNode/Info/nametext").gameObject
  162. if tolua.getpeer(tmp) == nil then
  163. tolua.setpeer(tmp, {})
  164. end
  165. self.nametext = tmp
  166. tmp.text = tmp:GetComponent(Enum.TypeInfo.TextMeshProUGUI)
  167. end
  168. ---@private
  169. function ClimbingTowerTopItemView:InitGenerate__6(Root, data)
  170. --[[
  171. PlayerNode/Info/servertext
  172. --]]
  173. local tmp = Root:Find("PlayerNode/Info/servertext").gameObject
  174. if tolua.getpeer(tmp) == nil then
  175. tolua.setpeer(tmp, {})
  176. end
  177. self.servertext = tmp
  178. tmp.text = tmp:GetComponent(Enum.TypeInfo.TextMeshProUGUI)
  179. end
  180. ---@private
  181. function ClimbingTowerTopItemView:InitGenerate__7(Root, data)
  182. --[[
  183. PlayerNode/Info/Atk/atknum
  184. --]]
  185. local tmp = Root:Find("PlayerNode/Info/Atk/atknum").gameObject
  186. if tolua.getpeer(tmp) == nil then
  187. tolua.setpeer(tmp, {})
  188. end
  189. self.atknum = tmp
  190. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  191. end
  192. ---@private
  193. function ClimbingTowerTopItemView:InitGenerate__8(Root, data)
  194. --[[
  195. PlayerNode/Info/BtnMessage
  196. --]]
  197. local tmp = Root:Find("PlayerNode/Info/BtnMessage").gameObject
  198. if tolua.getpeer(tmp) == nil then
  199. tolua.setpeer(tmp, {})
  200. end
  201. self.btnMessage = tmp
  202. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  203. end
  204. ---@private
  205. function ClimbingTowerTopItemView:InitGenerate__9(Root, data)
  206. --[[
  207. Bottom
  208. --]]
  209. local tmp = Root:Find("Bottom").gameObject
  210. if tolua.getpeer(tmp) == nil then
  211. tolua.setpeer(tmp, {})
  212. end
  213. self.bottomNode = tmp
  214. end
  215. ---@private
  216. function ClimbingTowerTopItemView:InitGenerate__10(Root, data)
  217. --[[
  218. Bottom/left
  219. --]]
  220. local tmp = Root:Find("Bottom/left").gameObject
  221. if tolua.getpeer(tmp) == nil then
  222. tolua.setpeer(tmp, {})
  223. end
  224. self.left = tmp
  225. tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
  226. end
  227. ---@private
  228. function ClimbingTowerTopItemView:InitGenerate__11(Root, data)
  229. --[[
  230. Bottom/right
  231. --]]
  232. local tmp = Root:Find("Bottom/right").gameObject
  233. if tolua.getpeer(tmp) == nil then
  234. tolua.setpeer(tmp, {})
  235. end
  236. self.right = tmp
  237. tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
  238. end
  239. ---@private
  240. function ClimbingTowerTopItemView:InitGenerate__12(Root, data)
  241. --[[
  242. Bottom/center
  243. --]]
  244. local tmp = Root:Find("Bottom/center").gameObject
  245. if tolua.getpeer(tmp) == nil then
  246. tolua.setpeer(tmp, {})
  247. end
  248. self.center = tmp
  249. tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
  250. end
  251. ---@private
  252. function ClimbingTowerTopItemView:InitGenerate__13(Root, data)
  253. --[[
  254. ChallengeBtn
  255. --]]
  256. local tmp = Root:Find("ChallengeBtn").gameObject
  257. if tolua.getpeer(tmp) == nil then
  258. tolua.setpeer(tmp, {})
  259. end
  260. self.challengeBtn = tmp
  261. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  262. end
  263. ---@private
  264. function ClimbingTowerTopItemView:InitGenerate__14(Root, data)
  265. --[[
  266. PassedNode
  267. --]]
  268. local tmp = Root:Find("PassedNode").gameObject
  269. if tolua.getpeer(tmp) == nil then
  270. tolua.setpeer(tmp, {})
  271. end
  272. self.passedNode = tmp
  273. end
  274. ---@private
  275. function ClimbingTowerTopItemView:InitGenerate__15(Root, data)
  276. --[[
  277. Cover
  278. --]]
  279. local tmp = Root:Find("Cover").gameObject
  280. if tolua.getpeer(tmp) == nil then
  281. tolua.setpeer(tmp, {})
  282. end
  283. self.cover = tmp
  284. end
  285. ---@private
  286. function ClimbingTowerTopItemView:InitGenerate__16(Root, data)
  287. --[[
  288. Rewards
  289. --]]
  290. local tmp = Root:Find("Rewards").gameObject
  291. if tolua.getpeer(tmp) == nil then
  292. tolua.setpeer(tmp, {})
  293. end
  294. self.rewards = tmp
  295. end
  296. ---@private
  297. function ClimbingTowerTopItemView:InitGenerate__17(Root, data)
  298. --[[
  299. Rewards/Flag/ScrollView
  300. --]]
  301. local tmp = Root:Find("Rewards/Flag/ScrollView").gameObject
  302. if tolua.getpeer(tmp) == nil then
  303. tolua.setpeer(tmp, {})
  304. end
  305. self.scrollView = tmp
  306. tmp.loopGridView = tmp:GetComponent(Enum.TypeInfo.LoopGridView)
  307. end
  308. ---@private
  309. function ClimbingTowerTopItemView:InitGenerate__18(Root, data)
  310. --[[
  311. Rewards/Flag/ScrollView/Viewport/Content
  312. --]]
  313. local tmp = Root:Find("Rewards/Flag/ScrollView/Viewport/Content").gameObject
  314. if tolua.getpeer(tmp) == nil then
  315. tolua.setpeer(tmp, {})
  316. end
  317. self.content = tmp
  318. end
  319. ---@private
  320. function ClimbingTowerTopItemView:InitGenerate__19(Root, data)
  321. --[[
  322. Rewards/Flag/ScrollView/Viewport/Content/IconSmallItem
  323. --]]
  324. local tmp = Root:Find("Rewards/Flag/ScrollView/Viewport/Content/IconSmallItem").gameObject
  325. if tolua.getpeer(tmp) == nil then
  326. tolua.setpeer(tmp, {})
  327. end
  328. self.iconSmallItem = CommonUtil.BindGridViewItem2LuaStatic("IconItem", tmp)
  329. self.iconSmallItem.prefabName = "IconItem"
  330. tmp.rectTransform = tmp:GetComponent(Enum.TypeInfo.RectTransform)
  331. tmp.layoutElement = tmp:GetComponent(Enum.TypeInfo.LayoutElement)
  332. end
  333. ---@private
  334. function ClimbingTowerTopItemView:InitGenerate__20(Root, data)
  335. --[[
  336. BtnBuy
  337. --]]
  338. local tmp = Root:Find("BtnBuy").gameObject
  339. if tolua.getpeer(tmp) == nil then
  340. tolua.setpeer(tmp, {})
  341. end
  342. self.btnBuy = tmp
  343. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  344. end
  345. ---@private
  346. function ClimbingTowerTopItemView:InitGenerate__21(Root, data)
  347. --[[
  348. BtnBuy/Content/Icon
  349. --]]
  350. local tmp = Root:Find("BtnBuy/Content/Icon").gameObject
  351. if tolua.getpeer(tmp) == nil then
  352. tolua.setpeer(tmp, {})
  353. end
  354. self.btnBuy.icon = tmp
  355. tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
  356. end
  357. ---@private
  358. function ClimbingTowerTopItemView:InitGenerate__22(Root, data)
  359. --[[
  360. BtnBuy/Content/num
  361. --]]
  362. local tmp = Root:Find("BtnBuy/Content/num").gameObject
  363. if tolua.getpeer(tmp) == nil then
  364. tolua.setpeer(tmp, {})
  365. end
  366. self.btnBuy.num = tmp
  367. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  368. end
  369. ---@private
  370. function ClimbingTowerTopItemView:InitGenerate__23(Root, data)
  371. --[[
  372. Top/LevelNumTxt
  373. --]]
  374. local tmp = Root:Find("Top/LevelNumTxt").gameObject
  375. if tolua.getpeer(tmp) == nil then
  376. tolua.setpeer(tmp, {})
  377. end
  378. self.levelNum = tmp
  379. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  380. end
  381. ---@private
  382. function ClimbingTowerTopItemView:GenerateDestroy()
  383. if tolua.getpeer(self.levelNum) ~= nil then
  384. tolua.setpeer(self.levelNum, nil)
  385. end
  386. if tolua.getpeer(self.btnBuy.num) ~= nil then
  387. tolua.setpeer(self.btnBuy.num, nil)
  388. end
  389. if tolua.getpeer(self.btnBuy.icon) ~= nil then
  390. tolua.setpeer(self.btnBuy.icon, nil)
  391. end
  392. if tolua.getpeer(self.btnBuy) ~= nil then
  393. tolua.setpeer(self.btnBuy, nil)
  394. end
  395. if tolua.getpeer(self.cover) ~= nil then
  396. tolua.setpeer(self.cover, nil)
  397. end
  398. if tolua.getpeer(self.passedNode) ~= nil then
  399. tolua.setpeer(self.passedNode, nil)
  400. end
  401. if tolua.getpeer(self.challengeBtn) ~= nil then
  402. tolua.setpeer(self.challengeBtn, nil)
  403. end
  404. if tolua.getpeer(self.bottomNode) ~= nil then
  405. tolua.setpeer(self.bottomNode, nil)
  406. end
  407. if tolua.getpeer(self.btnMessage) ~= nil then
  408. tolua.setpeer(self.btnMessage, nil)
  409. end
  410. if tolua.getpeer(self.atknum) ~= nil then
  411. tolua.setpeer(self.atknum, nil)
  412. end
  413. if tolua.getpeer(self.servertext) ~= nil then
  414. tolua.setpeer(self.servertext, nil)
  415. end
  416. if tolua.getpeer(self.nametext) ~= nil then
  417. tolua.setpeer(self.nametext, nil)
  418. end
  419. if tolua.getpeer(self.roleModel) ~= nil then
  420. tolua.setpeer(self.roleModel, nil)
  421. end
  422. if tolua.getpeer(self.pos) ~= nil then
  423. tolua.setpeer(self.pos, nil)
  424. end
  425. if tolua.getpeer(self.playerNode) ~= nil then
  426. tolua.setpeer(self.playerNode, nil)
  427. end
  428. if tolua.getpeer(self.left) ~= nil then
  429. tolua.setpeer(self.left, nil)
  430. end
  431. self.left = nil
  432. if tolua.getpeer(self.right) ~= nil then
  433. tolua.setpeer(self.right, nil)
  434. end
  435. self.right = nil
  436. if tolua.getpeer(self.center) ~= nil then
  437. tolua.setpeer(self.center, nil)
  438. end
  439. self.center = nil
  440. if tolua.getpeer(self.rewards) ~= nil then
  441. tolua.setpeer(self.rewards, nil)
  442. end
  443. self.rewards = nil
  444. if tolua.getpeer(self.scrollView) ~= nil then
  445. tolua.setpeer(self.scrollView, nil)
  446. end
  447. self.scrollView = nil
  448. if tolua.getpeer(self.content) ~= nil then
  449. tolua.setpeer(self.content, nil)
  450. end
  451. self.content = nil
  452. if self.iconSmallItem.GenerateDestroy ~= nil then
  453. self.iconSmallItem:GenerateDestroy()
  454. end
  455. if tolua.getpeer(self.iconSmallItem) ~= nil then
  456. tolua.setpeer(self.iconSmallItem, nil)
  457. end
  458. self.iconSmallItem = nil
  459. self.transform = nil
  460. self.gameObject = nil
  461. self.inited = false
  462. end
  463. return ClimbingTowerTopItemView