UIPetStampTipsView_Generate.lua 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519
  1. ---@class UIPetStampTips__Generate_btnAdvance
  2. ---@field public gameObject UnityEngine.GameObject
  3. ---@field public button UnityEngine.UI.Button
  4. ---@field public uIRedPointRP UnityEngine.GameObject
  5. ---@class UIPetStampTips__Generate_btnPetStampLvUp
  6. ---@field public gameObject UnityEngine.GameObject
  7. ---@field public button UnityEngine.UI.Button
  8. ---@field public uIRedPointRP UnityEngine.GameObject
  9. ---@class UIPetStampTips__Generate_desTxt
  10. ---@field public gameObject UnityEngine.GameObject
  11. ---@field public text UnityEngine.UI.Text
  12. ---@class UIPetStampTips__Generate_baseAttr
  13. ---@field public gameObject UnityEngine.GameObject
  14. ---@field public grid UnityEngine.GameObject
  15. ---@class UIPetStampTips__Generate_btnChange
  16. ---@field public gameObject UnityEngine.GameObject
  17. ---@field public button UnityEngine.UI.Button
  18. ---@class UIPetStampTips__Generate_type1_image
  19. ---@field public gameObject UnityEngine.GameObject
  20. ---@field public image UnityEngine.UI.Image
  21. ---@class UIPetStampTips__Generate_type1_text2
  22. ---@field public gameObject UnityEngine.GameObject
  23. ---@field public text UnityEngine.UI.Text
  24. ---@class UIPetStampTips__Generate_type1
  25. ---@field public gameObject UnityEngine.GameObject
  26. ---@field public text2 UIPetStampTips__Generate_type1_text2
  27. ---@field public image UIPetStampTips__Generate_type1_image
  28. ---@class UIPetStampTips__Generate_textName
  29. ---@field public gameObject UnityEngine.GameObject
  30. ---@field public text UnityEngine.UI.Text
  31. ---@class UIPetStampTips__Generate_iconItem
  32. ---@field public gameObject UnityEngine.GameObject
  33. ---@field public rectTransform UnityEngine.RectTransform
  34. ---@field public layoutElement UnityEngine.UI.LayoutElement
  35. ---@class UIPetStampTips__Generate_btnClose
  36. ---@field public gameObject UnityEngine.GameObject
  37. ---@field public button UnityEngine.UI.Button
  38. ---@class UIPetStampTips__Generate_AnyBtn
  39. ---@field public gameObject UnityEngine.GameObject
  40. ---@field public button UnityEngine.UI.Button
  41. ---@class UIPetStampTips__Generate_uIAnimator
  42. ---@field public gameObject UnityEngine.GameObject
  43. ---@field public animator UnityEngine.Animator
  44. ---@class UIPetStampTips__Generate
  45. ---@field private gameObject UnityEngine.GameObject
  46. ---@field private transform UnityEngine.Transform
  47. ---@field private uIEventHandler UIEventHandler
  48. ---@field private uIAnimator UIPetStampTips__Generate_uIAnimator
  49. ---@field private AnyBtn UIPetStampTips__Generate_AnyBtn
  50. ---@field private window UnityEngine.GameObject
  51. ---@field private closeBox UnityEngine.GameObject
  52. ---@field private btnClose UIPetStampTips__Generate_btnClose
  53. ---@field private contentItem UnityEngine.GameObject
  54. ---@field private iconItem UIPetStampTips__Generate_iconItem
  55. ---@field private textName UIPetStampTips__Generate_textName
  56. ---@field private type1 UIPetStampTips__Generate_type1
  57. ---@field private btnChange UIPetStampTips__Generate_btnChange
  58. ---@field private baseAttr UIPetStampTips__Generate_baseAttr
  59. ---@field private attrItem UnityEngine.GameObject
  60. ---@field private desTxt UIPetStampTips__Generate_desTxt
  61. ---@field private bottomBox UnityEngine.GameObject
  62. ---@field private btnBox UnityEngine.GameObject
  63. ---@field private btnPetStampLvUp UIPetStampTips__Generate_btnPetStampLvUp
  64. ---@field private btnAdvance UIPetStampTips__Generate_btnAdvance
  65. local UIPetStampTipsView = class("UIPetStampTipsView", require("UIViewBase"))
  66. function UIPetStampTipsView:ctor()
  67. end
  68. ---@private
  69. function UIPetStampTipsView:SetActive(result)
  70. self.gameObject:SetActive(result)
  71. end
  72. ---@private
  73. function UIPetStampTipsView:InitGenerate(Root, data)
  74. self.transform = Root
  75. self.inited = true
  76. if self.super.Init then
  77. self.super.Init(self)
  78. end
  79. local tmp
  80. self:InitGenerate__1(Root,data)
  81. self:InitGenerate__2(Root,data)
  82. self:InitGenerate__3(Root,data)
  83. self:InitGenerate__4(Root,data)
  84. self:InitGenerate__5(Root,data)
  85. self:InitGenerate__6(Root,data)
  86. self:InitGenerate__7(Root,data)
  87. self:InitGenerate__8(Root,data)
  88. self:InitGenerate__9(Root,data)
  89. self:InitGenerate__10(Root,data)
  90. self:InitGenerate__11(Root,data)
  91. self:InitGenerate__12(Root,data)
  92. self:InitGenerate__13(Root,data)
  93. self:InitGenerate__14(Root,data)
  94. self:InitGenerate__15(Root,data)
  95. self:InitGenerate__16(Root,data)
  96. self:InitGenerate__17(Root,data)
  97. self:InitGenerate__18(Root,data)
  98. self:InitGenerate__19(Root,data)
  99. self:InitGenerate__20(Root,data)
  100. self:InitGenerate__21(Root,data)
  101. self:InitGenerate__22(Root,data)
  102. self:InitGenerate__23(Root,data)
  103. end
  104. ---@private
  105. function UIPetStampTipsView:InitGenerate__1(Root, data)
  106. --[[
  107. Root
  108. --]]
  109. self.uIEventHandler = Root:GetComponent(Enum.TypeInfo.UIEventHandler)
  110. end
  111. ---@private
  112. function UIPetStampTipsView:InitGenerate__2(Root, data)
  113. --[[
  114. UIAnimator
  115. --]]
  116. local tmp = Root:Find("UIAnimator").gameObject
  117. if tolua.getpeer(tmp) == nil then
  118. tolua.setpeer(tmp, {})
  119. end
  120. self.uIAnimator = tmp
  121. tmp.animator = tmp:GetComponent(Enum.TypeInfo.Animator)
  122. tmp.animator.logWarnings = false
  123. end
  124. ---@private
  125. function UIPetStampTipsView:InitGenerate__3(Root, data)
  126. --[[
  127. UIAnimator/Alpha
  128. --]]
  129. local tmp = Root:Find("UIAnimator/Alpha").gameObject
  130. if tolua.getpeer(tmp) == nil then
  131. tolua.setpeer(tmp, {})
  132. end
  133. self.AnyBtn = tmp
  134. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  135. end
  136. ---@private
  137. function UIPetStampTipsView:InitGenerate__4(Root, data)
  138. --[[
  139. UIAnimator/Window
  140. --]]
  141. local tmp = Root:Find("UIAnimator/Window").gameObject
  142. if tolua.getpeer(tmp) == nil then
  143. tolua.setpeer(tmp, {})
  144. end
  145. self.window = tmp
  146. end
  147. ---@private
  148. function UIPetStampTipsView:InitGenerate__5(Root, data)
  149. --[[
  150. UIAnimator/Window/Bg/CloseBox
  151. --]]
  152. local tmp = Root:Find("UIAnimator/Window/Bg/CloseBox").gameObject
  153. if tolua.getpeer(tmp) == nil then
  154. tolua.setpeer(tmp, {})
  155. end
  156. self.closeBox = tmp
  157. end
  158. ---@private
  159. function UIPetStampTipsView:InitGenerate__6(Root, data)
  160. --[[
  161. UIAnimator/Window/Bg/CloseBox/BtnClose
  162. --]]
  163. local tmp = Root:Find("UIAnimator/Window/Bg/CloseBox/BtnClose").gameObject
  164. if tolua.getpeer(tmp) == nil then
  165. tolua.setpeer(tmp, {})
  166. end
  167. self.btnClose = tmp
  168. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  169. end
  170. ---@private
  171. function UIPetStampTipsView:InitGenerate__7(Root, data)
  172. --[[
  173. UIAnimator/Window/Bg/TopItem/MainInfo/ContentItem
  174. --]]
  175. local tmp = Root:Find("UIAnimator/Window/Bg/TopItem/MainInfo/ContentItem").gameObject
  176. if tolua.getpeer(tmp) == nil then
  177. tolua.setpeer(tmp, {})
  178. end
  179. self.contentItem = tmp
  180. end
  181. ---@private
  182. function UIPetStampTipsView:InitGenerate__8(Root, data)
  183. --[[
  184. UIAnimator/Window/Bg/TopItem/MainInfo/ContentItem/IconItem
  185. --]]
  186. local tmp = Root:Find("UIAnimator/Window/Bg/TopItem/MainInfo/ContentItem/IconItem").gameObject
  187. if tolua.getpeer(tmp) == nil then
  188. tolua.setpeer(tmp, {})
  189. end
  190. self.iconItem = CommonUtil.BindGridViewItem2LuaStatic("IconItem", tmp)
  191. self.iconItem.prefabName = "IconItem"
  192. tmp.rectTransform = tmp:GetComponent(Enum.TypeInfo.RectTransform)
  193. tmp.layoutElement = tmp:GetComponent(Enum.TypeInfo.LayoutElement)
  194. end
  195. ---@private
  196. function UIPetStampTipsView:InitGenerate__9(Root, data)
  197. --[[
  198. UIAnimator/Window/Bg/TopItem/MainInfo/Texts/TextName
  199. --]]
  200. local tmp = Root:Find("UIAnimator/Window/Bg/TopItem/MainInfo/Texts/TextName").gameObject
  201. if tolua.getpeer(tmp) == nil then
  202. tolua.setpeer(tmp, {})
  203. end
  204. self.textName = tmp
  205. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  206. end
  207. ---@private
  208. function UIPetStampTipsView:InitGenerate__10(Root, data)
  209. --[[
  210. UIAnimator/Window/Bg/TopItem/MainInfo/Texts/Type1
  211. --]]
  212. local tmp = Root:Find("UIAnimator/Window/Bg/TopItem/MainInfo/Texts/Type1").gameObject
  213. if tolua.getpeer(tmp) == nil then
  214. tolua.setpeer(tmp, {})
  215. end
  216. self.type1 = tmp
  217. end
  218. ---@private
  219. function UIPetStampTipsView:InitGenerate__11(Root, data)
  220. --[[
  221. UIAnimator/Window/Bg/TopItem/MainInfo/Texts/Type1/Text2
  222. --]]
  223. local tmp = Root:Find("UIAnimator/Window/Bg/TopItem/MainInfo/Texts/Type1/Text2").gameObject
  224. if tolua.getpeer(tmp) == nil then
  225. tolua.setpeer(tmp, {})
  226. end
  227. self.type1.text2 = tmp
  228. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  229. end
  230. ---@private
  231. function UIPetStampTipsView:InitGenerate__12(Root, data)
  232. --[[
  233. UIAnimator/Window/Bg/TopItem/MainInfo/Texts/Type1/Text2/Image
  234. --]]
  235. local tmp = Root:Find("UIAnimator/Window/Bg/TopItem/MainInfo/Texts/Type1/Text2/Image").gameObject
  236. if tolua.getpeer(tmp) == nil then
  237. tolua.setpeer(tmp, {})
  238. end
  239. self.type1.image = tmp
  240. tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
  241. end
  242. ---@private
  243. function UIPetStampTipsView:InitGenerate__13(Root, data)
  244. --[[
  245. UIAnimator/Window/Bg/TopItem/BtnChange
  246. --]]
  247. local tmp = Root:Find("UIAnimator/Window/Bg/TopItem/BtnChange").gameObject
  248. if tolua.getpeer(tmp) == nil then
  249. tolua.setpeer(tmp, {})
  250. end
  251. self.btnChange = tmp
  252. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  253. end
  254. ---@private
  255. function UIPetStampTipsView:InitGenerate__14(Root, data)
  256. --[[
  257. UIAnimator/Window/Bg/BaseAttr
  258. --]]
  259. local tmp = Root:Find("UIAnimator/Window/Bg/BaseAttr").gameObject
  260. if tolua.getpeer(tmp) == nil then
  261. tolua.setpeer(tmp, {})
  262. end
  263. self.baseAttr = tmp
  264. end
  265. ---@private
  266. function UIPetStampTipsView:InitGenerate__15(Root, data)
  267. --[[
  268. UIAnimator/Window/Bg/BaseAttr/AttrItem
  269. --]]
  270. local tmp = Root:Find("UIAnimator/Window/Bg/BaseAttr/AttrItem").gameObject
  271. if tolua.getpeer(tmp) == nil then
  272. tolua.setpeer(tmp, {})
  273. end
  274. self.attrItem = CommonUtil.BindGridViewItem2LuaStatic("AttrItem", tmp)
  275. self.attrItem.prefabName = "AttrItem"
  276. end
  277. ---@private
  278. function UIPetStampTipsView:InitGenerate__16(Root, data)
  279. --[[
  280. UIAnimator/Window/Bg/BaseAttr/Grid
  281. --]]
  282. local tmp = Root:Find("UIAnimator/Window/Bg/BaseAttr/Grid").gameObject
  283. if tolua.getpeer(tmp) == nil then
  284. tolua.setpeer(tmp, {})
  285. end
  286. self.baseAttr.grid = tmp
  287. end
  288. ---@private
  289. function UIPetStampTipsView:InitGenerate__17(Root, data)
  290. --[[
  291. UIAnimator/Window/Bg/DscBox/DesTxt
  292. --]]
  293. local tmp = Root:Find("UIAnimator/Window/Bg/DscBox/DesTxt").gameObject
  294. if tolua.getpeer(tmp) == nil then
  295. tolua.setpeer(tmp, {})
  296. end
  297. self.desTxt = tmp
  298. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  299. end
  300. ---@private
  301. function UIPetStampTipsView:InitGenerate__18(Root, data)
  302. --[[
  303. UIAnimator/Window/Bg/BottomBox
  304. --]]
  305. local tmp = Root:Find("UIAnimator/Window/Bg/BottomBox").gameObject
  306. if tolua.getpeer(tmp) == nil then
  307. tolua.setpeer(tmp, {})
  308. end
  309. self.bottomBox = tmp
  310. end
  311. ---@private
  312. function UIPetStampTipsView:InitGenerate__19(Root, data)
  313. --[[
  314. UIAnimator/Window/Bg/BottomBox/BtnBox
  315. --]]
  316. local tmp = Root:Find("UIAnimator/Window/Bg/BottomBox/BtnBox").gameObject
  317. if tolua.getpeer(tmp) == nil then
  318. tolua.setpeer(tmp, {})
  319. end
  320. self.btnBox = tmp
  321. end
  322. ---@private
  323. function UIPetStampTipsView:InitGenerate__20(Root, data)
  324. --[[
  325. UIAnimator/Window/Bg/BottomBox/BtnBox/BtnPetStampLvUp
  326. --]]
  327. local tmp = Root:Find("UIAnimator/Window/Bg/BottomBox/BtnBox/BtnPetStampLvUp").gameObject
  328. if tolua.getpeer(tmp) == nil then
  329. tolua.setpeer(tmp, {})
  330. end
  331. self.btnPetStampLvUp = tmp
  332. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  333. end
  334. ---@private
  335. function UIPetStampTipsView:InitGenerate__21(Root, data)
  336. --[[
  337. UIAnimator/Window/Bg/BottomBox/BtnBox/BtnPetStampLvUp/UIRedPointRP
  338. --]]
  339. local tmp = Root:Find("UIAnimator/Window/Bg/BottomBox/BtnBox/BtnPetStampLvUp/UIRedPointRP").gameObject
  340. if tolua.getpeer(tmp) == nil then
  341. tolua.setpeer(tmp, {})
  342. end
  343. self.btnPetStampLvUp.uIRedPointRP = tmp
  344. end
  345. ---@private
  346. function UIPetStampTipsView:InitGenerate__22(Root, data)
  347. --[[
  348. UIAnimator/Window/Bg/BottomBox/BtnBox/BtnAdvance
  349. --]]
  350. local tmp = Root:Find("UIAnimator/Window/Bg/BottomBox/BtnBox/BtnAdvance").gameObject
  351. if tolua.getpeer(tmp) == nil then
  352. tolua.setpeer(tmp, {})
  353. end
  354. self.btnAdvance = tmp
  355. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  356. end
  357. ---@private
  358. function UIPetStampTipsView:InitGenerate__23(Root, data)
  359. --[[
  360. UIAnimator/Window/Bg/BottomBox/BtnBox/BtnAdvance/UIRedPointRP
  361. --]]
  362. local tmp = Root:Find("UIAnimator/Window/Bg/BottomBox/BtnBox/BtnAdvance/UIRedPointRP").gameObject
  363. if tolua.getpeer(tmp) == nil then
  364. tolua.setpeer(tmp, {})
  365. end
  366. self.btnAdvance.uIRedPointRP = tmp
  367. end
  368. ---@private
  369. function UIPetStampTipsView:GenerateDestroy()
  370. if tolua.getpeer(self.btnAdvance.uIRedPointRP) ~= nil then
  371. tolua.setpeer(self.btnAdvance.uIRedPointRP, nil)
  372. end
  373. if tolua.getpeer(self.btnPetStampLvUp.uIRedPointRP) ~= nil then
  374. tolua.setpeer(self.btnPetStampLvUp.uIRedPointRP, nil)
  375. end
  376. if tolua.getpeer(self.baseAttr.grid) ~= nil then
  377. tolua.setpeer(self.baseAttr.grid, nil)
  378. end
  379. if tolua.getpeer(self.type1.image) ~= nil then
  380. tolua.setpeer(self.type1.image, nil)
  381. end
  382. if tolua.getpeer(self.type1.text2) ~= nil then
  383. tolua.setpeer(self.type1.text2, nil)
  384. end
  385. if tolua.getpeer(self.uIAnimator) ~= nil then
  386. tolua.setpeer(self.uIAnimator, nil)
  387. end
  388. self.uIAnimator = nil
  389. if tolua.getpeer(self.AnyBtn) ~= nil then
  390. tolua.setpeer(self.AnyBtn, nil)
  391. end
  392. self.AnyBtn = nil
  393. if tolua.getpeer(self.window) ~= nil then
  394. tolua.setpeer(self.window, nil)
  395. end
  396. self.window = nil
  397. if tolua.getpeer(self.closeBox) ~= nil then
  398. tolua.setpeer(self.closeBox, nil)
  399. end
  400. self.closeBox = nil
  401. if tolua.getpeer(self.btnClose) ~= nil then
  402. tolua.setpeer(self.btnClose, nil)
  403. end
  404. self.btnClose = nil
  405. if tolua.getpeer(self.contentItem) ~= nil then
  406. tolua.setpeer(self.contentItem, nil)
  407. end
  408. self.contentItem = nil
  409. if self.iconItem.GenerateDestroy ~= nil then
  410. self.iconItem:GenerateDestroy()
  411. end
  412. if tolua.getpeer(self.iconItem) ~= nil then
  413. tolua.setpeer(self.iconItem, nil)
  414. end
  415. self.iconItem = nil
  416. if tolua.getpeer(self.textName) ~= nil then
  417. tolua.setpeer(self.textName, nil)
  418. end
  419. self.textName = nil
  420. if tolua.getpeer(self.type1) ~= nil then
  421. tolua.setpeer(self.type1, nil)
  422. end
  423. self.type1 = nil
  424. if tolua.getpeer(self.btnChange) ~= nil then
  425. tolua.setpeer(self.btnChange, nil)
  426. end
  427. self.btnChange = nil
  428. if tolua.getpeer(self.baseAttr) ~= nil then
  429. tolua.setpeer(self.baseAttr, nil)
  430. end
  431. self.baseAttr = nil
  432. if self.attrItem.GenerateDestroy ~= nil then
  433. self.attrItem:GenerateDestroy()
  434. end
  435. if tolua.getpeer(self.attrItem) ~= nil then
  436. tolua.setpeer(self.attrItem, nil)
  437. end
  438. self.attrItem = nil
  439. if tolua.getpeer(self.desTxt) ~= nil then
  440. tolua.setpeer(self.desTxt, nil)
  441. end
  442. self.desTxt = nil
  443. if tolua.getpeer(self.bottomBox) ~= nil then
  444. tolua.setpeer(self.bottomBox, nil)
  445. end
  446. self.bottomBox = nil
  447. if tolua.getpeer(self.btnBox) ~= nil then
  448. tolua.setpeer(self.btnBox, nil)
  449. end
  450. self.btnBox = nil
  451. if tolua.getpeer(self.btnPetStampLvUp) ~= nil then
  452. tolua.setpeer(self.btnPetStampLvUp, nil)
  453. end
  454. self.btnPetStampLvUp = nil
  455. if tolua.getpeer(self.btnAdvance) ~= nil then
  456. tolua.setpeer(self.btnAdvance, nil)
  457. end
  458. self.btnAdvance = nil
  459. self.transform = nil
  460. self.gameObject = nil
  461. self.inited = false
  462. end
  463. return UIPetStampTipsView