ClimbingTowerRankItem_Generate.lua 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375
  1. ---@class ClimbingTowerRankItem__Generate_content
  2. ---@field public gameObject UnityEngine.GameObject
  3. ---@field public horizontalLayoutGroup UnityEngine.UI.HorizontalLayoutGroup
  4. ---@class ClimbingTowerRankItem__Generate_rewordNode
  5. ---@field public gameObject UnityEngine.GameObject
  6. ---@field public loopHorizontalScrollRect UnityEngine.UI.LoopHorizontalScrollRect
  7. ---@class ClimbingTowerRankItem__Generate_serverName
  8. ---@field public gameObject UnityEngine.GameObject
  9. ---@field public text UnityEngine.UI.Text
  10. ---@class ClimbingTowerRankItem__Generate_blockNum
  11. ---@field public gameObject UnityEngine.GameObject
  12. ---@field public text UnityEngine.UI.Text
  13. ---@class ClimbingTowerRankItem__Generate_blockNumTitle
  14. ---@field public gameObject UnityEngine.GameObject
  15. ---@field public uILocalizeScript UILocalizeScript
  16. ---@class ClimbingTowerRankItem__Generate_passedTime
  17. ---@field public gameObject UnityEngine.GameObject
  18. ---@field public text UnityEngine.UI.Text
  19. ---@class ClimbingTowerRankItem__Generate_passedTimeTips
  20. ---@field public gameObject UnityEngine.GameObject
  21. ---@field public text UnityEngine.UI.Text
  22. ---@class ClimbingTowerRankItem__Generate_levelNum
  23. ---@field public gameObject UnityEngine.GameObject
  24. ---@field public text UnityEngine.UI.Text
  25. ---@class ClimbingTowerRankItem__Generate_levelNumTips
  26. ---@field public gameObject UnityEngine.GameObject
  27. ---@field public text UnityEngine.UI.Text
  28. ---@class ClimbingTowerRankItem__Generate_vipIcon
  29. ---@field public gameObject UnityEngine.GameObject
  30. ---@field public image UnityEngine.UI.Image
  31. ---@class ClimbingTowerRankItem__Generate_playerName
  32. ---@field public gameObject UnityEngine.GameObject
  33. ---@field public text UnityEngine.UI.Text
  34. ---@class ClimbingTowerRankItem__Generate_headItem
  35. ---@field public gameObject UnityEngine.GameObject
  36. ---@field public layoutElement UnityEngine.UI.LayoutElement
  37. ---@class ClimbingTowerRankItem__Generate_rankImg
  38. ---@field public gameObject UnityEngine.GameObject
  39. ---@field public image UnityEngine.UI.Image
  40. ---@field public switchSprite SwitchSprite
  41. ---@class ClimbingTowerRankItem__Generate_rank
  42. ---@field public gameObject UnityEngine.GameObject
  43. ---@field public text UnityEngine.UI.Text
  44. ---@class ClimbingTowerRankItem__Generate
  45. ---@field private gameObject UnityEngine.GameObject
  46. ---@field private transform UnityEngine.Transform
  47. ---@field private rank ClimbingTowerRankItem__Generate_rank
  48. ---@field private rankImg ClimbingTowerRankItem__Generate_rankImg
  49. ---@field private headItem ClimbingTowerRankItem__Generate_headItem
  50. ---@field private playerName ClimbingTowerRankItem__Generate_playerName
  51. ---@field private vipIcon ClimbingTowerRankItem__Generate_vipIcon
  52. ---@field private levelNumTips ClimbingTowerRankItem__Generate_levelNumTips
  53. ---@field private levelNum ClimbingTowerRankItem__Generate_levelNum
  54. ---@field private passedTimeTips ClimbingTowerRankItem__Generate_passedTimeTips
  55. ---@field private passedTime ClimbingTowerRankItem__Generate_passedTime
  56. ---@field private blockNumTitle ClimbingTowerRankItem__Generate_blockNumTitle
  57. ---@field private blockNum ClimbingTowerRankItem__Generate_blockNum
  58. ---@field private serverName ClimbingTowerRankItem__Generate_serverName
  59. ---@field private rewordNode ClimbingTowerRankItem__Generate_rewordNode
  60. ---@field private content ClimbingTowerRankItem__Generate_content
  61. local ClimbingTowerRankItemView = class("ClimbingTowerRankItemView")
  62. function ClimbingTowerRankItemView:ctor()
  63. end
  64. ---@private
  65. function ClimbingTowerRankItemView:SetActive(result)
  66. self.gameObject:SetActive(result)
  67. end
  68. ---@private
  69. function ClimbingTowerRankItemView:InitGenerate(Root, data)
  70. self.transform = Root
  71. self.inited = true
  72. local tmp
  73. self:InitGenerate__1(Root,data)
  74. self:InitGenerate__2(Root,data)
  75. self:InitGenerate__3(Root,data)
  76. self:InitGenerate__4(Root,data)
  77. self:InitGenerate__5(Root,data)
  78. self:InitGenerate__6(Root,data)
  79. self:InitGenerate__7(Root,data)
  80. self:InitGenerate__8(Root,data)
  81. self:InitGenerate__9(Root,data)
  82. self:InitGenerate__10(Root,data)
  83. self:InitGenerate__11(Root,data)
  84. self:InitGenerate__12(Root,data)
  85. self:InitGenerate__13(Root,data)
  86. self:InitGenerate__14(Root,data)
  87. self:InitGenerate__15(Root,data)
  88. end
  89. ---@private
  90. function ClimbingTowerRankItemView:InitGenerate__1(Root, data)
  91. --[[
  92. Root
  93. --]]
  94. end
  95. ---@private
  96. function ClimbingTowerRankItemView:InitGenerate__2(Root, data)
  97. --[[
  98. Rank
  99. --]]
  100. local tmp = Root:Find("Rank").gameObject
  101. if tolua.getpeer(tmp) == nil then
  102. tolua.setpeer(tmp, {})
  103. end
  104. self.rank = tmp
  105. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  106. end
  107. ---@private
  108. function ClimbingTowerRankItemView:InitGenerate__3(Root, data)
  109. --[[
  110. Madel01
  111. --]]
  112. local tmp = Root:Find("Madel01").gameObject
  113. if tolua.getpeer(tmp) == nil then
  114. tolua.setpeer(tmp, {})
  115. end
  116. self.rankImg = tmp
  117. tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
  118. tmp.switchSprite = tmp:GetComponent(Enum.TypeInfo.SwitchSprite)
  119. end
  120. ---@private
  121. function ClimbingTowerRankItemView:InitGenerate__4(Root, data)
  122. --[[
  123. Head/HeadItem
  124. --]]
  125. local tmp = Root:Find("Head/HeadItem").gameObject
  126. if tolua.getpeer(tmp) == nil then
  127. tolua.setpeer(tmp, {})
  128. end
  129. self.headItem = CommonUtil.BindGridViewItem2LuaStatic("HeadItem", tmp)
  130. self.headItem.prefabName = "HeadItem"
  131. tmp.layoutElement = tmp:GetComponent(Enum.TypeInfo.LayoutElement)
  132. end
  133. ---@private
  134. function ClimbingTowerRankItemView:InitGenerate__5(Root, data)
  135. --[[
  136. NameText
  137. --]]
  138. local tmp = Root:Find("NameText").gameObject
  139. if tolua.getpeer(tmp) == nil then
  140. tolua.setpeer(tmp, {})
  141. end
  142. self.playerName = tmp
  143. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  144. end
  145. ---@private
  146. function ClimbingTowerRankItemView:InitGenerate__6(Root, data)
  147. --[[
  148. VipIcon
  149. --]]
  150. local tmp = Root:Find("VipIcon").gameObject
  151. if tolua.getpeer(tmp) == nil then
  152. tolua.setpeer(tmp, {})
  153. end
  154. self.vipIcon = tmp
  155. tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
  156. end
  157. ---@private
  158. function ClimbingTowerRankItemView:InitGenerate__7(Root, data)
  159. --[[
  160. LevelNumTips
  161. --]]
  162. local tmp = Root:Find("LevelNumTips").gameObject
  163. if tolua.getpeer(tmp) == nil then
  164. tolua.setpeer(tmp, {})
  165. end
  166. self.levelNumTips = tmp
  167. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  168. end
  169. ---@private
  170. function ClimbingTowerRankItemView:InitGenerate__8(Root, data)
  171. --[[
  172. LevelNum
  173. --]]
  174. local tmp = Root:Find("LevelNum").gameObject
  175. if tolua.getpeer(tmp) == nil then
  176. tolua.setpeer(tmp, {})
  177. end
  178. self.levelNum = tmp
  179. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  180. end
  181. ---@private
  182. function ClimbingTowerRankItemView:InitGenerate__9(Root, data)
  183. --[[
  184. passedTimeTips
  185. --]]
  186. local tmp = Root:Find("passedTimeTips").gameObject
  187. if tolua.getpeer(tmp) == nil then
  188. tolua.setpeer(tmp, {})
  189. end
  190. self.passedTimeTips = tmp
  191. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  192. end
  193. ---@private
  194. function ClimbingTowerRankItemView:InitGenerate__10(Root, data)
  195. --[[
  196. passedTime
  197. --]]
  198. local tmp = Root:Find("passedTime").gameObject
  199. if tolua.getpeer(tmp) == nil then
  200. tolua.setpeer(tmp, {})
  201. end
  202. self.passedTime = tmp
  203. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  204. end
  205. ---@private
  206. function ClimbingTowerRankItemView:InitGenerate__11(Root, data)
  207. --[[
  208. BlockNumTitle
  209. --]]
  210. local tmp = Root:Find("BlockNumTitle").gameObject
  211. if tolua.getpeer(tmp) == nil then
  212. tolua.setpeer(tmp, {})
  213. end
  214. self.blockNumTitle = tmp
  215. tmp.uILocalizeScript = tmp:GetComponent(Enum.TypeInfo.UILocalizeScript)
  216. end
  217. ---@private
  218. function ClimbingTowerRankItemView:InitGenerate__12(Root, data)
  219. --[[
  220. BlockNum
  221. --]]
  222. local tmp = Root:Find("BlockNum").gameObject
  223. if tolua.getpeer(tmp) == nil then
  224. tolua.setpeer(tmp, {})
  225. end
  226. self.blockNum = tmp
  227. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  228. end
  229. ---@private
  230. function ClimbingTowerRankItemView:InitGenerate__13(Root, data)
  231. --[[
  232. ServerName
  233. --]]
  234. local tmp = Root:Find("ServerName").gameObject
  235. if tolua.getpeer(tmp) == nil then
  236. tolua.setpeer(tmp, {})
  237. end
  238. self.serverName = tmp
  239. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  240. end
  241. ---@private
  242. function ClimbingTowerRankItemView:InitGenerate__14(Root, data)
  243. --[[
  244. RewordNode
  245. --]]
  246. local tmp = Root:Find("RewordNode").gameObject
  247. if tolua.getpeer(tmp) == nil then
  248. tolua.setpeer(tmp, {})
  249. end
  250. self.rewordNode = tmp
  251. tmp.loopHorizontalScrollRect = tmp:GetComponent(Enum.TypeInfo.LoopHorizontalScrollRect)
  252. end
  253. ---@private
  254. function ClimbingTowerRankItemView:InitGenerate__15(Root, data)
  255. --[[
  256. RewordNode/Viewport/Content
  257. --]]
  258. local tmp = Root:Find("RewordNode/Viewport/Content").gameObject
  259. if tolua.getpeer(tmp) == nil then
  260. tolua.setpeer(tmp, {})
  261. end
  262. self.content = tmp
  263. tmp.horizontalLayoutGroup = tmp:GetComponent(Enum.TypeInfo.HorizontalLayoutGroup)
  264. end
  265. ---@private
  266. function ClimbingTowerRankItemView:GenerateDestroy()
  267. if tolua.getpeer(self.serverName) ~= nil then
  268. tolua.setpeer(self.serverName, nil)
  269. end
  270. if tolua.getpeer(self.blockNum) ~= nil then
  271. tolua.setpeer(self.blockNum, nil)
  272. end
  273. if tolua.getpeer(self.passedTime) ~= nil then
  274. tolua.setpeer(self.passedTime, nil)
  275. end
  276. if tolua.getpeer(self.levelNum) ~= nil then
  277. tolua.setpeer(self.levelNum, nil)
  278. end
  279. if tolua.getpeer(self.rankImg) ~= nil then
  280. tolua.setpeer(self.rankImg, nil)
  281. end
  282. if tolua.getpeer(self.rank) ~= nil then
  283. tolua.setpeer(self.rank, nil)
  284. end
  285. if self.headItem.GenerateDestroy ~= nil then
  286. self.headItem:GenerateDestroy()
  287. end
  288. if tolua.getpeer(self.headItem) ~= nil then
  289. tolua.setpeer(self.headItem, nil)
  290. end
  291. self.headItem = nil
  292. if tolua.getpeer(self.playerName) ~= nil then
  293. tolua.setpeer(self.playerName, nil)
  294. end
  295. self.playerName = nil
  296. if tolua.getpeer(self.vipIcon) ~= nil then
  297. tolua.setpeer(self.vipIcon, nil)
  298. end
  299. self.vipIcon = nil
  300. if tolua.getpeer(self.levelNumTips) ~= nil then
  301. tolua.setpeer(self.levelNumTips, nil)
  302. end
  303. self.levelNumTips = nil
  304. if tolua.getpeer(self.passedTimeTips) ~= nil then
  305. tolua.setpeer(self.passedTimeTips, nil)
  306. end
  307. self.passedTimeTips = nil
  308. if tolua.getpeer(self.blockNumTitle) ~= nil then
  309. tolua.setpeer(self.blockNumTitle, nil)
  310. end
  311. self.blockNumTitle = nil
  312. if tolua.getpeer(self.rewordNode) ~= nil then
  313. tolua.setpeer(self.rewordNode, nil)
  314. end
  315. self.rewordNode = nil
  316. if tolua.getpeer(self.content) ~= nil then
  317. tolua.setpeer(self.content, nil)
  318. end
  319. self.content = nil
  320. self.transform = nil
  321. self.gameObject = nil
  322. self.inited = false
  323. end
  324. return ClimbingTowerRankItemView