UIExpeditionWinView_Generate.lua 11 KB

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