UIGuildRecommendView_Generate.lua 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369
  1. ---@class UIGuildRecommend__Generate_btnRefresh
  2. ---@field public gameObject UnityEngine.GameObject
  3. ---@field public button UnityEngine.UI.Button
  4. ---@class UIGuildRecommend__Generate_btnCreate
  5. ---@field public gameObject UnityEngine.GameObject
  6. ---@field public button UnityEngine.UI.Button
  7. ---@class UIGuildRecommend__Generate_closeBtn
  8. ---@field public gameObject UnityEngine.GameObject
  9. ---@field public button UnityEngine.UI.Button
  10. ---@class UIGuildRecommend__Generate_searchBtn
  11. ---@field public gameObject UnityEngine.GameObject
  12. ---@field public button UnityEngine.UI.Button
  13. ---@class UIGuildRecommend__Generate_clearBtn
  14. ---@field public gameObject UnityEngine.GameObject
  15. ---@field public button UnityEngine.UI.Button
  16. ---@class UIGuildRecommend__Generate_input
  17. ---@field public gameObject UnityEngine.GameObject
  18. ---@field public inputField UnityEngine.UI.InputField
  19. ---@class UIGuildRecommend__Generate_guildRecommendItem
  20. ---@field public gameObject UnityEngine.GameObject
  21. ---@field public button UnityEngine.UI.Button
  22. ---@class UIGuildRecommend__Generate_guildList
  23. ---@field public gameObject UnityEngine.GameObject
  24. ---@field public loopGridView SuperScrollView.LoopGridView
  25. ---@class UIGuildRecommend__Generate_titleLab4
  26. ---@field public gameObject UnityEngine.GameObject
  27. ---@field public text UnityEngine.UI.Text
  28. ---@class UIGuildRecommend__Generate_titleLab3
  29. ---@field public gameObject UnityEngine.GameObject
  30. ---@field public text UnityEngine.UI.Text
  31. ---@class UIGuildRecommend__Generate_titleLab1
  32. ---@field public gameObject UnityEngine.GameObject
  33. ---@field public text UnityEngine.UI.Text
  34. ---@class UIGuildRecommend__Generate_emptyTips_desTxt
  35. ---@field public gameObject UnityEngine.GameObject
  36. ---@field public text UnityEngine.UI.Text
  37. ---@class UIGuildRecommend__Generate_emptyTips
  38. ---@field public gameObject UnityEngine.GameObject
  39. ---@field public desTxt UIGuildRecommend__Generate_emptyTips_desTxt
  40. ---@class UIGuildRecommend__Generate_AnyBtn
  41. ---@field public gameObject UnityEngine.GameObject
  42. ---@field public button UnityEngine.UI.Button
  43. ---@class UIGuildRecommend__Generate
  44. ---@field private gameObject UnityEngine.GameObject
  45. ---@field private transform UnityEngine.Transform
  46. ---@field private AnyBtn UIGuildRecommend__Generate_AnyBtn
  47. ---@field private emptyTips UIGuildRecommend__Generate_emptyTips
  48. ---@field private titleLab1 UIGuildRecommend__Generate_titleLab1
  49. ---@field private titleLab3 UIGuildRecommend__Generate_titleLab3
  50. ---@field private titleLab4 UIGuildRecommend__Generate_titleLab4
  51. ---@field private guildList UIGuildRecommend__Generate_guildList
  52. ---@field private guildRecommendItem UIGuildRecommend__Generate_guildRecommendItem
  53. ---@field private input UIGuildRecommend__Generate_input
  54. ---@field private clearBtn UIGuildRecommend__Generate_clearBtn
  55. ---@field private searchBtn UIGuildRecommend__Generate_searchBtn
  56. ---@field private closeBtn UIGuildRecommend__Generate_closeBtn
  57. ---@field private btnCreate UIGuildRecommend__Generate_btnCreate
  58. ---@field private btnRefresh UIGuildRecommend__Generate_btnRefresh
  59. local UIGuildRecommendView = class("UIGuildRecommendView", require("UIViewBase"))
  60. function UIGuildRecommendView:ctor()
  61. end
  62. ---@private
  63. function UIGuildRecommendView:SetActive(result)
  64. self.gameObject:SetActive(result)
  65. end
  66. ---@private
  67. function UIGuildRecommendView:InitGenerate(Root, data)
  68. self.transform = Root
  69. self.inited = true
  70. if self.super.Init then
  71. self.super.Init(self)
  72. end
  73. local tmp
  74. self:InitGenerate__1(Root,data)
  75. self:InitGenerate__2(Root,data)
  76. self:InitGenerate__3(Root,data)
  77. self:InitGenerate__4(Root,data)
  78. self:InitGenerate__5(Root,data)
  79. self:InitGenerate__6(Root,data)
  80. self:InitGenerate__7(Root,data)
  81. self:InitGenerate__8(Root,data)
  82. self:InitGenerate__9(Root,data)
  83. self:InitGenerate__10(Root,data)
  84. self:InitGenerate__11(Root,data)
  85. self:InitGenerate__12(Root,data)
  86. self:InitGenerate__13(Root,data)
  87. self:InitGenerate__14(Root,data)
  88. end
  89. ---@private
  90. function UIGuildRecommendView:InitGenerate__1(Root, data)
  91. --[[
  92. UIAnimator/Alpha
  93. --]]
  94. local tmp = Root:Find("UIAnimator/Alpha").gameObject
  95. if tolua.getpeer(tmp) == nil then
  96. tolua.setpeer(tmp, {})
  97. end
  98. self.AnyBtn = tmp
  99. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  100. end
  101. ---@private
  102. function UIGuildRecommendView:InitGenerate__2(Root, data)
  103. --[[
  104. UIAnimator/Window/EmptyTips
  105. --]]
  106. local tmp = Root:Find("UIAnimator/Window/EmptyTips").gameObject
  107. if tolua.getpeer(tmp) == nil then
  108. tolua.setpeer(tmp, {})
  109. end
  110. self.emptyTips = tmp
  111. end
  112. ---@private
  113. function UIGuildRecommendView:InitGenerate__3(Root, data)
  114. --[[
  115. UIAnimator/Window/EmptyTips/DesTxt
  116. --]]
  117. local tmp = Root:Find("UIAnimator/Window/EmptyTips/DesTxt").gameObject
  118. if tolua.getpeer(tmp) == nil then
  119. tolua.setpeer(tmp, {})
  120. end
  121. self.emptyTips.desTxt = tmp
  122. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  123. end
  124. ---@private
  125. function UIGuildRecommendView:InitGenerate__4(Root, data)
  126. --[[
  127. UIAnimator/Window/TitleLab1
  128. --]]
  129. local tmp = Root:Find("UIAnimator/Window/TitleLab1").gameObject
  130. if tolua.getpeer(tmp) == nil then
  131. tolua.setpeer(tmp, {})
  132. end
  133. self.titleLab1 = tmp
  134. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  135. end
  136. ---@private
  137. function UIGuildRecommendView:InitGenerate__5(Root, data)
  138. --[[
  139. UIAnimator/Window/TitleLab3
  140. --]]
  141. local tmp = Root:Find("UIAnimator/Window/TitleLab3").gameObject
  142. if tolua.getpeer(tmp) == nil then
  143. tolua.setpeer(tmp, {})
  144. end
  145. self.titleLab3 = tmp
  146. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  147. end
  148. ---@private
  149. function UIGuildRecommendView:InitGenerate__6(Root, data)
  150. --[[
  151. UIAnimator/Window/TitleLab4
  152. --]]
  153. local tmp = Root:Find("UIAnimator/Window/TitleLab4").gameObject
  154. if tolua.getpeer(tmp) == nil then
  155. tolua.setpeer(tmp, {})
  156. end
  157. self.titleLab4 = tmp
  158. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  159. end
  160. ---@private
  161. function UIGuildRecommendView:InitGenerate__7(Root, data)
  162. --[[
  163. UIAnimator/Window/GuildList
  164. --]]
  165. local tmp = Root:Find("UIAnimator/Window/GuildList").gameObject
  166. if tolua.getpeer(tmp) == nil then
  167. tolua.setpeer(tmp, {})
  168. end
  169. self.guildList = tmp
  170. tmp.loopGridView = tmp:GetComponent(Enum.TypeInfo.LoopGridView)
  171. end
  172. ---@private
  173. function UIGuildRecommendView:InitGenerate__8(Root, data)
  174. --[[
  175. UIAnimator/Window/GuildList/Viewport/Content/GuildRecommendItem
  176. --]]
  177. local tmp = Root:Find("UIAnimator/Window/GuildList/Viewport/Content/GuildRecommendItem").gameObject
  178. if tolua.getpeer(tmp) == nil then
  179. tolua.setpeer(tmp, {})
  180. end
  181. self.guildRecommendItem = CommonUtil.BindGridViewItem2LuaStatic("GuildRecommendItem", tmp)
  182. self.guildRecommendItem.prefabName = "GuildRecommendItem"
  183. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  184. end
  185. ---@private
  186. function UIGuildRecommendView:InitGenerate__9(Root, data)
  187. --[[
  188. UIAnimator/Window/SearchNode/Input
  189. --]]
  190. local tmp = Root:Find("UIAnimator/Window/SearchNode/Input").gameObject
  191. if tolua.getpeer(tmp) == nil then
  192. tolua.setpeer(tmp, {})
  193. end
  194. self.input = tmp
  195. tmp.inputField = tmp:GetComponent(Enum.TypeInfo.InputField)
  196. end
  197. ---@private
  198. function UIGuildRecommendView:InitGenerate__10(Root, data)
  199. --[[
  200. UIAnimator/Window/SearchNode/ClearBtn
  201. --]]
  202. local tmp = Root:Find("UIAnimator/Window/SearchNode/ClearBtn").gameObject
  203. if tolua.getpeer(tmp) == nil then
  204. tolua.setpeer(tmp, {})
  205. end
  206. self.clearBtn = tmp
  207. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  208. end
  209. ---@private
  210. function UIGuildRecommendView:InitGenerate__11(Root, data)
  211. --[[
  212. UIAnimator/Window/SearchNode/SearchBtn
  213. --]]
  214. local tmp = Root:Find("UIAnimator/Window/SearchNode/SearchBtn").gameObject
  215. if tolua.getpeer(tmp) == nil then
  216. tolua.setpeer(tmp, {})
  217. end
  218. self.searchBtn = tmp
  219. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  220. end
  221. ---@private
  222. function UIGuildRecommendView:InitGenerate__12(Root, data)
  223. --[[
  224. UIAnimator/Window/BtnBack
  225. --]]
  226. local tmp = Root:Find("UIAnimator/Window/BtnBack").gameObject
  227. if tolua.getpeer(tmp) == nil then
  228. tolua.setpeer(tmp, {})
  229. end
  230. self.closeBtn = tmp
  231. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  232. end
  233. ---@private
  234. function UIGuildRecommendView:InitGenerate__13(Root, data)
  235. --[[
  236. UIAnimator/Window/BtnCreate
  237. --]]
  238. local tmp = Root:Find("UIAnimator/Window/BtnCreate").gameObject
  239. if tolua.getpeer(tmp) == nil then
  240. tolua.setpeer(tmp, {})
  241. end
  242. self.btnCreate = tmp
  243. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  244. end
  245. ---@private
  246. function UIGuildRecommendView:InitGenerate__14(Root, data)
  247. --[[
  248. UIAnimator/Window/BtnRefresh
  249. --]]
  250. local tmp = Root:Find("UIAnimator/Window/BtnRefresh").gameObject
  251. if tolua.getpeer(tmp) == nil then
  252. tolua.setpeer(tmp, {})
  253. end
  254. self.btnRefresh = tmp
  255. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  256. end
  257. ---@private
  258. function UIGuildRecommendView:GenerateDestroy()
  259. if tolua.getpeer(self.emptyTips.desTxt) ~= nil then
  260. tolua.setpeer(self.emptyTips.desTxt, nil)
  261. end
  262. if tolua.getpeer(self.AnyBtn) ~= nil then
  263. tolua.setpeer(self.AnyBtn, nil)
  264. end
  265. self.AnyBtn = nil
  266. if tolua.getpeer(self.emptyTips) ~= nil then
  267. tolua.setpeer(self.emptyTips, nil)
  268. end
  269. self.emptyTips = nil
  270. if tolua.getpeer(self.titleLab1) ~= nil then
  271. tolua.setpeer(self.titleLab1, nil)
  272. end
  273. self.titleLab1 = nil
  274. if tolua.getpeer(self.titleLab3) ~= nil then
  275. tolua.setpeer(self.titleLab3, nil)
  276. end
  277. self.titleLab3 = nil
  278. if tolua.getpeer(self.titleLab4) ~= nil then
  279. tolua.setpeer(self.titleLab4, nil)
  280. end
  281. self.titleLab4 = nil
  282. if tolua.getpeer(self.guildList) ~= nil then
  283. tolua.setpeer(self.guildList, nil)
  284. end
  285. self.guildList = nil
  286. if self.guildRecommendItem.GenerateDestroy ~= nil then
  287. self.guildRecommendItem:GenerateDestroy()
  288. end
  289. if tolua.getpeer(self.guildRecommendItem) ~= nil then
  290. tolua.setpeer(self.guildRecommendItem, nil)
  291. end
  292. self.guildRecommendItem = nil
  293. if tolua.getpeer(self.input) ~= nil then
  294. tolua.setpeer(self.input, nil)
  295. end
  296. self.input = nil
  297. if tolua.getpeer(self.clearBtn) ~= nil then
  298. tolua.setpeer(self.clearBtn, nil)
  299. end
  300. self.clearBtn = nil
  301. if tolua.getpeer(self.searchBtn) ~= nil then
  302. tolua.setpeer(self.searchBtn, nil)
  303. end
  304. self.searchBtn = nil
  305. if tolua.getpeer(self.closeBtn) ~= nil then
  306. tolua.setpeer(self.closeBtn, nil)
  307. end
  308. self.closeBtn = nil
  309. if tolua.getpeer(self.btnCreate) ~= nil then
  310. tolua.setpeer(self.btnCreate, nil)
  311. end
  312. self.btnCreate = nil
  313. if tolua.getpeer(self.btnRefresh) ~= nil then
  314. tolua.setpeer(self.btnRefresh, nil)
  315. end
  316. self.btnRefresh = nil
  317. self.transform = nil
  318. self.gameObject = nil
  319. self.inited = false
  320. end
  321. return UIGuildRecommendView