ClimbingTowerRankItem_Generate.lua 8.6 KB

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