UIBattleBossTipsView_Generate.lua 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443
  1. ---@class UIBattleBossTips__Generate_bossDesc
  2. ---@field public gameObject UnityEngine.GameObject
  3. ---@field public text UnityEngine.UI.Text
  4. ---@class UIBattleBossTips__Generate_TxtRectTrans
  5. ---@field public gameObject UnityEngine.GameObject
  6. ---@field public rectTransform UnityEngine.RectTransform
  7. ---@class UIBattleBossTips__Generate_skillTemplate
  8. ---@field public gameObject UnityEngine.GameObject
  9. ---@field public rectTransform UnityEngine.RectTransform
  10. ---@class UIBattleBossTips__Generate_skillList
  11. ---@field public gameObject UnityEngine.GameObject
  12. ---@field public rectTransform UnityEngine.RectTransform
  13. ---@class UIBattleBossTips__Generate_natureName
  14. ---@field public gameObject UnityEngine.GameObject
  15. ---@field public text UnityEngine.UI.Text
  16. ---@class UIBattleBossTips__Generate_bossLevel
  17. ---@field public gameObject UnityEngine.GameObject
  18. ---@field public text UnityEngine.UI.Text
  19. ---@class UIBattleBossTips__Generate_bossName
  20. ---@field public gameObject UnityEngine.GameObject
  21. ---@field public text UnityEngine.UI.Text
  22. ---@class UIBattleBossTips__Generate_natureImg
  23. ---@field public gameObject UnityEngine.GameObject
  24. ---@field public image UnityEngine.UI.Image
  25. ---@class UIBattleBossTips__Generate_bossImg
  26. ---@field public gameObject UnityEngine.GameObject
  27. ---@field public rectTransform UnityEngine.RectTransform
  28. ---@field public image UnityEngine.UI.Image
  29. ---@class UIBattleBossTips__Generate_bgImg
  30. ---@field public gameObject UnityEngine.GameObject
  31. ---@field public image UnityEngine.UI.Image
  32. ---@class UIBattleBossTips__Generate_closeBtn
  33. ---@field public gameObject UnityEngine.GameObject
  34. ---@field public button UnityEngine.UI.Button
  35. ---@class UIBattleBossTips__Generate_AnyBtn
  36. ---@field public gameObject UnityEngine.GameObject
  37. ---@field public button UnityEngine.UI.Button
  38. ---@class UIBattleBossTips__Generate_uIAnimator
  39. ---@field public gameObject UnityEngine.GameObject
  40. ---@field public animator UnityEngine.Animator
  41. ---@class UIBattleBossTips__Generate
  42. ---@field private gameObject UnityEngine.GameObject
  43. ---@field private transform UnityEngine.Transform
  44. ---@field private uIAnimator UIBattleBossTips__Generate_uIAnimator
  45. ---@field private AnyBtn UIBattleBossTips__Generate_AnyBtn
  46. ---@field private window UnityEngine.GameObject
  47. ---@field private closeBtn UIBattleBossTips__Generate_closeBtn
  48. ---@field private bossNode UnityEngine.GameObject
  49. ---@field private bgImg UIBattleBossTips__Generate_bgImg
  50. ---@field private bossImg UIBattleBossTips__Generate_bossImg
  51. ---@field private natureImg UIBattleBossTips__Generate_natureImg
  52. ---@field private bossName UIBattleBossTips__Generate_bossName
  53. ---@field private bossLevel UIBattleBossTips__Generate_bossLevel
  54. ---@field private natureName UIBattleBossTips__Generate_natureName
  55. ---@field private baseAttr UnityEngine.GameObject
  56. ---@field private atrrList UnityEngine.GameObject
  57. ---@field private attrTemp UnityEngine.GameObject
  58. ---@field private skillList UIBattleBossTips__Generate_skillList
  59. ---@field private skillTemplate UIBattleBossTips__Generate_skillTemplate
  60. ---@field private TxtRectTrans UIBattleBossTips__Generate_TxtRectTrans
  61. ---@field private bossDesc UIBattleBossTips__Generate_bossDesc
  62. local UIBattleBossTipsView = class("UIBattleBossTipsView", require("UIViewBase"))
  63. function UIBattleBossTipsView:ctor()
  64. end
  65. ---@private
  66. function UIBattleBossTipsView:SetActive(result)
  67. self.gameObject:SetActive(result)
  68. end
  69. ---@private
  70. function UIBattleBossTipsView:InitGenerate(Root, data)
  71. self.transform = Root
  72. self.inited = true
  73. if self.super.Init then
  74. self.super.Init(self)
  75. end
  76. local tmp
  77. self:InitGenerate__1(Root,data)
  78. self:InitGenerate__2(Root,data)
  79. self:InitGenerate__3(Root,data)
  80. self:InitGenerate__4(Root,data)
  81. self:InitGenerate__5(Root,data)
  82. self:InitGenerate__6(Root,data)
  83. self:InitGenerate__7(Root,data)
  84. self:InitGenerate__8(Root,data)
  85. self:InitGenerate__9(Root,data)
  86. self:InitGenerate__10(Root,data)
  87. self:InitGenerate__11(Root,data)
  88. self:InitGenerate__12(Root,data)
  89. self:InitGenerate__13(Root,data)
  90. self:InitGenerate__14(Root,data)
  91. self:InitGenerate__15(Root,data)
  92. self:InitGenerate__16(Root,data)
  93. self:InitGenerate__17(Root,data)
  94. self:InitGenerate__18(Root,data)
  95. end
  96. ---@private
  97. function UIBattleBossTipsView:InitGenerate__1(Root, data)
  98. --[[
  99. UIAnimator
  100. --]]
  101. local tmp = Root:Find("UIAnimator").gameObject
  102. if tolua.getpeer(tmp) == nil then
  103. tolua.setpeer(tmp, {})
  104. end
  105. self.uIAnimator = tmp
  106. tmp.animator = tmp:GetComponent(Enum.TypeInfo.Animator)
  107. tmp.animator.logWarnings = false
  108. end
  109. ---@private
  110. function UIBattleBossTipsView:InitGenerate__2(Root, data)
  111. --[[
  112. UIAnimator/Alpha
  113. --]]
  114. local tmp = Root:Find("UIAnimator/Alpha").gameObject
  115. if tolua.getpeer(tmp) == nil then
  116. tolua.setpeer(tmp, {})
  117. end
  118. self.AnyBtn = tmp
  119. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  120. end
  121. ---@private
  122. function UIBattleBossTipsView:InitGenerate__3(Root, data)
  123. --[[
  124. UIAnimator/Window
  125. --]]
  126. local tmp = Root:Find("UIAnimator/Window").gameObject
  127. if tolua.getpeer(tmp) == nil then
  128. tolua.setpeer(tmp, {})
  129. end
  130. self.window = tmp
  131. end
  132. ---@private
  133. function UIBattleBossTipsView:InitGenerate__4(Root, data)
  134. --[[
  135. UIAnimator/Window/BtnClose
  136. --]]
  137. local tmp = Root:Find("UIAnimator/Window/BtnClose").gameObject
  138. if tolua.getpeer(tmp) == nil then
  139. tolua.setpeer(tmp, {})
  140. end
  141. self.closeBtn = tmp
  142. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  143. end
  144. ---@private
  145. function UIBattleBossTipsView:InitGenerate__5(Root, data)
  146. --[[
  147. UIAnimator/Window/Boss
  148. --]]
  149. local tmp = Root:Find("UIAnimator/Window/Boss").gameObject
  150. if tolua.getpeer(tmp) == nil then
  151. tolua.setpeer(tmp, {})
  152. end
  153. self.bossNode = tmp
  154. end
  155. ---@private
  156. function UIBattleBossTipsView:InitGenerate__6(Root, data)
  157. --[[
  158. UIAnimator/Window/Boss/Top/bgboss
  159. --]]
  160. local tmp = Root:Find("UIAnimator/Window/Boss/Top/bgboss").gameObject
  161. if tolua.getpeer(tmp) == nil then
  162. tolua.setpeer(tmp, {})
  163. end
  164. self.bgImg = tmp
  165. tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
  166. end
  167. ---@private
  168. function UIBattleBossTipsView:InitGenerate__7(Root, data)
  169. --[[
  170. UIAnimator/Window/Boss/Top/Slot/Pos/Npc1
  171. --]]
  172. local tmp = Root:Find("UIAnimator/Window/Boss/Top/Slot/Pos/Npc1").gameObject
  173. if tolua.getpeer(tmp) == nil then
  174. tolua.setpeer(tmp, {})
  175. end
  176. self.bossImg = tmp
  177. tmp.rectTransform = tmp:GetComponent(Enum.TypeInfo.RectTransform)
  178. tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
  179. end
  180. ---@private
  181. function UIBattleBossTipsView:InitGenerate__8(Root, data)
  182. --[[
  183. UIAnimator/Window/Boss/Top/BaseInfo/Image
  184. --]]
  185. local tmp = Root:Find("UIAnimator/Window/Boss/Top/BaseInfo/Image").gameObject
  186. if tolua.getpeer(tmp) == nil then
  187. tolua.setpeer(tmp, {})
  188. end
  189. self.natureImg = tmp
  190. tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
  191. end
  192. ---@private
  193. function UIBattleBossTipsView:InitGenerate__9(Root, data)
  194. --[[
  195. UIAnimator/Window/Boss/Top/BaseInfo/BossName
  196. --]]
  197. local tmp = Root:Find("UIAnimator/Window/Boss/Top/BaseInfo/BossName").gameObject
  198. if tolua.getpeer(tmp) == nil then
  199. tolua.setpeer(tmp, {})
  200. end
  201. self.bossName = tmp
  202. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  203. end
  204. ---@private
  205. function UIBattleBossTipsView:InitGenerate__10(Root, data)
  206. --[[
  207. UIAnimator/Window/Boss/Top/BaseInfo/numlevel
  208. --]]
  209. local tmp = Root:Find("UIAnimator/Window/Boss/Top/BaseInfo/numlevel").gameObject
  210. if tolua.getpeer(tmp) == nil then
  211. tolua.setpeer(tmp, {})
  212. end
  213. self.bossLevel = tmp
  214. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  215. end
  216. ---@private
  217. function UIBattleBossTipsView:InitGenerate__11(Root, data)
  218. --[[
  219. UIAnimator/Window/Boss/Top/BaseInfo/textnature
  220. --]]
  221. local tmp = Root:Find("UIAnimator/Window/Boss/Top/BaseInfo/textnature").gameObject
  222. if tolua.getpeer(tmp) == nil then
  223. tolua.setpeer(tmp, {})
  224. end
  225. self.natureName = tmp
  226. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  227. end
  228. ---@private
  229. function UIBattleBossTipsView:InitGenerate__12(Root, data)
  230. --[[
  231. UIAnimator/Window/Boss/Top/BaseAttr
  232. --]]
  233. local tmp = Root:Find("UIAnimator/Window/Boss/Top/BaseAttr").gameObject
  234. if tolua.getpeer(tmp) == nil then
  235. tolua.setpeer(tmp, {})
  236. end
  237. self.baseAttr = tmp
  238. end
  239. ---@private
  240. function UIBattleBossTipsView:InitGenerate__13(Root, data)
  241. --[[
  242. UIAnimator/Window/Boss/Top/BaseAttr/Attributes
  243. --]]
  244. local tmp = Root:Find("UIAnimator/Window/Boss/Top/BaseAttr/Attributes").gameObject
  245. if tolua.getpeer(tmp) == nil then
  246. tolua.setpeer(tmp, {})
  247. end
  248. self.atrrList = tmp
  249. end
  250. ---@private
  251. function UIBattleBossTipsView:InitGenerate__14(Root, data)
  252. --[[
  253. UIAnimator/Window/Boss/Top/BaseAttr/Attributes/OriginalAttribute
  254. --]]
  255. local tmp = Root:Find("UIAnimator/Window/Boss/Top/BaseAttr/Attributes/OriginalAttribute").gameObject
  256. if tolua.getpeer(tmp) == nil then
  257. tolua.setpeer(tmp, {})
  258. end
  259. self.attrTemp = tmp
  260. end
  261. ---@private
  262. function UIBattleBossTipsView:InitGenerate__15(Root, data)
  263. --[[
  264. UIAnimator/Window/Boss/Skill/DragList
  265. --]]
  266. local tmp = Root:Find("UIAnimator/Window/Boss/Skill/DragList").gameObject
  267. if tolua.getpeer(tmp) == nil then
  268. tolua.setpeer(tmp, {})
  269. end
  270. self.skillList = tmp
  271. tmp.rectTransform = tmp:GetComponent(Enum.TypeInfo.RectTransform)
  272. end
  273. ---@private
  274. function UIBattleBossTipsView:InitGenerate__16(Root, data)
  275. --[[
  276. UIAnimator/Window/Boss/Skill/DragList/SkillItem
  277. --]]
  278. local tmp = Root:Find("UIAnimator/Window/Boss/Skill/DragList/SkillItem").gameObject
  279. if tolua.getpeer(tmp) == nil then
  280. tolua.setpeer(tmp, {})
  281. end
  282. self.skillTemplate = CommonUtil.BindGridViewItem2LuaStatic("SkillItem", tmp)
  283. self.skillTemplate.prefabName = "SkillItem"
  284. tmp.rectTransform = tmp:GetComponent(Enum.TypeInfo.RectTransform)
  285. end
  286. ---@private
  287. function UIBattleBossTipsView:InitGenerate__17(Root, data)
  288. --[[
  289. UIAnimator/Window/DscBox/Scroll View/Viewport/Content
  290. --]]
  291. local tmp = Root:Find("UIAnimator/Window/DscBox/Scroll View/Viewport/Content").gameObject
  292. if tolua.getpeer(tmp) == nil then
  293. tolua.setpeer(tmp, {})
  294. end
  295. self.TxtRectTrans = tmp
  296. tmp.rectTransform = tmp:GetComponent(Enum.TypeInfo.RectTransform)
  297. end
  298. ---@private
  299. function UIBattleBossTipsView:InitGenerate__18(Root, data)
  300. --[[
  301. UIAnimator/Window/DscBox/Scroll View/Viewport/Content/DesTxt
  302. --]]
  303. local tmp = Root:Find("UIAnimator/Window/DscBox/Scroll View/Viewport/Content/DesTxt").gameObject
  304. if tolua.getpeer(tmp) == nil then
  305. tolua.setpeer(tmp, {})
  306. end
  307. self.bossDesc = tmp
  308. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  309. end
  310. ---@private
  311. function UIBattleBossTipsView:GenerateDestroy()
  312. if tolua.getpeer(self.uIAnimator) ~= nil then
  313. tolua.setpeer(self.uIAnimator, nil)
  314. end
  315. self.uIAnimator = nil
  316. if tolua.getpeer(self.AnyBtn) ~= nil then
  317. tolua.setpeer(self.AnyBtn, nil)
  318. end
  319. self.AnyBtn = nil
  320. if tolua.getpeer(self.window) ~= nil then
  321. tolua.setpeer(self.window, nil)
  322. end
  323. self.window = nil
  324. if tolua.getpeer(self.closeBtn) ~= nil then
  325. tolua.setpeer(self.closeBtn, nil)
  326. end
  327. self.closeBtn = nil
  328. if tolua.getpeer(self.bossNode) ~= nil then
  329. tolua.setpeer(self.bossNode, nil)
  330. end
  331. self.bossNode = nil
  332. if tolua.getpeer(self.bgImg) ~= nil then
  333. tolua.setpeer(self.bgImg, nil)
  334. end
  335. self.bgImg = nil
  336. if tolua.getpeer(self.bossImg) ~= nil then
  337. tolua.setpeer(self.bossImg, nil)
  338. end
  339. self.bossImg = nil
  340. if tolua.getpeer(self.natureImg) ~= nil then
  341. tolua.setpeer(self.natureImg, nil)
  342. end
  343. self.natureImg = nil
  344. if tolua.getpeer(self.bossName) ~= nil then
  345. tolua.setpeer(self.bossName, nil)
  346. end
  347. self.bossName = nil
  348. if tolua.getpeer(self.bossLevel) ~= nil then
  349. tolua.setpeer(self.bossLevel, nil)
  350. end
  351. self.bossLevel = nil
  352. if tolua.getpeer(self.natureName) ~= nil then
  353. tolua.setpeer(self.natureName, nil)
  354. end
  355. self.natureName = nil
  356. if tolua.getpeer(self.baseAttr) ~= nil then
  357. tolua.setpeer(self.baseAttr, nil)
  358. end
  359. self.baseAttr = nil
  360. if tolua.getpeer(self.atrrList) ~= nil then
  361. tolua.setpeer(self.atrrList, nil)
  362. end
  363. self.atrrList = nil
  364. if tolua.getpeer(self.attrTemp) ~= nil then
  365. tolua.setpeer(self.attrTemp, nil)
  366. end
  367. self.attrTemp = nil
  368. if tolua.getpeer(self.skillList) ~= nil then
  369. tolua.setpeer(self.skillList, nil)
  370. end
  371. self.skillList = nil
  372. if self.skillTemplate.GenerateDestroy ~= nil then
  373. self.skillTemplate:GenerateDestroy()
  374. end
  375. if tolua.getpeer(self.skillTemplate) ~= nil then
  376. tolua.setpeer(self.skillTemplate, nil)
  377. end
  378. self.skillTemplate = nil
  379. if tolua.getpeer(self.TxtRectTrans) ~= nil then
  380. tolua.setpeer(self.TxtRectTrans, nil)
  381. end
  382. self.TxtRectTrans = nil
  383. if tolua.getpeer(self.bossDesc) ~= nil then
  384. tolua.setpeer(self.bossDesc, nil)
  385. end
  386. self.bossDesc = nil
  387. self.transform = nil
  388. self.gameObject = nil
  389. self.inited = false
  390. end
  391. return UIBattleBossTipsView