UIClimbingTowerBattleFailedView_Generate.lua 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376
  1. ---@class UIClimbingTowerBattleFailed__Generate_reopenBtn
  2. ---@field public gameObject UnityEngine.GameObject
  3. ---@field public button UnityEngine.UI.Button
  4. ---@class UIClimbingTowerBattleFailed__Generate_tips3_btnGo
  5. ---@field public gameObject UnityEngine.GameObject
  6. ---@field public button UnityEngine.UI.Button
  7. ---@class UIClimbingTowerBattleFailed__Generate_tips3_tipsContent
  8. ---@field public gameObject UnityEngine.GameObject
  9. ---@field public text UnityEngine.UI.Text
  10. ---@class UIClimbingTowerBattleFailed__Generate_tips3_tipsIcon
  11. ---@field public gameObject UnityEngine.GameObject
  12. ---@field public image UnityEngine.UI.Image
  13. ---@class UIClimbingTowerBattleFailed__Generate_tips3
  14. ---@field public gameObject UnityEngine.GameObject
  15. ---@field public tipsIcon UIClimbingTowerBattleFailed__Generate_tips3_tipsIcon
  16. ---@field public tipsContent UIClimbingTowerBattleFailed__Generate_tips3_tipsContent
  17. ---@field public btnGo UIClimbingTowerBattleFailed__Generate_tips3_btnGo
  18. ---@class UIClimbingTowerBattleFailed__Generate_tips2_btnGo
  19. ---@field public gameObject UnityEngine.GameObject
  20. ---@field public button UnityEngine.UI.Button
  21. ---@class UIClimbingTowerBattleFailed__Generate_tips2_tipsContent
  22. ---@field public gameObject UnityEngine.GameObject
  23. ---@field public text UnityEngine.UI.Text
  24. ---@class UIClimbingTowerBattleFailed__Generate_tips2_tipsIcon
  25. ---@field public gameObject UnityEngine.GameObject
  26. ---@field public image UnityEngine.UI.Image
  27. ---@class UIClimbingTowerBattleFailed__Generate_tips2
  28. ---@field public gameObject UnityEngine.GameObject
  29. ---@field public tipsIcon UIClimbingTowerBattleFailed__Generate_tips2_tipsIcon
  30. ---@field public tipsContent UIClimbingTowerBattleFailed__Generate_tips2_tipsContent
  31. ---@field public btnGo UIClimbingTowerBattleFailed__Generate_tips2_btnGo
  32. ---@class UIClimbingTowerBattleFailed__Generate_tips1_btnGo
  33. ---@field public gameObject UnityEngine.GameObject
  34. ---@field public button UnityEngine.UI.Button
  35. ---@class UIClimbingTowerBattleFailed__Generate_tips1_tipsContent
  36. ---@field public gameObject UnityEngine.GameObject
  37. ---@field public text UnityEngine.UI.Text
  38. ---@class UIClimbingTowerBattleFailed__Generate_tips1_tipsIcon
  39. ---@field public gameObject UnityEngine.GameObject
  40. ---@field public image UnityEngine.UI.Image
  41. ---@class UIClimbingTowerBattleFailed__Generate_tips1
  42. ---@field public gameObject UnityEngine.GameObject
  43. ---@field public tipsIcon UIClimbingTowerBattleFailed__Generate_tips1_tipsIcon
  44. ---@field public tipsContent UIClimbingTowerBattleFailed__Generate_tips1_tipsContent
  45. ---@field public btnGo UIClimbingTowerBattleFailed__Generate_tips1_btnGo
  46. ---@class UIClimbingTowerBattleFailed__Generate_AnyBtn
  47. ---@field public gameObject UnityEngine.GameObject
  48. ---@field public button UnityEngine.UI.Button
  49. ---@class UIClimbingTowerBattleFailed__Generate_uIAnimator
  50. ---@field public gameObject UnityEngine.GameObject
  51. ---@field public animator UnityEngine.Animator
  52. ---@class UIClimbingTowerBattleFailed__Generate
  53. ---@field private gameObject UnityEngine.GameObject
  54. ---@field private transform UnityEngine.Transform
  55. ---@field private uIAnimator UIClimbingTowerBattleFailed__Generate_uIAnimator
  56. ---@field private AnyBtn UIClimbingTowerBattleFailed__Generate_AnyBtn
  57. ---@field private tips1 UIClimbingTowerBattleFailed__Generate_tips1
  58. ---@field private tips2 UIClimbingTowerBattleFailed__Generate_tips2
  59. ---@field private tips3 UIClimbingTowerBattleFailed__Generate_tips3
  60. ---@field private reopenBtn UIClimbingTowerBattleFailed__Generate_reopenBtn
  61. local UIClimbingTowerBattleFailedView = class("UIClimbingTowerBattleFailedView", require("UIViewBase"))
  62. function UIClimbingTowerBattleFailedView:ctor()
  63. end
  64. ---@private
  65. function UIClimbingTowerBattleFailedView:SetActive(result)
  66. self.gameObject:SetActive(result)
  67. end
  68. ---@private
  69. function UIClimbingTowerBattleFailedView:InitGenerate(Root, data)
  70. self.transform = Root
  71. self.inited = true
  72. if self.super.Init then
  73. self.super.Init(self)
  74. end
  75. local tmp
  76. self:InitGenerate__1(Root,data)
  77. self:InitGenerate__2(Root,data)
  78. self:InitGenerate__3(Root,data)
  79. self:InitGenerate__4(Root,data)
  80. self:InitGenerate__5(Root,data)
  81. self:InitGenerate__6(Root,data)
  82. self:InitGenerate__7(Root,data)
  83. self:InitGenerate__8(Root,data)
  84. self:InitGenerate__9(Root,data)
  85. self:InitGenerate__10(Root,data)
  86. self:InitGenerate__11(Root,data)
  87. self:InitGenerate__12(Root,data)
  88. self:InitGenerate__13(Root,data)
  89. self:InitGenerate__14(Root,data)
  90. self:InitGenerate__15(Root,data)
  91. end
  92. ---@private
  93. function UIClimbingTowerBattleFailedView:InitGenerate__1(Root, data)
  94. --[[
  95. UIAnimator
  96. --]]
  97. local tmp = Root:Find("UIAnimator").gameObject
  98. if tolua.getpeer(tmp) == nil then
  99. tolua.setpeer(tmp, {})
  100. end
  101. self.uIAnimator = tmp
  102. tmp.animator = tmp:GetComponent(Enum.TypeInfo.Animator)
  103. tmp.animator.logWarnings = false
  104. end
  105. ---@private
  106. function UIClimbingTowerBattleFailedView:InitGenerate__2(Root, data)
  107. --[[
  108. UIAnimator/Alpha
  109. --]]
  110. local tmp = Root:Find("UIAnimator/Alpha").gameObject
  111. if tolua.getpeer(tmp) == nil then
  112. tolua.setpeer(tmp, {})
  113. end
  114. self.AnyBtn = tmp
  115. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  116. end
  117. ---@private
  118. function UIClimbingTowerBattleFailedView:InitGenerate__3(Root, data)
  119. --[[
  120. UIAnimator/Window/BG/Goto/ItemScrollView/Viewport/Content/GotoIncreaseItem1
  121. --]]
  122. local tmp = Root:Find("UIAnimator/Window/BG/Goto/ItemScrollView/Viewport/Content/GotoIncreaseItem1").gameObject
  123. if tolua.getpeer(tmp) == nil then
  124. tolua.setpeer(tmp, {})
  125. end
  126. self.tips1 = tmp
  127. end
  128. ---@private
  129. function UIClimbingTowerBattleFailedView:InitGenerate__4(Root, data)
  130. --[[
  131. UIAnimator/Window/BG/Goto/ItemScrollView/Viewport/Content/GotoIncreaseItem1/Icon
  132. --]]
  133. local tmp = Root:Find("UIAnimator/Window/BG/Goto/ItemScrollView/Viewport/Content/GotoIncreaseItem1/Icon").gameObject
  134. if tolua.getpeer(tmp) == nil then
  135. tolua.setpeer(tmp, {})
  136. end
  137. self.tips1.tipsIcon = tmp
  138. tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
  139. end
  140. ---@private
  141. function UIClimbingTowerBattleFailedView:InitGenerate__5(Root, data)
  142. --[[
  143. UIAnimator/Window/BG/Goto/ItemScrollView/Viewport/Content/GotoIncreaseItem1/ItemTxt
  144. --]]
  145. local tmp = Root:Find("UIAnimator/Window/BG/Goto/ItemScrollView/Viewport/Content/GotoIncreaseItem1/ItemTxt").gameObject
  146. if tolua.getpeer(tmp) == nil then
  147. tolua.setpeer(tmp, {})
  148. end
  149. self.tips1.tipsContent = tmp
  150. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  151. end
  152. ---@private
  153. function UIClimbingTowerBattleFailedView:InitGenerate__6(Root, data)
  154. --[[
  155. UIAnimator/Window/BG/Goto/ItemScrollView/Viewport/Content/GotoIncreaseItem1/BtnGoto
  156. --]]
  157. local tmp = Root:Find("UIAnimator/Window/BG/Goto/ItemScrollView/Viewport/Content/GotoIncreaseItem1/BtnGoto").gameObject
  158. if tolua.getpeer(tmp) == nil then
  159. tolua.setpeer(tmp, {})
  160. end
  161. self.tips1.btnGo = tmp
  162. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  163. end
  164. ---@private
  165. function UIClimbingTowerBattleFailedView:InitGenerate__7(Root, data)
  166. --[[
  167. UIAnimator/Window/BG/Goto/ItemScrollView/Viewport/Content/GotoIncreaseItem2
  168. --]]
  169. local tmp = Root:Find("UIAnimator/Window/BG/Goto/ItemScrollView/Viewport/Content/GotoIncreaseItem2").gameObject
  170. if tolua.getpeer(tmp) == nil then
  171. tolua.setpeer(tmp, {})
  172. end
  173. self.tips2 = tmp
  174. end
  175. ---@private
  176. function UIClimbingTowerBattleFailedView:InitGenerate__8(Root, data)
  177. --[[
  178. UIAnimator/Window/BG/Goto/ItemScrollView/Viewport/Content/GotoIncreaseItem2/Icon
  179. --]]
  180. local tmp = Root:Find("UIAnimator/Window/BG/Goto/ItemScrollView/Viewport/Content/GotoIncreaseItem2/Icon").gameObject
  181. if tolua.getpeer(tmp) == nil then
  182. tolua.setpeer(tmp, {})
  183. end
  184. self.tips2.tipsIcon = tmp
  185. tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
  186. end
  187. ---@private
  188. function UIClimbingTowerBattleFailedView:InitGenerate__9(Root, data)
  189. --[[
  190. UIAnimator/Window/BG/Goto/ItemScrollView/Viewport/Content/GotoIncreaseItem2/ItemTxt
  191. --]]
  192. local tmp = Root:Find("UIAnimator/Window/BG/Goto/ItemScrollView/Viewport/Content/GotoIncreaseItem2/ItemTxt").gameObject
  193. if tolua.getpeer(tmp) == nil then
  194. tolua.setpeer(tmp, {})
  195. end
  196. self.tips2.tipsContent = tmp
  197. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  198. end
  199. ---@private
  200. function UIClimbingTowerBattleFailedView:InitGenerate__10(Root, data)
  201. --[[
  202. UIAnimator/Window/BG/Goto/ItemScrollView/Viewport/Content/GotoIncreaseItem2/BtnGoto
  203. --]]
  204. local tmp = Root:Find("UIAnimator/Window/BG/Goto/ItemScrollView/Viewport/Content/GotoIncreaseItem2/BtnGoto").gameObject
  205. if tolua.getpeer(tmp) == nil then
  206. tolua.setpeer(tmp, {})
  207. end
  208. self.tips2.btnGo = tmp
  209. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  210. end
  211. ---@private
  212. function UIClimbingTowerBattleFailedView:InitGenerate__11(Root, data)
  213. --[[
  214. UIAnimator/Window/BG/Goto/ItemScrollView/Viewport/Content/GotoIncreaseItem3
  215. --]]
  216. local tmp = Root:Find("UIAnimator/Window/BG/Goto/ItemScrollView/Viewport/Content/GotoIncreaseItem3").gameObject
  217. if tolua.getpeer(tmp) == nil then
  218. tolua.setpeer(tmp, {})
  219. end
  220. self.tips3 = tmp
  221. end
  222. ---@private
  223. function UIClimbingTowerBattleFailedView:InitGenerate__12(Root, data)
  224. --[[
  225. UIAnimator/Window/BG/Goto/ItemScrollView/Viewport/Content/GotoIncreaseItem3/Icon
  226. --]]
  227. local tmp = Root:Find("UIAnimator/Window/BG/Goto/ItemScrollView/Viewport/Content/GotoIncreaseItem3/Icon").gameObject
  228. if tolua.getpeer(tmp) == nil then
  229. tolua.setpeer(tmp, {})
  230. end
  231. self.tips3.tipsIcon = tmp
  232. tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
  233. end
  234. ---@private
  235. function UIClimbingTowerBattleFailedView:InitGenerate__13(Root, data)
  236. --[[
  237. UIAnimator/Window/BG/Goto/ItemScrollView/Viewport/Content/GotoIncreaseItem3/ItemTxt
  238. --]]
  239. local tmp = Root:Find("UIAnimator/Window/BG/Goto/ItemScrollView/Viewport/Content/GotoIncreaseItem3/ItemTxt").gameObject
  240. if tolua.getpeer(tmp) == nil then
  241. tolua.setpeer(tmp, {})
  242. end
  243. self.tips3.tipsContent = tmp
  244. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  245. end
  246. ---@private
  247. function UIClimbingTowerBattleFailedView:InitGenerate__14(Root, data)
  248. --[[
  249. UIAnimator/Window/BG/Goto/ItemScrollView/Viewport/Content/GotoIncreaseItem3/BtnGoto
  250. --]]
  251. local tmp = Root:Find("UIAnimator/Window/BG/Goto/ItemScrollView/Viewport/Content/GotoIncreaseItem3/BtnGoto").gameObject
  252. if tolua.getpeer(tmp) == nil then
  253. tolua.setpeer(tmp, {})
  254. end
  255. self.tips3.btnGo = tmp
  256. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  257. end
  258. ---@private
  259. function UIClimbingTowerBattleFailedView:InitGenerate__15(Root, data)
  260. --[[
  261. UIAnimator/Window/BG/ReopenBtn
  262. --]]
  263. local tmp = Root:Find("UIAnimator/Window/BG/ReopenBtn").gameObject
  264. if tolua.getpeer(tmp) == nil then
  265. tolua.setpeer(tmp, {})
  266. end
  267. self.reopenBtn = tmp
  268. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  269. end
  270. ---@private
  271. function UIClimbingTowerBattleFailedView:GenerateDestroy()
  272. if tolua.getpeer(self.tips3.btnGo) ~= nil then
  273. tolua.setpeer(self.tips3.btnGo, nil)
  274. end
  275. if tolua.getpeer(self.tips3.tipsContent) ~= nil then
  276. tolua.setpeer(self.tips3.tipsContent, nil)
  277. end
  278. if tolua.getpeer(self.tips3.tipsIcon) ~= nil then
  279. tolua.setpeer(self.tips3.tipsIcon, nil)
  280. end
  281. if tolua.getpeer(self.tips2.btnGo) ~= nil then
  282. tolua.setpeer(self.tips2.btnGo, nil)
  283. end
  284. if tolua.getpeer(self.tips2.tipsContent) ~= nil then
  285. tolua.setpeer(self.tips2.tipsContent, nil)
  286. end
  287. if tolua.getpeer(self.tips2.tipsIcon) ~= nil then
  288. tolua.setpeer(self.tips2.tipsIcon, nil)
  289. end
  290. if tolua.getpeer(self.tips1.btnGo) ~= nil then
  291. tolua.setpeer(self.tips1.btnGo, nil)
  292. end
  293. if tolua.getpeer(self.tips1.tipsContent) ~= nil then
  294. tolua.setpeer(self.tips1.tipsContent, nil)
  295. end
  296. if tolua.getpeer(self.tips1.tipsIcon) ~= nil then
  297. tolua.setpeer(self.tips1.tipsIcon, nil)
  298. end
  299. if tolua.getpeer(self.uIAnimator) ~= nil then
  300. tolua.setpeer(self.uIAnimator, nil)
  301. end
  302. self.uIAnimator = nil
  303. if tolua.getpeer(self.AnyBtn) ~= nil then
  304. tolua.setpeer(self.AnyBtn, nil)
  305. end
  306. self.AnyBtn = nil
  307. if tolua.getpeer(self.tips1) ~= nil then
  308. tolua.setpeer(self.tips1, nil)
  309. end
  310. self.tips1 = nil
  311. if tolua.getpeer(self.tips2) ~= nil then
  312. tolua.setpeer(self.tips2, nil)
  313. end
  314. self.tips2 = nil
  315. if tolua.getpeer(self.tips3) ~= nil then
  316. tolua.setpeer(self.tips3, nil)
  317. end
  318. self.tips3 = nil
  319. if tolua.getpeer(self.reopenBtn) ~= nil then
  320. tolua.setpeer(self.reopenBtn, nil)
  321. end
  322. self.reopenBtn = nil
  323. self.transform = nil
  324. self.gameObject = nil
  325. self.inited = false
  326. end
  327. return UIClimbingTowerBattleFailedView