UIBigMapView_Generate.lua 14 KB

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