UIPetContractTipsView_Generate.lua 12 KB

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