PrivateChatItem_Generate.lua 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408
  1. ---@class PrivateChatItem__Generate_chatBubbleRgtItem_helpText1
  2. ---@field public gameObject UnityEngine.GameObject
  3. ---@field public rectTransform UnityEngine.RectTransform
  4. ---@field public contentSizeFitter UnityEngine.UI.ContentSizeFitter
  5. ---@field public symbolText WXB.SymbolText
  6. ---@field public symbolTextEvent WXB.SymbolTextEvent
  7. ---@class PrivateChatItem__Generate_chatBubbleRgtItem_helpText
  8. ---@field public gameObject UnityEngine.GameObject
  9. ---@field public rectTransform UnityEngine.RectTransform
  10. ---@field public contentSizeFitter UnityEngine.UI.ContentSizeFitter
  11. ---@field public symbolText WXB.SymbolText
  12. ---@class PrivateChatItem__Generate_chatBubbleRgtItem_helpBg
  13. ---@field public gameObject UnityEngine.GameObject
  14. ---@field public rectTransform UnityEngine.RectTransform
  15. ---@class PrivateChatItem__Generate_chatBubbleRgtItem_text
  16. ---@field public gameObject UnityEngine.GameObject
  17. ---@field public rectTransform UnityEngine.RectTransform
  18. ---@field public contentSizeFitter UnityEngine.UI.ContentSizeFitter
  19. ---@field public symbolText WXB.SymbolText
  20. ---@class PrivateChatItem__Generate_chatBubbleRgtItem_bg
  21. ---@field public gameObject UnityEngine.GameObject
  22. ---@field public rectTransform UnityEngine.RectTransform
  23. ---@class PrivateChatItem__Generate_chatBubbleRgtItem
  24. ---@field public gameObject UnityEngine.GameObject
  25. ---@field public rectTransform UnityEngine.RectTransform
  26. ---@field public bg PrivateChatItem__Generate_chatBubbleRgtItem_bg
  27. ---@field public text PrivateChatItem__Generate_chatBubbleRgtItem_text
  28. ---@field public helpBg PrivateChatItem__Generate_chatBubbleRgtItem_helpBg
  29. ---@field public helpText PrivateChatItem__Generate_chatBubbleRgtItem_helpText
  30. ---@field public helpText1 PrivateChatItem__Generate_chatBubbleRgtItem_helpText1
  31. ---@class PrivateChatItem__Generate_chatBubbleLftItem_helpText1
  32. ---@field public gameObject UnityEngine.GameObject
  33. ---@field public rectTransform UnityEngine.RectTransform
  34. ---@field public contentSizeFitter UnityEngine.UI.ContentSizeFitter
  35. ---@field public symbolText WXB.SymbolText
  36. ---@field public symbolTextEvent WXB.SymbolTextEvent
  37. ---@class PrivateChatItem__Generate_chatBubbleLftItem_helpText
  38. ---@field public gameObject UnityEngine.GameObject
  39. ---@field public rectTransform UnityEngine.RectTransform
  40. ---@field public contentSizeFitter UnityEngine.UI.ContentSizeFitter
  41. ---@field public symbolText WXB.SymbolText
  42. ---@class PrivateChatItem__Generate_chatBubbleLftItem_helpBg
  43. ---@field public gameObject UnityEngine.GameObject
  44. ---@field public rectTransform UnityEngine.RectTransform
  45. ---@class PrivateChatItem__Generate_chatBubbleLftItem_text
  46. ---@field public gameObject UnityEngine.GameObject
  47. ---@field public rectTransform UnityEngine.RectTransform
  48. ---@field public contentSizeFitter UnityEngine.UI.ContentSizeFitter
  49. ---@field public symbolText WXB.SymbolText
  50. ---@class PrivateChatItem__Generate_chatBubbleLftItem_bg
  51. ---@field public gameObject UnityEngine.GameObject
  52. ---@field public rectTransform UnityEngine.RectTransform
  53. ---@class PrivateChatItem__Generate_chatBubbleLftItem
  54. ---@field public gameObject UnityEngine.GameObject
  55. ---@field public rectTransform UnityEngine.RectTransform
  56. ---@field public bg PrivateChatItem__Generate_chatBubbleLftItem_bg
  57. ---@field public text PrivateChatItem__Generate_chatBubbleLftItem_text
  58. ---@field public helpBg PrivateChatItem__Generate_chatBubbleLftItem_helpBg
  59. ---@field public helpText PrivateChatItem__Generate_chatBubbleLftItem_helpText
  60. ---@field public helpText1 PrivateChatItem__Generate_chatBubbleLftItem_helpText1
  61. ---@class PrivateChatItem__Generate_chatTimeStampItem_text
  62. ---@field public gameObject UnityEngine.GameObject
  63. ---@field public text UnityEngine.UI.Text
  64. ---@class PrivateChatItem__Generate_chatTimeStampItem
  65. ---@field public gameObject UnityEngine.GameObject
  66. ---@field public rectTransform UnityEngine.RectTransform
  67. ---@field public text PrivateChatItem__Generate_chatTimeStampItem_text
  68. ---@class PrivateChatItem__Generate
  69. ---@field private gameObject UnityEngine.GameObject
  70. ---@field private transform UnityEngine.Transform
  71. ---@field private rectTransform UnityEngine.RectTransform
  72. ---@field private chatTimeStampItem PrivateChatItem__Generate_chatTimeStampItem
  73. ---@field private chatBubbleLftItem PrivateChatItem__Generate_chatBubbleLftItem
  74. ---@field private chatBubbleRgtItem PrivateChatItem__Generate_chatBubbleRgtItem
  75. local PrivateChatItemView = class("PrivateChatItemView")
  76. function PrivateChatItemView:ctor()
  77. end
  78. ---@private
  79. function PrivateChatItemView:SetActive(result)
  80. self.gameObject:SetActive(result)
  81. end
  82. ---@private
  83. function PrivateChatItemView:InitGenerate(Root, data)
  84. self.transform = Root
  85. self.inited = true
  86. local tmp
  87. self:InitGenerate__1(Root,data)
  88. self:InitGenerate__2(Root,data)
  89. self:InitGenerate__3(Root,data)
  90. self:InitGenerate__4(Root,data)
  91. self:InitGenerate__5(Root,data)
  92. self:InitGenerate__6(Root,data)
  93. self:InitGenerate__7(Root,data)
  94. self:InitGenerate__8(Root,data)
  95. self:InitGenerate__9(Root,data)
  96. self:InitGenerate__10(Root,data)
  97. self:InitGenerate__11(Root,data)
  98. self:InitGenerate__12(Root,data)
  99. self:InitGenerate__13(Root,data)
  100. self:InitGenerate__14(Root,data)
  101. self:InitGenerate__15(Root,data)
  102. end
  103. ---@private
  104. function PrivateChatItemView:InitGenerate__1(Root, data)
  105. --[[
  106. Root
  107. --]]
  108. self.rectTransform = Root:GetComponent(Enum.TypeInfo.RectTransform)
  109. end
  110. ---@private
  111. function PrivateChatItemView:InitGenerate__2(Root, data)
  112. --[[
  113. ChatTimeStampItem
  114. --]]
  115. local tmp = Root:Find("ChatTimeStampItem").gameObject
  116. if tolua.getpeer(tmp) == nil then
  117. tolua.setpeer(tmp, {})
  118. end
  119. self.chatTimeStampItem = tmp
  120. tmp.rectTransform = tmp:GetComponent(Enum.TypeInfo.RectTransform)
  121. end
  122. ---@private
  123. function PrivateChatItemView:InitGenerate__3(Root, data)
  124. --[[
  125. ChatTimeStampItem/BG/Text
  126. --]]
  127. local tmp = Root:Find("ChatTimeStampItem/BG/Text").gameObject
  128. if tolua.getpeer(tmp) == nil then
  129. tolua.setpeer(tmp, {})
  130. end
  131. self.chatTimeStampItem.text = tmp
  132. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  133. end
  134. ---@private
  135. function PrivateChatItemView:InitGenerate__4(Root, data)
  136. --[[
  137. ChatBubbleLftItem
  138. --]]
  139. local tmp = Root:Find("ChatBubbleLftItem").gameObject
  140. if tolua.getpeer(tmp) == nil then
  141. tolua.setpeer(tmp, {})
  142. end
  143. self.chatBubbleLftItem = tmp
  144. tmp.rectTransform = tmp:GetComponent(Enum.TypeInfo.RectTransform)
  145. end
  146. ---@private
  147. function PrivateChatItemView:InitGenerate__5(Root, data)
  148. --[[
  149. ChatBubbleLftItem/Bg
  150. --]]
  151. local tmp = Root:Find("ChatBubbleLftItem/Bg").gameObject
  152. if tolua.getpeer(tmp) == nil then
  153. tolua.setpeer(tmp, {})
  154. end
  155. self.chatBubbleLftItem.bg = tmp
  156. tmp.rectTransform = tmp:GetComponent(Enum.TypeInfo.RectTransform)
  157. end
  158. ---@private
  159. function PrivateChatItemView:InitGenerate__6(Root, data)
  160. --[[
  161. ChatBubbleLftItem/Bg/Text
  162. --]]
  163. local tmp = Root:Find("ChatBubbleLftItem/Bg/Text").gameObject
  164. if tolua.getpeer(tmp) == nil then
  165. tolua.setpeer(tmp, {})
  166. end
  167. self.chatBubbleLftItem.text = tmp
  168. tmp.rectTransform = tmp:GetComponent(Enum.TypeInfo.RectTransform)
  169. tmp.contentSizeFitter = tmp:GetComponent(Enum.TypeInfo.ContentSizeFitter)
  170. tmp.symbolText = tmp:GetComponent(Enum.TypeInfo.SymbolText)
  171. end
  172. ---@private
  173. function PrivateChatItemView:InitGenerate__7(Root, data)
  174. --[[
  175. ChatBubbleLftItem/HelpBg
  176. --]]
  177. local tmp = Root:Find("ChatBubbleLftItem/HelpBg").gameObject
  178. if tolua.getpeer(tmp) == nil then
  179. tolua.setpeer(tmp, {})
  180. end
  181. self.chatBubbleLftItem.helpBg = tmp
  182. tmp.rectTransform = tmp:GetComponent(Enum.TypeInfo.RectTransform)
  183. end
  184. ---@private
  185. function PrivateChatItemView:InitGenerate__8(Root, data)
  186. --[[
  187. ChatBubbleLftItem/HelpBg/HelpText
  188. --]]
  189. local tmp = Root:Find("ChatBubbleLftItem/HelpBg/HelpText").gameObject
  190. if tolua.getpeer(tmp) == nil then
  191. tolua.setpeer(tmp, {})
  192. end
  193. self.chatBubbleLftItem.helpText = tmp
  194. tmp.rectTransform = tmp:GetComponent(Enum.TypeInfo.RectTransform)
  195. tmp.contentSizeFitter = tmp:GetComponent(Enum.TypeInfo.ContentSizeFitter)
  196. tmp.symbolText = tmp:GetComponent(Enum.TypeInfo.SymbolText)
  197. end
  198. ---@private
  199. function PrivateChatItemView:InitGenerate__9(Root, data)
  200. --[[
  201. ChatBubbleLftItem/HelpBg/HelpText1
  202. --]]
  203. local tmp = Root:Find("ChatBubbleLftItem/HelpBg/HelpText1").gameObject
  204. if tolua.getpeer(tmp) == nil then
  205. tolua.setpeer(tmp, {})
  206. end
  207. self.chatBubbleLftItem.helpText1 = tmp
  208. tmp.rectTransform = tmp:GetComponent(Enum.TypeInfo.RectTransform)
  209. tmp.contentSizeFitter = tmp:GetComponent(Enum.TypeInfo.ContentSizeFitter)
  210. tmp.symbolText = tmp:GetComponent(Enum.TypeInfo.SymbolText)
  211. tmp.symbolTextEvent = tmp:GetComponent(Enum.TypeInfo.SymbolTextEvent)
  212. end
  213. ---@private
  214. function PrivateChatItemView:InitGenerate__10(Root, data)
  215. --[[
  216. ChatBubbleRgtItem
  217. --]]
  218. local tmp = Root:Find("ChatBubbleRgtItem").gameObject
  219. if tolua.getpeer(tmp) == nil then
  220. tolua.setpeer(tmp, {})
  221. end
  222. self.chatBubbleRgtItem = tmp
  223. tmp.rectTransform = tmp:GetComponent(Enum.TypeInfo.RectTransform)
  224. end
  225. ---@private
  226. function PrivateChatItemView:InitGenerate__11(Root, data)
  227. --[[
  228. ChatBubbleRgtItem/Bg
  229. --]]
  230. local tmp = Root:Find("ChatBubbleRgtItem/Bg").gameObject
  231. if tolua.getpeer(tmp) == nil then
  232. tolua.setpeer(tmp, {})
  233. end
  234. self.chatBubbleRgtItem.bg = tmp
  235. tmp.rectTransform = tmp:GetComponent(Enum.TypeInfo.RectTransform)
  236. end
  237. ---@private
  238. function PrivateChatItemView:InitGenerate__12(Root, data)
  239. --[[
  240. ChatBubbleRgtItem/Bg/Text
  241. --]]
  242. local tmp = Root:Find("ChatBubbleRgtItem/Bg/Text").gameObject
  243. if tolua.getpeer(tmp) == nil then
  244. tolua.setpeer(tmp, {})
  245. end
  246. self.chatBubbleRgtItem.text = tmp
  247. tmp.rectTransform = tmp:GetComponent(Enum.TypeInfo.RectTransform)
  248. tmp.contentSizeFitter = tmp:GetComponent(Enum.TypeInfo.ContentSizeFitter)
  249. tmp.symbolText = tmp:GetComponent(Enum.TypeInfo.SymbolText)
  250. end
  251. ---@private
  252. function PrivateChatItemView:InitGenerate__13(Root, data)
  253. --[[
  254. ChatBubbleRgtItem/HelpBg
  255. --]]
  256. local tmp = Root:Find("ChatBubbleRgtItem/HelpBg").gameObject
  257. if tolua.getpeer(tmp) == nil then
  258. tolua.setpeer(tmp, {})
  259. end
  260. self.chatBubbleRgtItem.helpBg = tmp
  261. tmp.rectTransform = tmp:GetComponent(Enum.TypeInfo.RectTransform)
  262. end
  263. ---@private
  264. function PrivateChatItemView:InitGenerate__14(Root, data)
  265. --[[
  266. ChatBubbleRgtItem/HelpBg/HelpText
  267. --]]
  268. local tmp = Root:Find("ChatBubbleRgtItem/HelpBg/HelpText").gameObject
  269. if tolua.getpeer(tmp) == nil then
  270. tolua.setpeer(tmp, {})
  271. end
  272. self.chatBubbleRgtItem.helpText = tmp
  273. tmp.rectTransform = tmp:GetComponent(Enum.TypeInfo.RectTransform)
  274. tmp.contentSizeFitter = tmp:GetComponent(Enum.TypeInfo.ContentSizeFitter)
  275. tmp.symbolText = tmp:GetComponent(Enum.TypeInfo.SymbolText)
  276. end
  277. ---@private
  278. function PrivateChatItemView:InitGenerate__15(Root, data)
  279. --[[
  280. ChatBubbleRgtItem/HelpBg/HelpText1
  281. --]]
  282. local tmp = Root:Find("ChatBubbleRgtItem/HelpBg/HelpText1").gameObject
  283. if tolua.getpeer(tmp) == nil then
  284. tolua.setpeer(tmp, {})
  285. end
  286. self.chatBubbleRgtItem.helpText1 = tmp
  287. tmp.rectTransform = tmp:GetComponent(Enum.TypeInfo.RectTransform)
  288. tmp.contentSizeFitter = tmp:GetComponent(Enum.TypeInfo.ContentSizeFitter)
  289. tmp.symbolText = tmp:GetComponent(Enum.TypeInfo.SymbolText)
  290. tmp.symbolTextEvent = tmp:GetComponent(Enum.TypeInfo.SymbolTextEvent)
  291. end
  292. ---@private
  293. function PrivateChatItemView:GenerateDestroy()
  294. if tolua.getpeer(self.chatBubbleRgtItem.helpText1) ~= nil then
  295. tolua.setpeer(self.chatBubbleRgtItem.helpText1, nil)
  296. end
  297. if tolua.getpeer(self.chatBubbleRgtItem.helpText) ~= nil then
  298. tolua.setpeer(self.chatBubbleRgtItem.helpText, nil)
  299. end
  300. if tolua.getpeer(self.chatBubbleRgtItem.helpBg) ~= nil then
  301. tolua.setpeer(self.chatBubbleRgtItem.helpBg, nil)
  302. end
  303. if tolua.getpeer(self.chatBubbleRgtItem.text) ~= nil then
  304. tolua.setpeer(self.chatBubbleRgtItem.text, nil)
  305. end
  306. if tolua.getpeer(self.chatBubbleRgtItem.bg) ~= nil then
  307. tolua.setpeer(self.chatBubbleRgtItem.bg, nil)
  308. end
  309. if tolua.getpeer(self.chatBubbleLftItem.helpText1) ~= nil then
  310. tolua.setpeer(self.chatBubbleLftItem.helpText1, nil)
  311. end
  312. if tolua.getpeer(self.chatBubbleLftItem.helpText) ~= nil then
  313. tolua.setpeer(self.chatBubbleLftItem.helpText, nil)
  314. end
  315. if tolua.getpeer(self.chatBubbleLftItem.helpBg) ~= nil then
  316. tolua.setpeer(self.chatBubbleLftItem.helpBg, nil)
  317. end
  318. if tolua.getpeer(self.chatBubbleLftItem.text) ~= nil then
  319. tolua.setpeer(self.chatBubbleLftItem.text, nil)
  320. end
  321. if tolua.getpeer(self.chatBubbleLftItem.bg) ~= nil then
  322. tolua.setpeer(self.chatBubbleLftItem.bg, nil)
  323. end
  324. if tolua.getpeer(self.chatTimeStampItem.text) ~= nil then
  325. tolua.setpeer(self.chatTimeStampItem.text, nil)
  326. end
  327. if tolua.getpeer(self.chatTimeStampItem) ~= nil then
  328. tolua.setpeer(self.chatTimeStampItem, nil)
  329. end
  330. self.chatTimeStampItem = nil
  331. if tolua.getpeer(self.chatBubbleLftItem) ~= nil then
  332. tolua.setpeer(self.chatBubbleLftItem, nil)
  333. end
  334. self.chatBubbleLftItem = nil
  335. if tolua.getpeer(self.chatBubbleRgtItem) ~= nil then
  336. tolua.setpeer(self.chatBubbleRgtItem, nil)
  337. end
  338. self.chatBubbleRgtItem = nil
  339. self.transform = nil
  340. self.gameObject = nil
  341. self.inited = false
  342. end
  343. return PrivateChatItemView