UIWorldBossListView_Generate.lua 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250
  1. ---@class UIWorldBossList__Generate_num
  2. ---@field public gameObject UnityEngine.GameObject
  3. ---@field public text UnityEngine.UI.Text
  4. ---@class UIWorldBossList__Generate_btnRefresh
  5. ---@field public gameObject UnityEngine.GameObject
  6. ---@field public button UnityEngine.UI.Button
  7. ---@class UIWorldBossList__Generate_btnBack
  8. ---@field public gameObject UnityEngine.GameObject
  9. ---@field public button UnityEngine.UI.Button
  10. ---@class UIWorldBossList__Generate_btnPlayRule
  11. ---@field public gameObject UnityEngine.GameObject
  12. ---@field public button UnityEngine.UI.Button
  13. ---@class UIWorldBossList__Generate_list
  14. ---@field public gameObject UnityEngine.GameObject
  15. ---@field public loopGridView SuperScrollView.LoopGridView
  16. ---@class UIWorldBossList__Generate_AnyBtn
  17. ---@field public gameObject UnityEngine.GameObject
  18. ---@field public button UnityEngine.UI.Button
  19. ---@class UIWorldBossList__Generate_uIAnimator
  20. ---@field public gameObject UnityEngine.GameObject
  21. ---@field public animator UnityEngine.Animator
  22. ---@class UIWorldBossList__Generate
  23. ---@field private gameObject UnityEngine.GameObject
  24. ---@field private transform UnityEngine.Transform
  25. ---@field private uIAnimator UIWorldBossList__Generate_uIAnimator
  26. ---@field private AnyBtn UIWorldBossList__Generate_AnyBtn
  27. ---@field private list UIWorldBossList__Generate_list
  28. ---@field private worldBossItem UnityEngine.GameObject
  29. ---@field private noBoss UnityEngine.GameObject
  30. ---@field private btnPlayRule UIWorldBossList__Generate_btnPlayRule
  31. ---@field private btnBack UIWorldBossList__Generate_btnBack
  32. ---@field private btnRefresh UIWorldBossList__Generate_btnRefresh
  33. ---@field private num UIWorldBossList__Generate_num
  34. local UIWorldBossListView = class("UIWorldBossListView", require("UIViewBase"))
  35. function UIWorldBossListView:ctor()
  36. end
  37. ---@private
  38. function UIWorldBossListView:SetActive(result)
  39. self.gameObject:SetActive(result)
  40. end
  41. ---@private
  42. function UIWorldBossListView:InitGenerate(Root, data)
  43. self.transform = Root
  44. self.inited = true
  45. if self.super.Init then
  46. self.super.Init(self)
  47. end
  48. local tmp
  49. self:InitGenerate__1(Root,data)
  50. self:InitGenerate__2(Root,data)
  51. self:InitGenerate__3(Root,data)
  52. self:InitGenerate__4(Root,data)
  53. self:InitGenerate__5(Root,data)
  54. self:InitGenerate__6(Root,data)
  55. self:InitGenerate__7(Root,data)
  56. self:InitGenerate__8(Root,data)
  57. self:InitGenerate__9(Root,data)
  58. self:InitGenerate__10(Root,data)
  59. end
  60. ---@private
  61. function UIWorldBossListView:InitGenerate__1(Root, data)
  62. --[[
  63. Root
  64. --]]
  65. end
  66. ---@private
  67. function UIWorldBossListView:InitGenerate__2(Root, data)
  68. --[[
  69. UIAnimator
  70. --]]
  71. local tmp = Root:Find("UIAnimator").gameObject
  72. if tolua.getpeer(tmp) == nil then
  73. tolua.setpeer(tmp, {})
  74. end
  75. self.uIAnimator = tmp
  76. tmp.animator = tmp:GetComponent(Enum.TypeInfo.Animator)
  77. tmp.animator.logWarnings = false
  78. end
  79. ---@private
  80. function UIWorldBossListView:InitGenerate__3(Root, data)
  81. --[[
  82. UIAnimator/Alpha
  83. --]]
  84. local tmp = Root:Find("UIAnimator/Alpha").gameObject
  85. if tolua.getpeer(tmp) == nil then
  86. tolua.setpeer(tmp, {})
  87. end
  88. self.AnyBtn = tmp
  89. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  90. end
  91. ---@private
  92. function UIWorldBossListView:InitGenerate__4(Root, data)
  93. --[[
  94. UIAnimator/Window/ListRect/List
  95. --]]
  96. local tmp = Root:Find("UIAnimator/Window/ListRect/List").gameObject
  97. if tolua.getpeer(tmp) == nil then
  98. tolua.setpeer(tmp, {})
  99. end
  100. self.list = tmp
  101. tmp.loopGridView = tmp:GetComponent(Enum.TypeInfo.LoopGridView)
  102. end
  103. ---@private
  104. function UIWorldBossListView:InitGenerate__5(Root, data)
  105. --[[
  106. UIAnimator/Window/ListRect/List/Viewport/Content/WorldBossItem
  107. --]]
  108. local tmp = Root:Find("UIAnimator/Window/ListRect/List/Viewport/Content/WorldBossItem").gameObject
  109. if tolua.getpeer(tmp) == nil then
  110. tolua.setpeer(tmp, {})
  111. end
  112. self.worldBossItem = CommonUtil.BindGridViewItem2LuaStatic("WorldBossItem", tmp)
  113. self.worldBossItem.prefabName = "WorldBossItem"
  114. end
  115. ---@private
  116. function UIWorldBossListView:InitGenerate__6(Root, data)
  117. --[[
  118. UIAnimator/Window/ListRect/NoBoss
  119. --]]
  120. local tmp = Root:Find("UIAnimator/Window/ListRect/NoBoss").gameObject
  121. if tolua.getpeer(tmp) == nil then
  122. tolua.setpeer(tmp, {})
  123. end
  124. self.noBoss = tmp
  125. end
  126. ---@private
  127. function UIWorldBossListView:InitGenerate__7(Root, data)
  128. --[[
  129. UIAnimator/Window/BtnPlayRule
  130. --]]
  131. local tmp = Root:Find("UIAnimator/Window/BtnPlayRule").gameObject
  132. if tolua.getpeer(tmp) == nil then
  133. tolua.setpeer(tmp, {})
  134. end
  135. self.btnPlayRule = tmp
  136. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  137. end
  138. ---@private
  139. function UIWorldBossListView:InitGenerate__8(Root, data)
  140. --[[
  141. UIAnimator/Window/BtnBack
  142. --]]
  143. local tmp = Root:Find("UIAnimator/Window/BtnBack").gameObject
  144. if tolua.getpeer(tmp) == nil then
  145. tolua.setpeer(tmp, {})
  146. end
  147. self.btnBack = tmp
  148. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  149. end
  150. ---@private
  151. function UIWorldBossListView:InitGenerate__9(Root, data)
  152. --[[
  153. UIAnimator/Window/BtnRefresh
  154. --]]
  155. local tmp = Root:Find("UIAnimator/Window/BtnRefresh").gameObject
  156. if tolua.getpeer(tmp) == nil then
  157. tolua.setpeer(tmp, {})
  158. end
  159. self.btnRefresh = tmp
  160. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  161. end
  162. ---@private
  163. function UIWorldBossListView:InitGenerate__10(Root, data)
  164. --[[
  165. UIAnimator/Window/TodayTimes/Num
  166. --]]
  167. local tmp = Root:Find("UIAnimator/Window/TodayTimes/Num").gameObject
  168. if tolua.getpeer(tmp) == nil then
  169. tolua.setpeer(tmp, {})
  170. end
  171. self.num = tmp
  172. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  173. end
  174. ---@private
  175. function UIWorldBossListView:GenerateDestroy()
  176. if tolua.getpeer(self.uIAnimator) ~= nil then
  177. tolua.setpeer(self.uIAnimator, nil)
  178. end
  179. self.uIAnimator = nil
  180. if tolua.getpeer(self.AnyBtn) ~= nil then
  181. tolua.setpeer(self.AnyBtn, nil)
  182. end
  183. self.AnyBtn = nil
  184. if tolua.getpeer(self.list) ~= nil then
  185. tolua.setpeer(self.list, nil)
  186. end
  187. self.list = nil
  188. if self.worldBossItem.GenerateDestroy ~= nil then
  189. self.worldBossItem:GenerateDestroy()
  190. end
  191. if tolua.getpeer(self.worldBossItem) ~= nil then
  192. tolua.setpeer(self.worldBossItem, nil)
  193. end
  194. self.worldBossItem = nil
  195. if tolua.getpeer(self.noBoss) ~= nil then
  196. tolua.setpeer(self.noBoss, nil)
  197. end
  198. self.noBoss = nil
  199. if tolua.getpeer(self.btnPlayRule) ~= nil then
  200. tolua.setpeer(self.btnPlayRule, nil)
  201. end
  202. self.btnPlayRule = nil
  203. if tolua.getpeer(self.btnBack) ~= nil then
  204. tolua.setpeer(self.btnBack, nil)
  205. end
  206. self.btnBack = nil
  207. if tolua.getpeer(self.btnRefresh) ~= nil then
  208. tolua.setpeer(self.btnRefresh, nil)
  209. end
  210. self.btnRefresh = nil
  211. if tolua.getpeer(self.num) ~= nil then
  212. tolua.setpeer(self.num, nil)
  213. end
  214. self.num = nil
  215. self.transform = nil
  216. self.gameObject = nil
  217. self.inited = false
  218. end
  219. return UIWorldBossListView