UIAntiCheatMsgWndView_Generate.lua 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414
  1. ---@class UIAntiCheatMsgWnd__Generate_text
  2. ---@field public gameObject UnityEngine.GameObject
  3. ---@field public uILocalizeScript UILocalizeScript
  4. ---@class UIAntiCheatMsgWnd__Generate_btnQuit
  5. ---@field public gameObject UnityEngine.GameObject
  6. ---@field public button UnityEngine.UI.Button
  7. ---@class UIAntiCheatMsgWnd__Generate_btnSure
  8. ---@field public gameObject UnityEngine.GameObject
  9. ---@field public uILocalizeScript UILocalizeScript
  10. ---@class UIAntiCheatMsgWnd__Generate_btnRight
  11. ---@field public gameObject UnityEngine.GameObject
  12. ---@field public button UnityEngine.UI.Button
  13. ---@class UIAntiCheatMsgWnd__Generate_btnCancleText
  14. ---@field public gameObject UnityEngine.GameObject
  15. ---@field public uILocalizeScript UILocalizeScript
  16. ---@class UIAntiCheatMsgWnd__Generate_btnCancle
  17. ---@field public gameObject UnityEngine.GameObject
  18. ---@field public button UnityEngine.UI.Button
  19. ---@class UIAntiCheatMsgWnd__Generate_questionTxt
  20. ---@field public gameObject UnityEngine.GameObject
  21. ---@field public uILocalizeScript UILocalizeScript
  22. ---@class UIAntiCheatMsgWnd__Generate_dscBox_dscTxt
  23. ---@field public gameObject UnityEngine.GameObject
  24. ---@field public uILocalizeScript UILocalizeScript
  25. ---@class UIAntiCheatMsgWnd__Generate_dscBox
  26. ---@field public gameObject UnityEngine.GameObject
  27. ---@field public dscTxt UIAntiCheatMsgWnd__Generate_dscBox_dscTxt
  28. ---@class UIAntiCheatMsgWnd__Generate_noticeTitle
  29. ---@field public gameObject UnityEngine.GameObject
  30. ---@field public uILocalizeScript UILocalizeScript
  31. ---@class UIAntiCheatMsgWnd__Generate_btnClose
  32. ---@field public gameObject UnityEngine.GameObject
  33. ---@field public button UnityEngine.UI.Button
  34. ---@class UIAntiCheatMsgWnd__Generate_AnyBtn
  35. ---@field public gameObject UnityEngine.GameObject
  36. ---@field public button UnityEngine.UI.Button
  37. ---@class UIAntiCheatMsgWnd__Generate_uIAnimator
  38. ---@field public gameObject UnityEngine.GameObject
  39. ---@field public animator UnityEngine.Animator
  40. ---@class UIAntiCheatMsgWnd__Generate
  41. ---@field private gameObject UnityEngine.GameObject
  42. ---@field private transform UnityEngine.Transform
  43. ---@field private uIAnimator UIAntiCheatMsgWnd__Generate_uIAnimator
  44. ---@field private AnyBtn UIAntiCheatMsgWnd__Generate_AnyBtn
  45. ---@field private window UnityEngine.GameObject
  46. ---@field private btnClose UIAntiCheatMsgWnd__Generate_btnClose
  47. ---@field private noticeTitle UIAntiCheatMsgWnd__Generate_noticeTitle
  48. ---@field private dscBox UIAntiCheatMsgWnd__Generate_dscBox
  49. ---@field private btnBox UnityEngine.GameObject
  50. ---@field private title UnityEngine.GameObject
  51. ---@field private questionTxt UIAntiCheatMsgWnd__Generate_questionTxt
  52. ---@field private box UnityEngine.GameObject
  53. ---@field private btnCancle UIAntiCheatMsgWnd__Generate_btnCancle
  54. ---@field private btnCancleText UIAntiCheatMsgWnd__Generate_btnCancleText
  55. ---@field private btnRight UIAntiCheatMsgWnd__Generate_btnRight
  56. ---@field private btnSure UIAntiCheatMsgWnd__Generate_btnSure
  57. ---@field private btnQuit UIAntiCheatMsgWnd__Generate_btnQuit
  58. ---@field private text UIAntiCheatMsgWnd__Generate_text
  59. local UIAntiCheatMsgWndView = class("UIAntiCheatMsgWndView", require("UIViewBase"))
  60. function UIAntiCheatMsgWndView:ctor()
  61. end
  62. ---@private
  63. function UIAntiCheatMsgWndView:SetActive(result)
  64. self.gameObject:SetActive(result)
  65. end
  66. ---@private
  67. function UIAntiCheatMsgWndView: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. self:InitGenerate__15(Root,data)
  89. self:InitGenerate__16(Root,data)
  90. self:InitGenerate__17(Root,data)
  91. end
  92. ---@private
  93. function UIAntiCheatMsgWndView:InitGenerate__1(Root, data)
  94. --[[
  95. UIAnimator
  96. --]]
  97. local tmp = Root:Find("UIAnimator").gameObject
  98. if tolua.getpeer(tmp) == nil then
  99. tolua.setpeer(tmp, {})
  100. end
  101. self.uIAnimator = tmp
  102. tmp.animator = tmp:GetComponent(Enum.TypeInfo.Animator)
  103. tmp.animator.logWarnings = false
  104. end
  105. ---@private
  106. function UIAntiCheatMsgWndView:InitGenerate__2(Root, data)
  107. --[[
  108. UIAnimator/Alpha
  109. --]]
  110. local tmp = Root:Find("UIAnimator/Alpha").gameObject
  111. if tolua.getpeer(tmp) == nil then
  112. tolua.setpeer(tmp, {})
  113. end
  114. self.AnyBtn = tmp
  115. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  116. end
  117. ---@private
  118. function UIAntiCheatMsgWndView:InitGenerate__3(Root, data)
  119. --[[
  120. UIAnimator/Window
  121. --]]
  122. local tmp = Root:Find("UIAnimator/Window").gameObject
  123. if tolua.getpeer(tmp) == nil then
  124. tolua.setpeer(tmp, {})
  125. end
  126. self.window = tmp
  127. end
  128. ---@private
  129. function UIAntiCheatMsgWndView:InitGenerate__4(Root, data)
  130. --[[
  131. UIAnimator/Window/BtnClose
  132. --]]
  133. local tmp = Root:Find("UIAnimator/Window/BtnClose").gameObject
  134. if tolua.getpeer(tmp) == nil then
  135. tolua.setpeer(tmp, {})
  136. end
  137. self.btnClose = tmp
  138. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  139. end
  140. ---@private
  141. function UIAntiCheatMsgWndView:InitGenerate__5(Root, data)
  142. --[[
  143. UIAnimator/Window/NoticeTitle
  144. --]]
  145. local tmp = Root:Find("UIAnimator/Window/NoticeTitle").gameObject
  146. if tolua.getpeer(tmp) == nil then
  147. tolua.setpeer(tmp, {})
  148. end
  149. self.noticeTitle = tmp
  150. tmp.uILocalizeScript = tmp:GetComponent(Enum.TypeInfo.UILocalizeScript)
  151. end
  152. ---@private
  153. function UIAntiCheatMsgWndView:InitGenerate__6(Root, data)
  154. --[[
  155. UIAnimator/Window/DscBox
  156. --]]
  157. local tmp = Root:Find("UIAnimator/Window/DscBox").gameObject
  158. if tolua.getpeer(tmp) == nil then
  159. tolua.setpeer(tmp, {})
  160. end
  161. self.dscBox = tmp
  162. end
  163. ---@private
  164. function UIAntiCheatMsgWndView:InitGenerate__7(Root, data)
  165. --[[
  166. UIAnimator/Window/DscBox/DscTxt
  167. --]]
  168. local tmp = Root:Find("UIAnimator/Window/DscBox/DscTxt").gameObject
  169. if tolua.getpeer(tmp) == nil then
  170. tolua.setpeer(tmp, {})
  171. end
  172. self.dscBox.dscTxt = tmp
  173. tmp.uILocalizeScript = tmp:GetComponent(Enum.TypeInfo.UILocalizeScript)
  174. end
  175. ---@private
  176. function UIAntiCheatMsgWndView:InitGenerate__8(Root, data)
  177. --[[
  178. UIAnimator/Window/BtnBox
  179. --]]
  180. local tmp = Root:Find("UIAnimator/Window/BtnBox").gameObject
  181. if tolua.getpeer(tmp) == nil then
  182. tolua.setpeer(tmp, {})
  183. end
  184. self.btnBox = tmp
  185. end
  186. ---@private
  187. function UIAntiCheatMsgWndView:InitGenerate__9(Root, data)
  188. --[[
  189. UIAnimator/Window/BtnBox/Title
  190. --]]
  191. local tmp = Root:Find("UIAnimator/Window/BtnBox/Title").gameObject
  192. if tolua.getpeer(tmp) == nil then
  193. tolua.setpeer(tmp, {})
  194. end
  195. self.title = tmp
  196. end
  197. ---@private
  198. function UIAntiCheatMsgWndView:InitGenerate__10(Root, data)
  199. --[[
  200. UIAnimator/Window/BtnBox/Title/QuestionTxt
  201. --]]
  202. local tmp = Root:Find("UIAnimator/Window/BtnBox/Title/QuestionTxt").gameObject
  203. if tolua.getpeer(tmp) == nil then
  204. tolua.setpeer(tmp, {})
  205. end
  206. self.questionTxt = tmp
  207. tmp.uILocalizeScript = tmp:GetComponent(Enum.TypeInfo.UILocalizeScript)
  208. end
  209. ---@private
  210. function UIAntiCheatMsgWndView:InitGenerate__11(Root, data)
  211. --[[
  212. UIAnimator/Window/BtnBox/Box
  213. --]]
  214. local tmp = Root:Find("UIAnimator/Window/BtnBox/Box").gameObject
  215. if tolua.getpeer(tmp) == nil then
  216. tolua.setpeer(tmp, {})
  217. end
  218. self.box = tmp
  219. end
  220. ---@private
  221. function UIAntiCheatMsgWndView:InitGenerate__12(Root, data)
  222. --[[
  223. UIAnimator/Window/BtnBox/Box/BtnCancle
  224. --]]
  225. local tmp = Root:Find("UIAnimator/Window/BtnBox/Box/BtnCancle").gameObject
  226. if tolua.getpeer(tmp) == nil then
  227. tolua.setpeer(tmp, {})
  228. end
  229. self.btnCancle = tmp
  230. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  231. end
  232. ---@private
  233. function UIAntiCheatMsgWndView:InitGenerate__13(Root, data)
  234. --[[
  235. UIAnimator/Window/BtnBox/Box/BtnCancle/Text
  236. --]]
  237. local tmp = Root:Find("UIAnimator/Window/BtnBox/Box/BtnCancle/Text").gameObject
  238. if tolua.getpeer(tmp) == nil then
  239. tolua.setpeer(tmp, {})
  240. end
  241. self.btnCancleText = tmp
  242. tmp.uILocalizeScript = tmp:GetComponent(Enum.TypeInfo.UILocalizeScript)
  243. end
  244. ---@private
  245. function UIAntiCheatMsgWndView:InitGenerate__14(Root, data)
  246. --[[
  247. UIAnimator/Window/BtnBox/Box/BtnRight
  248. --]]
  249. local tmp = Root:Find("UIAnimator/Window/BtnBox/Box/BtnRight").gameObject
  250. if tolua.getpeer(tmp) == nil then
  251. tolua.setpeer(tmp, {})
  252. end
  253. self.btnRight = tmp
  254. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  255. end
  256. ---@private
  257. function UIAntiCheatMsgWndView:InitGenerate__15(Root, data)
  258. --[[
  259. UIAnimator/Window/BtnBox/Box/BtnRight/Text
  260. --]]
  261. local tmp = Root:Find("UIAnimator/Window/BtnBox/Box/BtnRight/Text").gameObject
  262. if tolua.getpeer(tmp) == nil then
  263. tolua.setpeer(tmp, {})
  264. end
  265. self.btnSure = tmp
  266. tmp.uILocalizeScript = tmp:GetComponent(Enum.TypeInfo.UILocalizeScript)
  267. end
  268. ---@private
  269. function UIAntiCheatMsgWndView:InitGenerate__16(Root, data)
  270. --[[
  271. UIAnimator/Window/BtnBox/Box/BtnQuit
  272. --]]
  273. local tmp = Root:Find("UIAnimator/Window/BtnBox/Box/BtnQuit").gameObject
  274. if tolua.getpeer(tmp) == nil then
  275. tolua.setpeer(tmp, {})
  276. end
  277. self.btnQuit = tmp
  278. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  279. end
  280. ---@private
  281. function UIAntiCheatMsgWndView:InitGenerate__17(Root, data)
  282. --[[
  283. UIAnimator/Window/BtnBox/Box/BtnQuit/Text
  284. --]]
  285. local tmp = Root:Find("UIAnimator/Window/BtnBox/Box/BtnQuit/Text").gameObject
  286. if tolua.getpeer(tmp) == nil then
  287. tolua.setpeer(tmp, {})
  288. end
  289. self.text = tmp
  290. tmp.uILocalizeScript = tmp:GetComponent(Enum.TypeInfo.UILocalizeScript)
  291. end
  292. ---@private
  293. function UIAntiCheatMsgWndView:GenerateDestroy()
  294. if tolua.getpeer(self.dscBox.dscTxt) ~= nil then
  295. tolua.setpeer(self.dscBox.dscTxt, nil)
  296. end
  297. if tolua.getpeer(self.uIAnimator) ~= nil then
  298. tolua.setpeer(self.uIAnimator, nil)
  299. end
  300. self.uIAnimator = nil
  301. if tolua.getpeer(self.AnyBtn) ~= nil then
  302. tolua.setpeer(self.AnyBtn, nil)
  303. end
  304. self.AnyBtn = nil
  305. if tolua.getpeer(self.window) ~= nil then
  306. tolua.setpeer(self.window, nil)
  307. end
  308. self.window = nil
  309. if tolua.getpeer(self.btnClose) ~= nil then
  310. tolua.setpeer(self.btnClose, nil)
  311. end
  312. self.btnClose = nil
  313. if tolua.getpeer(self.noticeTitle) ~= nil then
  314. tolua.setpeer(self.noticeTitle, nil)
  315. end
  316. self.noticeTitle = nil
  317. if tolua.getpeer(self.dscBox) ~= nil then
  318. tolua.setpeer(self.dscBox, nil)
  319. end
  320. self.dscBox = nil
  321. if tolua.getpeer(self.btnBox) ~= nil then
  322. tolua.setpeer(self.btnBox, nil)
  323. end
  324. self.btnBox = nil
  325. if tolua.getpeer(self.title) ~= nil then
  326. tolua.setpeer(self.title, nil)
  327. end
  328. self.title = nil
  329. if tolua.getpeer(self.questionTxt) ~= nil then
  330. tolua.setpeer(self.questionTxt, nil)
  331. end
  332. self.questionTxt = nil
  333. if tolua.getpeer(self.box) ~= nil then
  334. tolua.setpeer(self.box, nil)
  335. end
  336. self.box = nil
  337. if tolua.getpeer(self.btnCancle) ~= nil then
  338. tolua.setpeer(self.btnCancle, nil)
  339. end
  340. self.btnCancle = nil
  341. if tolua.getpeer(self.btnCancleText) ~= nil then
  342. tolua.setpeer(self.btnCancleText, nil)
  343. end
  344. self.btnCancleText = nil
  345. if tolua.getpeer(self.btnRight) ~= nil then
  346. tolua.setpeer(self.btnRight, nil)
  347. end
  348. self.btnRight = nil
  349. if tolua.getpeer(self.btnSure) ~= nil then
  350. tolua.setpeer(self.btnSure, nil)
  351. end
  352. self.btnSure = nil
  353. if tolua.getpeer(self.btnQuit) ~= nil then
  354. tolua.setpeer(self.btnQuit, nil)
  355. end
  356. self.btnQuit = nil
  357. if tolua.getpeer(self.text) ~= nil then
  358. tolua.setpeer(self.text, nil)
  359. end
  360. self.text = nil
  361. self.transform = nil
  362. self.gameObject = nil
  363. self.inited = false
  364. end
  365. return UIAntiCheatMsgWndView