UIChatPrivateView_Generate.lua 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379
  1. ---@class UIChatPrivate__Generate_emojiWindow
  2. ---@field public gameObject UnityEngine.GameObject
  3. ---@field public loopVerticalScrollRect UnityEngine.UI.LoopVerticalScrollRect
  4. ---@field public content UnityEngine.GameObject
  5. ---@class UIChatPrivate__Generate_headItem
  6. ---@field public gameObject UnityEngine.GameObject
  7. ---@field public layoutElement UnityEngine.UI.LayoutElement
  8. ---@class UIChatPrivate__Generate_headList
  9. ---@field public gameObject UnityEngine.GameObject
  10. ---@field public loopVerticalScrollRect UnityEngine.UI.LoopVerticalScrollRect
  11. ---@class UIChatPrivate__Generate_btnSend
  12. ---@field public gameObject UnityEngine.GameObject
  13. ---@field public button UnityEngine.UI.Button
  14. ---@class UIChatPrivate__Generate_btnEmoji
  15. ---@field public gameObject UnityEngine.GameObject
  16. ---@field public button UnityEngine.UI.Button
  17. ---@class UIChatPrivate__Generate_inputField
  18. ---@field public gameObject UnityEngine.GameObject
  19. ---@field public inputField UnityEngine.UI.InputField
  20. ---@class UIChatPrivate__Generate_privateChatItem
  21. ---@field public gameObject UnityEngine.GameObject
  22. ---@field public rectTransform UnityEngine.RectTransform
  23. ---@class UIChatPrivate__Generate_scrollView
  24. ---@field public gameObject UnityEngine.GameObject
  25. ---@field public loopListView SuperScrollView.LoopListView
  26. ---@field public uIEventTriggerListener UIEventTriggerListener
  27. ---@class UIChatPrivate__Generate_btnClose
  28. ---@field public gameObject UnityEngine.GameObject
  29. ---@field public button UnityEngine.UI.Button
  30. ---@class UIChatPrivate__Generate_btnLog
  31. ---@field public gameObject UnityEngine.GameObject
  32. ---@field public button UnityEngine.UI.Button
  33. ---@class UIChatPrivate__Generate_AnyBtn
  34. ---@field public gameObject UnityEngine.GameObject
  35. ---@field public button UnityEngine.UI.Button
  36. ---@class UIChatPrivate__Generate
  37. ---@field private gameObject UnityEngine.GameObject
  38. ---@field private transform UnityEngine.Transform
  39. ---@field private AnyBtn UIChatPrivate__Generate_AnyBtn
  40. ---@field private btnLog UIChatPrivate__Generate_btnLog
  41. ---@field private btnClose UIChatPrivate__Generate_btnClose
  42. ---@field private empty UnityEngine.GameObject
  43. ---@field private exist UnityEngine.GameObject
  44. ---@field private scrollView UIChatPrivate__Generate_scrollView
  45. ---@field private privateChatItem UIChatPrivate__Generate_privateChatItem
  46. ---@field private inputField UIChatPrivate__Generate_inputField
  47. ---@field private btnEmoji UIChatPrivate__Generate_btnEmoji
  48. ---@field private btnSend UIChatPrivate__Generate_btnSend
  49. ---@field private headList UIChatPrivate__Generate_headList
  50. ---@field private headItem UIChatPrivate__Generate_headItem
  51. ---@field private emojiWindow UIChatPrivate__Generate_emojiWindow
  52. ---@field private emojiItem UnityEngine.GameObject
  53. local UIChatPrivateView = class("UIChatPrivateView", require("UIViewBase"))
  54. function UIChatPrivateView:ctor()
  55. end
  56. ---@private
  57. function UIChatPrivateView:SetActive(result)
  58. self.gameObject:SetActive(result)
  59. end
  60. ---@private
  61. function UIChatPrivateView:InitGenerate(Root, data)
  62. self.transform = Root
  63. self.inited = true
  64. if self.super.Init then
  65. self.super.Init(self)
  66. end
  67. local tmp
  68. self:InitGenerate__1(Root,data)
  69. self:InitGenerate__2(Root,data)
  70. self:InitGenerate__3(Root,data)
  71. self:InitGenerate__4(Root,data)
  72. self:InitGenerate__5(Root,data)
  73. self:InitGenerate__6(Root,data)
  74. self:InitGenerate__7(Root,data)
  75. self:InitGenerate__8(Root,data)
  76. self:InitGenerate__9(Root,data)
  77. self:InitGenerate__10(Root,data)
  78. self:InitGenerate__11(Root,data)
  79. self:InitGenerate__12(Root,data)
  80. self:InitGenerate__13(Root,data)
  81. self:InitGenerate__14(Root,data)
  82. self:InitGenerate__15(Root,data)
  83. end
  84. ---@private
  85. function UIChatPrivateView:InitGenerate__1(Root, data)
  86. --[[
  87. Alpha
  88. --]]
  89. local tmp = Root:Find("Alpha").gameObject
  90. if tolua.getpeer(tmp) == nil then
  91. tolua.setpeer(tmp, {})
  92. end
  93. self.AnyBtn = tmp
  94. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  95. end
  96. ---@private
  97. function UIChatPrivateView:InitGenerate__2(Root, data)
  98. --[[
  99. Window/BtnLog
  100. --]]
  101. local tmp = Root:Find("Window/BtnLog").gameObject
  102. if tolua.getpeer(tmp) == nil then
  103. tolua.setpeer(tmp, {})
  104. end
  105. self.btnLog = tmp
  106. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  107. end
  108. ---@private
  109. function UIChatPrivateView:InitGenerate__3(Root, data)
  110. --[[
  111. Window/BtnClose
  112. --]]
  113. local tmp = Root:Find("Window/BtnClose").gameObject
  114. if tolua.getpeer(tmp) == nil then
  115. tolua.setpeer(tmp, {})
  116. end
  117. self.btnClose = tmp
  118. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  119. end
  120. ---@private
  121. function UIChatPrivateView:InitGenerate__4(Root, data)
  122. --[[
  123. Window/empty
  124. --]]
  125. local tmp = Root:Find("Window/empty").gameObject
  126. if tolua.getpeer(tmp) == nil then
  127. tolua.setpeer(tmp, {})
  128. end
  129. self.empty = tmp
  130. end
  131. ---@private
  132. function UIChatPrivateView:InitGenerate__5(Root, data)
  133. --[[
  134. Window/exist
  135. --]]
  136. local tmp = Root:Find("Window/exist").gameObject
  137. if tolua.getpeer(tmp) == nil then
  138. tolua.setpeer(tmp, {})
  139. end
  140. self.exist = tmp
  141. end
  142. ---@private
  143. function UIChatPrivateView:InitGenerate__6(Root, data)
  144. --[[
  145. Window/exist/Scroll View
  146. --]]
  147. local tmp = Root:Find("Window/exist/Scroll View").gameObject
  148. if tolua.getpeer(tmp) == nil then
  149. tolua.setpeer(tmp, {})
  150. end
  151. self.scrollView = tmp
  152. tmp.loopListView = tmp:GetComponent(Enum.TypeInfo.LoopListView)
  153. tmp.uIEventTriggerListener = tmp:GetComponent(Enum.TypeInfo.UIEventTriggerListener)
  154. end
  155. ---@private
  156. function UIChatPrivateView:InitGenerate__7(Root, data)
  157. --[[
  158. Window/exist/Scroll View/Viewport/PrivateChatItem
  159. --]]
  160. local tmp = Root:Find("Window/exist/Scroll View/Viewport/PrivateChatItem").gameObject
  161. if tolua.getpeer(tmp) == nil then
  162. tolua.setpeer(tmp, {})
  163. end
  164. self.privateChatItem = CommonUtil.BindGridViewItem2LuaStatic("PrivateChatItem", tmp)
  165. self.privateChatItem.prefabName = "PrivateChatItem"
  166. tmp.rectTransform = tmp:GetComponent(Enum.TypeInfo.RectTransform)
  167. end
  168. ---@private
  169. function UIChatPrivateView:InitGenerate__8(Root, data)
  170. --[[
  171. Window/exist/Input/InputField
  172. --]]
  173. local tmp = Root:Find("Window/exist/Input/InputField").gameObject
  174. if tolua.getpeer(tmp) == nil then
  175. tolua.setpeer(tmp, {})
  176. end
  177. self.inputField = tmp
  178. tmp.inputField = tmp:GetComponent(Enum.TypeInfo.InputField)
  179. end
  180. ---@private
  181. function UIChatPrivateView:InitGenerate__9(Root, data)
  182. --[[
  183. Window/exist/Input/BtnEmoji
  184. --]]
  185. local tmp = Root:Find("Window/exist/Input/BtnEmoji").gameObject
  186. if tolua.getpeer(tmp) == nil then
  187. tolua.setpeer(tmp, {})
  188. end
  189. self.btnEmoji = tmp
  190. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  191. end
  192. ---@private
  193. function UIChatPrivateView:InitGenerate__10(Root, data)
  194. --[[
  195. Window/exist/Input/BtnSend
  196. --]]
  197. local tmp = Root:Find("Window/exist/Input/BtnSend").gameObject
  198. if tolua.getpeer(tmp) == nil then
  199. tolua.setpeer(tmp, {})
  200. end
  201. self.btnSend = tmp
  202. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  203. end
  204. ---@private
  205. function UIChatPrivateView:InitGenerate__11(Root, data)
  206. --[[
  207. Window/exist/HeadList
  208. --]]
  209. local tmp = Root:Find("Window/exist/HeadList").gameObject
  210. if tolua.getpeer(tmp) == nil then
  211. tolua.setpeer(tmp, {})
  212. end
  213. self.headList = tmp
  214. tmp.loopVerticalScrollRect = tmp:GetComponent(Enum.TypeInfo.LoopVerticalScrollRect)
  215. end
  216. ---@private
  217. function UIChatPrivateView:InitGenerate__12(Root, data)
  218. --[[
  219. Window/exist/HeadList/Viewport/ChatTarget/HeadBox/HeadItem
  220. --]]
  221. local tmp = Root:Find("Window/exist/HeadList/Viewport/ChatTarget/HeadBox/HeadItem").gameObject
  222. if tolua.getpeer(tmp) == nil then
  223. tolua.setpeer(tmp, {})
  224. end
  225. self.headItem = CommonUtil.BindGridViewItem2LuaStatic("HeadItem", tmp)
  226. self.headItem.prefabName = "HeadItem"
  227. tmp.layoutElement = tmp:GetComponent(Enum.TypeInfo.LayoutElement)
  228. end
  229. ---@private
  230. function UIChatPrivateView:InitGenerate__13(Root, data)
  231. --[[
  232. Window/exist/EmojiWindow
  233. --]]
  234. local tmp = Root:Find("Window/exist/EmojiWindow").gameObject
  235. if tolua.getpeer(tmp) == nil then
  236. tolua.setpeer(tmp, {})
  237. end
  238. self.emojiWindow = tmp
  239. tmp.loopVerticalScrollRect = tmp:GetComponent(Enum.TypeInfo.LoopVerticalScrollRect)
  240. end
  241. ---@private
  242. function UIChatPrivateView:InitGenerate__14(Root, data)
  243. --[[
  244. Window/exist/EmojiWindow/Viewport/Content
  245. --]]
  246. local tmp = Root:Find("Window/exist/EmojiWindow/Viewport/Content").gameObject
  247. if tolua.getpeer(tmp) == nil then
  248. tolua.setpeer(tmp, {})
  249. end
  250. self.emojiWindow.content = tmp
  251. end
  252. ---@private
  253. function UIChatPrivateView:InitGenerate__15(Root, data)
  254. --[[
  255. Window/exist/emojiItem
  256. --]]
  257. local tmp = Root:Find("Window/exist/emojiItem").gameObject
  258. if tolua.getpeer(tmp) == nil then
  259. tolua.setpeer(tmp, {})
  260. end
  261. self.emojiItem = tmp
  262. end
  263. ---@private
  264. function UIChatPrivateView:GenerateDestroy()
  265. if tolua.getpeer(self.emojiWindow.content) ~= nil then
  266. tolua.setpeer(self.emojiWindow.content, nil)
  267. end
  268. if tolua.getpeer(self.AnyBtn) ~= nil then
  269. tolua.setpeer(self.AnyBtn, nil)
  270. end
  271. self.AnyBtn = nil
  272. if tolua.getpeer(self.btnLog) ~= nil then
  273. tolua.setpeer(self.btnLog, nil)
  274. end
  275. self.btnLog = nil
  276. if tolua.getpeer(self.btnClose) ~= nil then
  277. tolua.setpeer(self.btnClose, nil)
  278. end
  279. self.btnClose = nil
  280. if tolua.getpeer(self.empty) ~= nil then
  281. tolua.setpeer(self.empty, nil)
  282. end
  283. self.empty = nil
  284. if tolua.getpeer(self.exist) ~= nil then
  285. tolua.setpeer(self.exist, nil)
  286. end
  287. self.exist = nil
  288. if tolua.getpeer(self.scrollView) ~= nil then
  289. tolua.setpeer(self.scrollView, nil)
  290. end
  291. self.scrollView = nil
  292. if self.privateChatItem.GenerateDestroy ~= nil then
  293. self.privateChatItem:GenerateDestroy()
  294. end
  295. if tolua.getpeer(self.privateChatItem) ~= nil then
  296. tolua.setpeer(self.privateChatItem, nil)
  297. end
  298. self.privateChatItem = nil
  299. if tolua.getpeer(self.inputField) ~= nil then
  300. tolua.setpeer(self.inputField, nil)
  301. end
  302. self.inputField = nil
  303. if tolua.getpeer(self.btnEmoji) ~= nil then
  304. tolua.setpeer(self.btnEmoji, nil)
  305. end
  306. self.btnEmoji = nil
  307. if tolua.getpeer(self.btnSend) ~= nil then
  308. tolua.setpeer(self.btnSend, nil)
  309. end
  310. self.btnSend = nil
  311. if tolua.getpeer(self.headList) ~= nil then
  312. tolua.setpeer(self.headList, nil)
  313. end
  314. self.headList = nil
  315. if self.headItem.GenerateDestroy ~= nil then
  316. self.headItem:GenerateDestroy()
  317. end
  318. if tolua.getpeer(self.headItem) ~= nil then
  319. tolua.setpeer(self.headItem, nil)
  320. end
  321. self.headItem = nil
  322. if tolua.getpeer(self.emojiWindow) ~= nil then
  323. tolua.setpeer(self.emojiWindow, nil)
  324. end
  325. self.emojiWindow = nil
  326. if tolua.getpeer(self.emojiItem) ~= nil then
  327. tolua.setpeer(self.emojiItem, nil)
  328. end
  329. self.emojiItem = nil
  330. self.transform = nil
  331. self.gameObject = nil
  332. self.inited = false
  333. end
  334. return UIChatPrivateView