UIGuildInfoView_Generate.lua 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536
  1. ---@class UIGuildInfo__Generate_btnCancel
  2. ---@field public gameObject UnityEngine.GameObject
  3. ---@field public button UnityEngine.UI.Button
  4. ---@class UIGuildInfo__Generate_btnEnter_text
  5. ---@field public gameObject UnityEngine.GameObject
  6. ---@field public uILocalizeScript UILocalizeScript
  7. ---@class UIGuildInfo__Generate_btnEnter
  8. ---@field public gameObject UnityEngine.GameObject
  9. ---@field public button UnityEngine.UI.Button
  10. ---@field public text UIGuildInfo__Generate_btnEnter_text
  11. ---@class UIGuildInfo__Generate_loadingItem
  12. ---@field public gameObject UnityEngine.GameObject
  13. ---@field public rectTransform UnityEngine.RectTransform
  14. ---@field public layoutElement UnityEngine.UI.LayoutElement
  15. ---@class UIGuildInfo__Generate_guildPeopleItem
  16. ---@field public gameObject UnityEngine.GameObject
  17. ---@field public rectTransform UnityEngine.RectTransform
  18. ---@field public button UnityEngine.UI.Button
  19. ---@class UIGuildInfo__Generate_peopleList
  20. ---@field public gameObject UnityEngine.GameObject
  21. ---@field public loopListView SuperScrollView.LoopListView
  22. ---@class UIGuildInfo__Generate_verifyTypeTxt
  23. ---@field public gameObject UnityEngine.GameObject
  24. ---@field public text UnityEngine.UI.Text
  25. ---@class UIGuildInfo__Generate_peopleTxt
  26. ---@field public gameObject UnityEngine.GameObject
  27. ---@field public text UnityEngine.UI.Text
  28. ---@class UIGuildInfo__Generate_enterLimitTxt
  29. ---@field public gameObject UnityEngine.GameObject
  30. ---@field public text UnityEngine.UI.Text
  31. ---@class UIGuildInfo__Generate_noticeTxt
  32. ---@field public gameObject UnityEngine.GameObject
  33. ---@field public text UnityEngine.UI.Text
  34. ---@class UIGuildInfo__Generate_activeTxt
  35. ---@field public gameObject UnityEngine.GameObject
  36. ---@field public text UnityEngine.UI.Text
  37. ---@class UIGuildInfo__Generate_idTxt
  38. ---@field public gameObject UnityEngine.GameObject
  39. ---@field public text UnityEngine.UI.Text
  40. ---@class UIGuildInfo__Generate_text
  41. ---@field public gameObject UnityEngine.GameObject
  42. ---@field public text UnityEngine.UI.Text
  43. ---@class UIGuildInfo__Generate_lvTxt
  44. ---@field public gameObject UnityEngine.GameObject
  45. ---@field public text UnityEngine.UI.Text
  46. ---@class UIGuildInfo__Generate_nameTxt
  47. ---@field public gameObject UnityEngine.GameObject
  48. ---@field public text UnityEngine.UI.Text
  49. ---@class UIGuildInfo__Generate_guildBadgeItem
  50. ---@field public gameObject UnityEngine.GameObject
  51. ---@field public layoutElement UnityEngine.UI.LayoutElement
  52. ---@class UIGuildInfo__Generate_btnClose
  53. ---@field public gameObject UnityEngine.GameObject
  54. ---@field public button UnityEngine.UI.Button
  55. ---@class UIGuildInfo__Generate_AnyBtn
  56. ---@field public gameObject UnityEngine.GameObject
  57. ---@field public button UnityEngine.UI.Button
  58. ---@class UIGuildInfo__Generate
  59. ---@field private gameObject UnityEngine.GameObject
  60. ---@field private transform UnityEngine.Transform
  61. ---@field private AnyBtn UIGuildInfo__Generate_AnyBtn
  62. ---@field private btnClose UIGuildInfo__Generate_btnClose
  63. ---@field private guildBadgeItem UIGuildInfo__Generate_guildBadgeItem
  64. ---@field private nameTxt UIGuildInfo__Generate_nameTxt
  65. ---@field private lvTxt UIGuildInfo__Generate_lvTxt
  66. ---@field private text UIGuildInfo__Generate_text
  67. ---@field private idTxt UIGuildInfo__Generate_idTxt
  68. ---@field private activeTxt UIGuildInfo__Generate_activeTxt
  69. ---@field private noticeTxt UIGuildInfo__Generate_noticeTxt
  70. ---@field private enterLimitTxt UIGuildInfo__Generate_enterLimitTxt
  71. ---@field private peopleTxt UIGuildInfo__Generate_peopleTxt
  72. ---@field private verifyTypeTxt UIGuildInfo__Generate_verifyTypeTxt
  73. ---@field private appliedTag UnityEngine.GameObject
  74. ---@field private peopleList UIGuildInfo__Generate_peopleList
  75. ---@field private guildPeopleItem UIGuildInfo__Generate_guildPeopleItem
  76. ---@field private loadingItem UIGuildInfo__Generate_loadingItem
  77. ---@field private bottom UnityEngine.GameObject
  78. ---@field private bottomRoot UnityEngine.GameObject
  79. ---@field private btnEnter UIGuildInfo__Generate_btnEnter
  80. ---@field private btnCancel UIGuildInfo__Generate_btnCancel
  81. local UIGuildInfoView = class("UIGuildInfoView", require("UIViewBase"))
  82. function UIGuildInfoView:ctor()
  83. end
  84. ---@private
  85. function UIGuildInfoView:SetActive(result)
  86. self.gameObject:SetActive(result)
  87. end
  88. ---@private
  89. function UIGuildInfoView:InitGenerate(Root, data)
  90. self.transform = Root
  91. self.inited = true
  92. if self.super.Init then
  93. self.super.Init(self)
  94. end
  95. local tmp
  96. self:InitGenerate__1(Root,data)
  97. self:InitGenerate__2(Root,data)
  98. self:InitGenerate__3(Root,data)
  99. self:InitGenerate__4(Root,data)
  100. self:InitGenerate__5(Root,data)
  101. self:InitGenerate__6(Root,data)
  102. self:InitGenerate__7(Root,data)
  103. self:InitGenerate__8(Root,data)
  104. self:InitGenerate__9(Root,data)
  105. self:InitGenerate__10(Root,data)
  106. self:InitGenerate__11(Root,data)
  107. self:InitGenerate__12(Root,data)
  108. self:InitGenerate__13(Root,data)
  109. self:InitGenerate__14(Root,data)
  110. self:InitGenerate__15(Root,data)
  111. self:InitGenerate__16(Root,data)
  112. self:InitGenerate__17(Root,data)
  113. self:InitGenerate__18(Root,data)
  114. self:InitGenerate__19(Root,data)
  115. self:InitGenerate__20(Root,data)
  116. self:InitGenerate__21(Root,data)
  117. end
  118. ---@private
  119. function UIGuildInfoView:InitGenerate__1(Root, data)
  120. --[[
  121. UIAnimator/Alpha
  122. --]]
  123. local tmp = Root:Find("UIAnimator/Alpha").gameObject
  124. if tolua.getpeer(tmp) == nil then
  125. tolua.setpeer(tmp, {})
  126. end
  127. self.AnyBtn = tmp
  128. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  129. end
  130. ---@private
  131. function UIGuildInfoView:InitGenerate__2(Root, data)
  132. --[[
  133. UIAnimator/Window/CloseBox/BtnClose
  134. --]]
  135. local tmp = Root:Find("UIAnimator/Window/CloseBox/BtnClose").gameObject
  136. if tolua.getpeer(tmp) == nil then
  137. tolua.setpeer(tmp, {})
  138. end
  139. self.btnClose = tmp
  140. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  141. end
  142. ---@private
  143. function UIGuildInfoView:InitGenerate__3(Root, data)
  144. --[[
  145. UIAnimator/Window/Top/GuildInfo/GuildBadgeItem
  146. --]]
  147. local tmp = Root:Find("UIAnimator/Window/Top/GuildInfo/GuildBadgeItem").gameObject
  148. if tolua.getpeer(tmp) == nil then
  149. tolua.setpeer(tmp, {})
  150. end
  151. self.guildBadgeItem = CommonUtil.BindGridViewItem2LuaStatic("GuildBadgeItem", tmp)
  152. self.guildBadgeItem.prefabName = "GuildBadgeItem"
  153. tmp.layoutElement = tmp:GetComponent(Enum.TypeInfo.LayoutElement)
  154. end
  155. ---@private
  156. function UIGuildInfoView:InitGenerate__4(Root, data)
  157. --[[
  158. UIAnimator/Window/Top/GuildInfo/NameTxt
  159. --]]
  160. local tmp = Root:Find("UIAnimator/Window/Top/GuildInfo/NameTxt").gameObject
  161. if tolua.getpeer(tmp) == nil then
  162. tolua.setpeer(tmp, {})
  163. end
  164. self.nameTxt = tmp
  165. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  166. end
  167. ---@private
  168. function UIGuildInfoView:InitGenerate__5(Root, data)
  169. --[[
  170. UIAnimator/Window/Top/GuildInfo/Lv/LvTxt
  171. --]]
  172. local tmp = Root:Find("UIAnimator/Window/Top/GuildInfo/Lv/LvTxt").gameObject
  173. if tolua.getpeer(tmp) == nil then
  174. tolua.setpeer(tmp, {})
  175. end
  176. self.lvTxt = tmp
  177. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  178. end
  179. ---@private
  180. function UIGuildInfoView:InitGenerate__6(Root, data)
  181. --[[
  182. UIAnimator/Window/Top/GuildInfo/Id/Text
  183. --]]
  184. local tmp = Root:Find("UIAnimator/Window/Top/GuildInfo/Id/Text").gameObject
  185. if tolua.getpeer(tmp) == nil then
  186. tolua.setpeer(tmp, {})
  187. end
  188. self.text = tmp
  189. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  190. end
  191. ---@private
  192. function UIGuildInfoView:InitGenerate__7(Root, data)
  193. --[[
  194. UIAnimator/Window/Top/GuildInfo/Id/IdTxt
  195. --]]
  196. local tmp = Root:Find("UIAnimator/Window/Top/GuildInfo/Id/IdTxt").gameObject
  197. if tolua.getpeer(tmp) == nil then
  198. tolua.setpeer(tmp, {})
  199. end
  200. self.idTxt = tmp
  201. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  202. end
  203. ---@private
  204. function UIGuildInfoView:InitGenerate__8(Root, data)
  205. --[[
  206. UIAnimator/Window/Top/GuildInfo/active/activeTxt
  207. --]]
  208. local tmp = Root:Find("UIAnimator/Window/Top/GuildInfo/active/activeTxt").gameObject
  209. if tolua.getpeer(tmp) == nil then
  210. tolua.setpeer(tmp, {})
  211. end
  212. self.activeTxt = tmp
  213. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  214. end
  215. ---@private
  216. function UIGuildInfoView:InitGenerate__9(Root, data)
  217. --[[
  218. UIAnimator/Window/Top/GuildInfo/Notice/NoticeTxt
  219. --]]
  220. local tmp = Root:Find("UIAnimator/Window/Top/GuildInfo/Notice/NoticeTxt").gameObject
  221. if tolua.getpeer(tmp) == nil then
  222. tolua.setpeer(tmp, {})
  223. end
  224. self.noticeTxt = tmp
  225. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  226. end
  227. ---@private
  228. function UIGuildInfoView:InitGenerate__10(Root, data)
  229. --[[
  230. UIAnimator/Window/Top/EnterLimit/EnterLimitTxt
  231. --]]
  232. local tmp = Root:Find("UIAnimator/Window/Top/EnterLimit/EnterLimitTxt").gameObject
  233. if tolua.getpeer(tmp) == nil then
  234. tolua.setpeer(tmp, {})
  235. end
  236. self.enterLimitTxt = tmp
  237. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  238. end
  239. ---@private
  240. function UIGuildInfoView:InitGenerate__11(Root, data)
  241. --[[
  242. UIAnimator/Window/Top/People/PeopleTxt
  243. --]]
  244. local tmp = Root:Find("UIAnimator/Window/Top/People/PeopleTxt").gameObject
  245. if tolua.getpeer(tmp) == nil then
  246. tolua.setpeer(tmp, {})
  247. end
  248. self.peopleTxt = tmp
  249. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  250. end
  251. ---@private
  252. function UIGuildInfoView:InitGenerate__12(Root, data)
  253. --[[
  254. UIAnimator/Window/Top/VerifyType/VerifyTypeTxt
  255. --]]
  256. local tmp = Root:Find("UIAnimator/Window/Top/VerifyType/VerifyTypeTxt").gameObject
  257. if tolua.getpeer(tmp) == nil then
  258. tolua.setpeer(tmp, {})
  259. end
  260. self.verifyTypeTxt = tmp
  261. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  262. end
  263. ---@private
  264. function UIGuildInfoView:InitGenerate__13(Root, data)
  265. --[[
  266. UIAnimator/Window/Top/AppliedTag
  267. --]]
  268. local tmp = Root:Find("UIAnimator/Window/Top/AppliedTag").gameObject
  269. if tolua.getpeer(tmp) == nil then
  270. tolua.setpeer(tmp, {})
  271. end
  272. self.appliedTag = tmp
  273. end
  274. ---@private
  275. function UIGuildInfoView:InitGenerate__14(Root, data)
  276. --[[
  277. UIAnimator/Window/Center/PeopleList
  278. --]]
  279. local tmp = Root:Find("UIAnimator/Window/Center/PeopleList").gameObject
  280. if tolua.getpeer(tmp) == nil then
  281. tolua.setpeer(tmp, {})
  282. end
  283. self.peopleList = tmp
  284. tmp.loopListView = tmp:GetComponent(Enum.TypeInfo.LoopListView)
  285. end
  286. ---@private
  287. function UIGuildInfoView:InitGenerate__15(Root, data)
  288. --[[
  289. UIAnimator/Window/Center/PeopleList/Viewport/Content/GuildPeopleItem
  290. --]]
  291. local tmp = Root:Find("UIAnimator/Window/Center/PeopleList/Viewport/Content/GuildPeopleItem").gameObject
  292. if tolua.getpeer(tmp) == nil then
  293. tolua.setpeer(tmp, {})
  294. end
  295. self.guildPeopleItem = CommonUtil.BindGridViewItem2LuaStatic("GuildPeopleItem", tmp)
  296. self.guildPeopleItem.prefabName = "GuildPeopleItem"
  297. tmp.rectTransform = tmp:GetComponent(Enum.TypeInfo.RectTransform)
  298. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  299. end
  300. ---@private
  301. function UIGuildInfoView:InitGenerate__16(Root, data)
  302. --[[
  303. UIAnimator/Window/Center/PeopleList/Viewport/Content/LoadingItem
  304. --]]
  305. local tmp = Root:Find("UIAnimator/Window/Center/PeopleList/Viewport/Content/LoadingItem").gameObject
  306. if tolua.getpeer(tmp) == nil then
  307. tolua.setpeer(tmp, {})
  308. end
  309. self.loadingItem = CommonUtil.BindGridViewItem2LuaStatic("LoadingItem", tmp)
  310. self.loadingItem.prefabName = "LoadingItem"
  311. tmp.rectTransform = tmp:GetComponent(Enum.TypeInfo.RectTransform)
  312. tmp.layoutElement = tmp:GetComponent(Enum.TypeInfo.LayoutElement)
  313. end
  314. ---@private
  315. function UIGuildInfoView:InitGenerate__17(Root, data)
  316. --[[
  317. UIAnimator/Window/Bottom
  318. --]]
  319. local tmp = Root:Find("UIAnimator/Window/Bottom").gameObject
  320. if tolua.getpeer(tmp) == nil then
  321. tolua.setpeer(tmp, {})
  322. end
  323. self.bottom = tmp
  324. end
  325. ---@private
  326. function UIGuildInfoView:InitGenerate__18(Root, data)
  327. --[[
  328. UIAnimator/Window/Bottom/BottomRoot
  329. --]]
  330. local tmp = Root:Find("UIAnimator/Window/Bottom/BottomRoot").gameObject
  331. if tolua.getpeer(tmp) == nil then
  332. tolua.setpeer(tmp, {})
  333. end
  334. self.bottomRoot = tmp
  335. end
  336. ---@private
  337. function UIGuildInfoView:InitGenerate__19(Root, data)
  338. --[[
  339. UIAnimator/Window/Bottom/BtnEnter
  340. --]]
  341. local tmp = Root:Find("UIAnimator/Window/Bottom/BtnEnter").gameObject
  342. if tolua.getpeer(tmp) == nil then
  343. tolua.setpeer(tmp, {})
  344. end
  345. self.btnEnter = tmp
  346. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  347. end
  348. ---@private
  349. function UIGuildInfoView:InitGenerate__20(Root, data)
  350. --[[
  351. UIAnimator/Window/Bottom/BtnEnter/Text
  352. --]]
  353. local tmp = Root:Find("UIAnimator/Window/Bottom/BtnEnter/Text").gameObject
  354. if tolua.getpeer(tmp) == nil then
  355. tolua.setpeer(tmp, {})
  356. end
  357. self.btnEnter.text = tmp
  358. tmp.uILocalizeScript = tmp:GetComponent(Enum.TypeInfo.UILocalizeScript)
  359. end
  360. ---@private
  361. function UIGuildInfoView:InitGenerate__21(Root, data)
  362. --[[
  363. UIAnimator/Window/Bottom/BtnCancel
  364. --]]
  365. local tmp = Root:Find("UIAnimator/Window/Bottom/BtnCancel").gameObject
  366. if tolua.getpeer(tmp) == nil then
  367. tolua.setpeer(tmp, {})
  368. end
  369. self.btnCancel = tmp
  370. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  371. end
  372. ---@private
  373. function UIGuildInfoView:GenerateDestroy()
  374. if tolua.getpeer(self.btnEnter.text) ~= nil then
  375. tolua.setpeer(self.btnEnter.text, nil)
  376. end
  377. if tolua.getpeer(self.AnyBtn) ~= nil then
  378. tolua.setpeer(self.AnyBtn, nil)
  379. end
  380. self.AnyBtn = nil
  381. if tolua.getpeer(self.btnClose) ~= nil then
  382. tolua.setpeer(self.btnClose, nil)
  383. end
  384. self.btnClose = nil
  385. if self.guildBadgeItem.GenerateDestroy ~= nil then
  386. self.guildBadgeItem:GenerateDestroy()
  387. end
  388. if tolua.getpeer(self.guildBadgeItem) ~= nil then
  389. tolua.setpeer(self.guildBadgeItem, nil)
  390. end
  391. self.guildBadgeItem = nil
  392. if tolua.getpeer(self.nameTxt) ~= nil then
  393. tolua.setpeer(self.nameTxt, nil)
  394. end
  395. self.nameTxt = nil
  396. if tolua.getpeer(self.lvTxt) ~= nil then
  397. tolua.setpeer(self.lvTxt, nil)
  398. end
  399. self.lvTxt = nil
  400. if tolua.getpeer(self.text) ~= nil then
  401. tolua.setpeer(self.text, nil)
  402. end
  403. self.text = nil
  404. if tolua.getpeer(self.idTxt) ~= nil then
  405. tolua.setpeer(self.idTxt, nil)
  406. end
  407. self.idTxt = nil
  408. if tolua.getpeer(self.activeTxt) ~= nil then
  409. tolua.setpeer(self.activeTxt, nil)
  410. end
  411. self.activeTxt = nil
  412. if tolua.getpeer(self.noticeTxt) ~= nil then
  413. tolua.setpeer(self.noticeTxt, nil)
  414. end
  415. self.noticeTxt = nil
  416. if tolua.getpeer(self.enterLimitTxt) ~= nil then
  417. tolua.setpeer(self.enterLimitTxt, nil)
  418. end
  419. self.enterLimitTxt = nil
  420. if tolua.getpeer(self.peopleTxt) ~= nil then
  421. tolua.setpeer(self.peopleTxt, nil)
  422. end
  423. self.peopleTxt = nil
  424. if tolua.getpeer(self.verifyTypeTxt) ~= nil then
  425. tolua.setpeer(self.verifyTypeTxt, nil)
  426. end
  427. self.verifyTypeTxt = nil
  428. if tolua.getpeer(self.appliedTag) ~= nil then
  429. tolua.setpeer(self.appliedTag, nil)
  430. end
  431. self.appliedTag = nil
  432. if tolua.getpeer(self.peopleList) ~= nil then
  433. tolua.setpeer(self.peopleList, nil)
  434. end
  435. self.peopleList = nil
  436. if self.guildPeopleItem.GenerateDestroy ~= nil then
  437. self.guildPeopleItem:GenerateDestroy()
  438. end
  439. if tolua.getpeer(self.guildPeopleItem) ~= nil then
  440. tolua.setpeer(self.guildPeopleItem, nil)
  441. end
  442. self.guildPeopleItem = nil
  443. if self.loadingItem.GenerateDestroy ~= nil then
  444. self.loadingItem:GenerateDestroy()
  445. end
  446. if tolua.getpeer(self.loadingItem) ~= nil then
  447. tolua.setpeer(self.loadingItem, nil)
  448. end
  449. self.loadingItem = nil
  450. if tolua.getpeer(self.bottom) ~= nil then
  451. tolua.setpeer(self.bottom, nil)
  452. end
  453. self.bottom = nil
  454. if tolua.getpeer(self.bottomRoot) ~= nil then
  455. tolua.setpeer(self.bottomRoot, nil)
  456. end
  457. self.bottomRoot = nil
  458. if tolua.getpeer(self.btnEnter) ~= nil then
  459. tolua.setpeer(self.btnEnter, nil)
  460. end
  461. self.btnEnter = nil
  462. if tolua.getpeer(self.btnCancel) ~= nil then
  463. tolua.setpeer(self.btnCancel, nil)
  464. end
  465. self.btnCancel = nil
  466. self.transform = nil
  467. self.gameObject = nil
  468. self.inited = false
  469. end
  470. return UIGuildInfoView