UIGuildDemonRankView_Generate.lua 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401
  1. ---@class UIGuildDemonRank__Generate_myGuildRank
  2. ---@field public gameObject UnityEngine.GameObject
  3. ---@field public button UnityEngine.UI.Button
  4. ---@class UIGuildDemonRank__Generate_mvpRank
  5. ---@field public gameObject UnityEngine.GameObject
  6. ---@field public button UnityEngine.UI.Button
  7. ---@class UIGuildDemonRank__Generate_playerRank
  8. ---@field public gameObject UnityEngine.GameObject
  9. ---@field public toggle UnityEngine.UI.Toggle
  10. ---@class UIGuildDemonRank__Generate_guildRank
  11. ---@field public gameObject UnityEngine.GameObject
  12. ---@field public toggle UnityEngine.UI.Toggle
  13. ---@class UIGuildDemonRank__Generate_loadingItem
  14. ---@field public gameObject UnityEngine.GameObject
  15. ---@field public rectTransform UnityEngine.RectTransform
  16. ---@field public layoutElement UnityEngine.UI.LayoutElement
  17. ---@class UIGuildDemonRank__Generate_demonChampRankItem
  18. ---@field public gameObject UnityEngine.GameObject
  19. ---@field public button UnityEngine.UI.Button
  20. ---@class UIGuildDemonRank__Generate_demonGuildRankItem
  21. ---@field public gameObject UnityEngine.GameObject
  22. ---@field public button UnityEngine.UI.Button
  23. ---@class UIGuildDemonRank__Generate_scrollView
  24. ---@field public gameObject UnityEngine.GameObject
  25. ---@field public scrollRect UnityEngine.UI.ScrollRect
  26. ---@field public loopListView SuperScrollView.LoopListView
  27. ---@class UIGuildDemonRank__Generate_noRankListTxt
  28. ---@field public gameObject UnityEngine.GameObject
  29. ---@field public text UnityEngine.UI.Text
  30. ---@class UIGuildDemonRank__Generate_title
  31. ---@field public gameObject UnityEngine.GameObject
  32. ---@field public text TMPro.TextMeshProUGUI
  33. ---@class UIGuildDemonRank__Generate_closeBtn
  34. ---@field public gameObject UnityEngine.GameObject
  35. ---@field public button UnityEngine.UI.Button
  36. ---@class UIGuildDemonRank__Generate_AnyBtn
  37. ---@field public gameObject UnityEngine.GameObject
  38. ---@field public button UnityEngine.UI.Button
  39. ---@class UIGuildDemonRank__Generate
  40. ---@field private gameObject UnityEngine.GameObject
  41. ---@field private transform UnityEngine.Transform
  42. ---@field private AnyBtn UIGuildDemonRank__Generate_AnyBtn
  43. ---@field private bottomRoot UnityEngine.GameObject
  44. ---@field private closeBtn UIGuildDemonRank__Generate_closeBtn
  45. ---@field private title UIGuildDemonRank__Generate_title
  46. ---@field private noRankList UnityEngine.GameObject
  47. ---@field private noRankListTxt UIGuildDemonRank__Generate_noRankListTxt
  48. ---@field private scrollView UIGuildDemonRank__Generate_scrollView
  49. ---@field private rankContent UnityEngine.GameObject
  50. ---@field private demonGuildRankItem UIGuildDemonRank__Generate_demonGuildRankItem
  51. ---@field private demonChampRankItem UIGuildDemonRank__Generate_demonChampRankItem
  52. ---@field private loadingItem UIGuildDemonRank__Generate_loadingItem
  53. ---@field private guildRank UIGuildDemonRank__Generate_guildRank
  54. ---@field private playerRank UIGuildDemonRank__Generate_playerRank
  55. ---@field private mvpRank UIGuildDemonRank__Generate_mvpRank
  56. ---@field private myGuildRank UIGuildDemonRank__Generate_myGuildRank
  57. local UIGuildDemonRankView = class("UIGuildDemonRankView", require("UIViewBase"))
  58. function UIGuildDemonRankView:ctor()
  59. end
  60. ---@private
  61. function UIGuildDemonRankView:SetActive(result)
  62. self.gameObject:SetActive(result)
  63. end
  64. ---@private
  65. function UIGuildDemonRankView:InitGenerate(Root, data)
  66. self.transform = Root
  67. self.inited = true
  68. if self.super.Init then
  69. self.super.Init(self)
  70. end
  71. local tmp
  72. self:InitGenerate__1(Root,data)
  73. self:InitGenerate__2(Root,data)
  74. self:InitGenerate__3(Root,data)
  75. self:InitGenerate__4(Root,data)
  76. self:InitGenerate__5(Root,data)
  77. self:InitGenerate__6(Root,data)
  78. self:InitGenerate__7(Root,data)
  79. self:InitGenerate__8(Root,data)
  80. self:InitGenerate__9(Root,data)
  81. self:InitGenerate__10(Root,data)
  82. self:InitGenerate__11(Root,data)
  83. self:InitGenerate__12(Root,data)
  84. self:InitGenerate__13(Root,data)
  85. self:InitGenerate__14(Root,data)
  86. self:InitGenerate__15(Root,data)
  87. end
  88. ---@private
  89. function UIGuildDemonRankView:InitGenerate__1(Root, data)
  90. --[[
  91. UIAnimator/Alpha
  92. --]]
  93. local tmp = Root:Find("UIAnimator/Alpha").gameObject
  94. if tolua.getpeer(tmp) == nil then
  95. tolua.setpeer(tmp, {})
  96. end
  97. self.AnyBtn = tmp
  98. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  99. end
  100. ---@private
  101. function UIGuildDemonRankView:InitGenerate__2(Root, data)
  102. --[[
  103. UIAnimator/Window/Bg/BottomRoot
  104. --]]
  105. local tmp = Root:Find("UIAnimator/Window/Bg/BottomRoot").gameObject
  106. if tolua.getpeer(tmp) == nil then
  107. tolua.setpeer(tmp, {})
  108. end
  109. self.bottomRoot = tmp
  110. end
  111. ---@private
  112. function UIGuildDemonRankView:InitGenerate__3(Root, data)
  113. --[[
  114. UIAnimator/Window/Bg/CloseBox/BtnClose
  115. --]]
  116. local tmp = Root:Find("UIAnimator/Window/Bg/CloseBox/BtnClose").gameObject
  117. if tolua.getpeer(tmp) == nil then
  118. tolua.setpeer(tmp, {})
  119. end
  120. self.closeBtn = tmp
  121. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  122. end
  123. ---@private
  124. function UIGuildDemonRankView:InitGenerate__4(Root, data)
  125. --[[
  126. UIAnimator/Window/Bg/Title/Text
  127. --]]
  128. local tmp = Root:Find("UIAnimator/Window/Bg/Title/Text").gameObject
  129. if tolua.getpeer(tmp) == nil then
  130. tolua.setpeer(tmp, {})
  131. end
  132. self.title = tmp
  133. tmp.text = tmp:GetComponent(Enum.TypeInfo.TextMeshProUGUI)
  134. end
  135. ---@private
  136. function UIGuildDemonRankView:InitGenerate__5(Root, data)
  137. --[[
  138. UIAnimator/Window/Bg/RankList/NoRankList
  139. --]]
  140. local tmp = Root:Find("UIAnimator/Window/Bg/RankList/NoRankList").gameObject
  141. if tolua.getpeer(tmp) == nil then
  142. tolua.setpeer(tmp, {})
  143. end
  144. self.noRankList = tmp
  145. end
  146. ---@private
  147. function UIGuildDemonRankView:InitGenerate__6(Root, data)
  148. --[[
  149. UIAnimator/Window/Bg/RankList/NoRankList/Text
  150. --]]
  151. local tmp = Root:Find("UIAnimator/Window/Bg/RankList/NoRankList/Text").gameObject
  152. if tolua.getpeer(tmp) == nil then
  153. tolua.setpeer(tmp, {})
  154. end
  155. self.noRankListTxt = tmp
  156. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  157. end
  158. ---@private
  159. function UIGuildDemonRankView:InitGenerate__7(Root, data)
  160. --[[
  161. UIAnimator/Window/Bg/RankList/ScrollView
  162. --]]
  163. local tmp = Root:Find("UIAnimator/Window/Bg/RankList/ScrollView").gameObject
  164. if tolua.getpeer(tmp) == nil then
  165. tolua.setpeer(tmp, {})
  166. end
  167. self.scrollView = tmp
  168. tmp.scrollRect = tmp:GetComponent(Enum.TypeInfo.ScrollRect)
  169. tmp.loopListView = tmp:GetComponent(Enum.TypeInfo.LoopListView)
  170. end
  171. ---@private
  172. function UIGuildDemonRankView:InitGenerate__8(Root, data)
  173. --[[
  174. UIAnimator/Window/Bg/RankList/ScrollView/Viewport/Content
  175. --]]
  176. local tmp = Root:Find("UIAnimator/Window/Bg/RankList/ScrollView/Viewport/Content").gameObject
  177. if tolua.getpeer(tmp) == nil then
  178. tolua.setpeer(tmp, {})
  179. end
  180. self.rankContent = tmp
  181. end
  182. ---@private
  183. function UIGuildDemonRankView:InitGenerate__9(Root, data)
  184. --[[
  185. UIAnimator/Window/Bg/RankList/ScrollView/Viewport/Content/DemonGuildRankItem
  186. --]]
  187. local tmp = Root:Find("UIAnimator/Window/Bg/RankList/ScrollView/Viewport/Content/DemonGuildRankItem").gameObject
  188. if tolua.getpeer(tmp) == nil then
  189. tolua.setpeer(tmp, {})
  190. end
  191. self.demonGuildRankItem = CommonUtil.BindGridViewItem2LuaStatic("DemonGuildRankItem", tmp)
  192. self.demonGuildRankItem.prefabName = "DemonGuildRankItem"
  193. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  194. end
  195. ---@private
  196. function UIGuildDemonRankView:InitGenerate__10(Root, data)
  197. --[[
  198. UIAnimator/Window/Bg/RankList/ScrollView/Viewport/Content/DemonChampRankItem
  199. --]]
  200. local tmp = Root:Find("UIAnimator/Window/Bg/RankList/ScrollView/Viewport/Content/DemonChampRankItem").gameObject
  201. if tolua.getpeer(tmp) == nil then
  202. tolua.setpeer(tmp, {})
  203. end
  204. self.demonChampRankItem = CommonUtil.BindGridViewItem2LuaStatic("DemonChampRankItem", tmp)
  205. self.demonChampRankItem.prefabName = "DemonChampRankItem"
  206. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  207. end
  208. ---@private
  209. function UIGuildDemonRankView:InitGenerate__11(Root, data)
  210. --[[
  211. UIAnimator/Window/Bg/RankList/ScrollView/Viewport/Content/LoadingItem
  212. --]]
  213. local tmp = Root:Find("UIAnimator/Window/Bg/RankList/ScrollView/Viewport/Content/LoadingItem").gameObject
  214. if tolua.getpeer(tmp) == nil then
  215. tolua.setpeer(tmp, {})
  216. end
  217. self.loadingItem = CommonUtil.BindGridViewItem2LuaStatic("LoadingItem", tmp)
  218. self.loadingItem.prefabName = "LoadingItem"
  219. tmp.rectTransform = tmp:GetComponent(Enum.TypeInfo.RectTransform)
  220. tmp.layoutElement = tmp:GetComponent(Enum.TypeInfo.LayoutElement)
  221. end
  222. ---@private
  223. function UIGuildDemonRankView:InitGenerate__12(Root, data)
  224. --[[
  225. UIAnimator/Window/Bg/RankList/TgooleGroup/GuildRank
  226. --]]
  227. local tmp = Root:Find("UIAnimator/Window/Bg/RankList/TgooleGroup/GuildRank").gameObject
  228. if tolua.getpeer(tmp) == nil then
  229. tolua.setpeer(tmp, {})
  230. end
  231. self.guildRank = tmp
  232. tmp.toggle = tmp:GetComponent(Enum.TypeInfo.Toggle)
  233. end
  234. ---@private
  235. function UIGuildDemonRankView:InitGenerate__13(Root, data)
  236. --[[
  237. UIAnimator/Window/Bg/RankList/TgooleGroup/PlayerRank
  238. --]]
  239. local tmp = Root:Find("UIAnimator/Window/Bg/RankList/TgooleGroup/PlayerRank").gameObject
  240. if tolua.getpeer(tmp) == nil then
  241. tolua.setpeer(tmp, {})
  242. end
  243. self.playerRank = tmp
  244. tmp.toggle = tmp:GetComponent(Enum.TypeInfo.Toggle)
  245. end
  246. ---@private
  247. function UIGuildDemonRankView:InitGenerate__14(Root, data)
  248. --[[
  249. UIAnimator/Window/Bg/MvpRank
  250. --]]
  251. local tmp = Root:Find("UIAnimator/Window/Bg/MvpRank").gameObject
  252. if tolua.getpeer(tmp) == nil then
  253. tolua.setpeer(tmp, {})
  254. end
  255. self.mvpRank = CommonUtil.BindGridViewItem2LuaStatic("DemonChampRankItem", tmp)
  256. self.mvpRank.prefabName = "DemonChampRankItem"
  257. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  258. end
  259. ---@private
  260. function UIGuildDemonRankView:InitGenerate__15(Root, data)
  261. --[[
  262. UIAnimator/Window/Bg/MyGuildRank
  263. --]]
  264. local tmp = Root:Find("UIAnimator/Window/Bg/MyGuildRank").gameObject
  265. if tolua.getpeer(tmp) == nil then
  266. tolua.setpeer(tmp, {})
  267. end
  268. self.myGuildRank = CommonUtil.BindGridViewItem2LuaStatic("DemonGuildRankItem", tmp)
  269. self.myGuildRank.prefabName = "DemonGuildRankItem"
  270. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  271. end
  272. ---@private
  273. function UIGuildDemonRankView:GenerateDestroy()
  274. if tolua.getpeer(self.AnyBtn) ~= nil then
  275. tolua.setpeer(self.AnyBtn, nil)
  276. end
  277. self.AnyBtn = nil
  278. if tolua.getpeer(self.bottomRoot) ~= nil then
  279. tolua.setpeer(self.bottomRoot, nil)
  280. end
  281. self.bottomRoot = nil
  282. if tolua.getpeer(self.closeBtn) ~= nil then
  283. tolua.setpeer(self.closeBtn, nil)
  284. end
  285. self.closeBtn = nil
  286. if tolua.getpeer(self.title) ~= nil then
  287. tolua.setpeer(self.title, nil)
  288. end
  289. self.title = nil
  290. if tolua.getpeer(self.noRankList) ~= nil then
  291. tolua.setpeer(self.noRankList, nil)
  292. end
  293. self.noRankList = nil
  294. if tolua.getpeer(self.noRankListTxt) ~= nil then
  295. tolua.setpeer(self.noRankListTxt, nil)
  296. end
  297. self.noRankListTxt = nil
  298. if tolua.getpeer(self.scrollView) ~= nil then
  299. tolua.setpeer(self.scrollView, nil)
  300. end
  301. self.scrollView = nil
  302. if tolua.getpeer(self.rankContent) ~= nil then
  303. tolua.setpeer(self.rankContent, nil)
  304. end
  305. self.rankContent = nil
  306. if self.demonGuildRankItem.GenerateDestroy ~= nil then
  307. self.demonGuildRankItem:GenerateDestroy()
  308. end
  309. if tolua.getpeer(self.demonGuildRankItem) ~= nil then
  310. tolua.setpeer(self.demonGuildRankItem, nil)
  311. end
  312. self.demonGuildRankItem = nil
  313. if self.demonChampRankItem.GenerateDestroy ~= nil then
  314. self.demonChampRankItem:GenerateDestroy()
  315. end
  316. if tolua.getpeer(self.demonChampRankItem) ~= nil then
  317. tolua.setpeer(self.demonChampRankItem, nil)
  318. end
  319. self.demonChampRankItem = nil
  320. if self.loadingItem.GenerateDestroy ~= nil then
  321. self.loadingItem:GenerateDestroy()
  322. end
  323. if tolua.getpeer(self.loadingItem) ~= nil then
  324. tolua.setpeer(self.loadingItem, nil)
  325. end
  326. self.loadingItem = nil
  327. if tolua.getpeer(self.guildRank) ~= nil then
  328. tolua.setpeer(self.guildRank, nil)
  329. end
  330. self.guildRank = nil
  331. if tolua.getpeer(self.playerRank) ~= nil then
  332. tolua.setpeer(self.playerRank, nil)
  333. end
  334. self.playerRank = nil
  335. if self.mvpRank.GenerateDestroy ~= nil then
  336. self.mvpRank:GenerateDestroy()
  337. end
  338. if tolua.getpeer(self.mvpRank) ~= nil then
  339. tolua.setpeer(self.mvpRank, nil)
  340. end
  341. self.mvpRank = nil
  342. if self.myGuildRank.GenerateDestroy ~= nil then
  343. self.myGuildRank:GenerateDestroy()
  344. end
  345. if tolua.getpeer(self.myGuildRank) ~= nil then
  346. tolua.setpeer(self.myGuildRank, nil)
  347. end
  348. self.myGuildRank = nil
  349. self.transform = nil
  350. self.gameObject = nil
  351. self.inited = false
  352. end
  353. return UIGuildDemonRankView