UINoticeTipsView_Generate.lua 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507
  1. ---@class UINoticeTips__Generate_btnOpen_num
  2. ---@field public gameObject UnityEngine.GameObject
  3. ---@field public text UnityEngine.UI.Text
  4. ---@class UINoticeTips__Generate_btnOpen_text
  5. ---@field public gameObject UnityEngine.GameObject
  6. ---@field public uILocalizeScript UILocalizeScript
  7. ---@class UINoticeTips__Generate_btnOpen_icon
  8. ---@field public gameObject UnityEngine.GameObject
  9. ---@field public image UnityEngine.UI.Image
  10. ---@class UINoticeTips__Generate_btnOpen
  11. ---@field public gameObject UnityEngine.GameObject
  12. ---@field public button UnityEngine.UI.Button
  13. ---@field public icon UINoticeTips__Generate_btnOpen_icon
  14. ---@field public text UINoticeTips__Generate_btnOpen_text
  15. ---@field public num UINoticeTips__Generate_btnOpen_num
  16. ---@class UINoticeTips__Generate_text
  17. ---@field public gameObject UnityEngine.GameObject
  18. ---@field public uILocalizeScript UILocalizeScript
  19. ---@class UINoticeTips__Generate_btnQuit
  20. ---@field public gameObject UnityEngine.GameObject
  21. ---@field public button UnityEngine.UI.Button
  22. ---@class UINoticeTips__Generate_btnSure
  23. ---@field public gameObject UnityEngine.GameObject
  24. ---@field public uILocalizeScript UILocalizeScript
  25. ---@class UINoticeTips__Generate_btnRight
  26. ---@field public gameObject UnityEngine.GameObject
  27. ---@field public button UnityEngine.UI.Button
  28. ---@class UINoticeTips__Generate_btnCancleText
  29. ---@field public gameObject UnityEngine.GameObject
  30. ---@field public uILocalizeScript UILocalizeScript
  31. ---@class UINoticeTips__Generate_btnCancle
  32. ---@field public gameObject UnityEngine.GameObject
  33. ---@field public button UnityEngine.UI.Button
  34. ---@class UINoticeTips__Generate_questionTxt
  35. ---@field public gameObject UnityEngine.GameObject
  36. ---@field public uILocalizeScript UILocalizeScript
  37. ---@class UINoticeTips__Generate_dscBox_dscTxt
  38. ---@field public gameObject UnityEngine.GameObject
  39. ---@field public uILocalizeScript UILocalizeScript
  40. ---@class UINoticeTips__Generate_dscBox
  41. ---@field public gameObject UnityEngine.GameObject
  42. ---@field public dscTxt UINoticeTips__Generate_dscBox_dscTxt
  43. ---@class UINoticeTips__Generate_noticeTitle
  44. ---@field public gameObject UnityEngine.GameObject
  45. ---@field public uILocalizeScript UILocalizeScript
  46. ---@class UINoticeTips__Generate_btnClose
  47. ---@field public gameObject UnityEngine.GameObject
  48. ---@field public button UnityEngine.UI.Button
  49. ---@class UINoticeTips__Generate_AnyBtn
  50. ---@field public gameObject UnityEngine.GameObject
  51. ---@field public button UnityEngine.UI.Button
  52. ---@class UINoticeTips__Generate_uIAnimator
  53. ---@field public gameObject UnityEngine.GameObject
  54. ---@field public animator UnityEngine.Animator
  55. ---@class UINoticeTips__Generate
  56. ---@field private gameObject UnityEngine.GameObject
  57. ---@field private transform UnityEngine.Transform
  58. ---@field private uIAnimator UINoticeTips__Generate_uIAnimator
  59. ---@field private AnyBtn UINoticeTips__Generate_AnyBtn
  60. ---@field private window UnityEngine.GameObject
  61. ---@field private btnClose UINoticeTips__Generate_btnClose
  62. ---@field private noticeTitle UINoticeTips__Generate_noticeTitle
  63. ---@field private dscBox UINoticeTips__Generate_dscBox
  64. ---@field private btnBox UnityEngine.GameObject
  65. ---@field private title UnityEngine.GameObject
  66. ---@field private questionTxt UINoticeTips__Generate_questionTxt
  67. ---@field private box UnityEngine.GameObject
  68. ---@field private btnCancle UINoticeTips__Generate_btnCancle
  69. ---@field private btnCancleText UINoticeTips__Generate_btnCancleText
  70. ---@field private btnRight UINoticeTips__Generate_btnRight
  71. ---@field private btnSure UINoticeTips__Generate_btnSure
  72. ---@field private btnQuit UINoticeTips__Generate_btnQuit
  73. ---@field private text UINoticeTips__Generate_text
  74. ---@field private btnOpen UINoticeTips__Generate_btnOpen
  75. local UINoticeTipsView = class("UINoticeTipsView", require("UIViewBase"))
  76. function UINoticeTipsView:ctor()
  77. end
  78. ---@private
  79. function UINoticeTipsView:SetActive(result)
  80. self.gameObject:SetActive(result)
  81. end
  82. ---@private
  83. function UINoticeTipsView:InitGenerate(Root, data)
  84. self.transform = Root
  85. self.inited = true
  86. if self.super.Init then
  87. self.super.Init(self)
  88. end
  89. local tmp
  90. self:InitGenerate__1(Root,data)
  91. self:InitGenerate__2(Root,data)
  92. self:InitGenerate__3(Root,data)
  93. self:InitGenerate__4(Root,data)
  94. self:InitGenerate__5(Root,data)
  95. self:InitGenerate__6(Root,data)
  96. self:InitGenerate__7(Root,data)
  97. self:InitGenerate__8(Root,data)
  98. self:InitGenerate__9(Root,data)
  99. self:InitGenerate__10(Root,data)
  100. self:InitGenerate__11(Root,data)
  101. self:InitGenerate__12(Root,data)
  102. self:InitGenerate__13(Root,data)
  103. self:InitGenerate__14(Root,data)
  104. self:InitGenerate__15(Root,data)
  105. self:InitGenerate__16(Root,data)
  106. self:InitGenerate__17(Root,data)
  107. self:InitGenerate__18(Root,data)
  108. self:InitGenerate__19(Root,data)
  109. self:InitGenerate__20(Root,data)
  110. self:InitGenerate__21(Root,data)
  111. end
  112. ---@private
  113. function UINoticeTipsView:InitGenerate__1(Root, data)
  114. --[[
  115. UIAnimator
  116. --]]
  117. local tmp = Root:Find("UIAnimator").gameObject
  118. if tolua.getpeer(tmp) == nil then
  119. tolua.setpeer(tmp, {})
  120. end
  121. self.uIAnimator = tmp
  122. tmp.animator = tmp:GetComponent(Enum.TypeInfo.Animator)
  123. tmp.animator.logWarnings = false
  124. end
  125. ---@private
  126. function UINoticeTipsView:InitGenerate__2(Root, data)
  127. --[[
  128. UIAnimator/Alpha
  129. --]]
  130. local tmp = Root:Find("UIAnimator/Alpha").gameObject
  131. if tolua.getpeer(tmp) == nil then
  132. tolua.setpeer(tmp, {})
  133. end
  134. self.AnyBtn = tmp
  135. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  136. end
  137. ---@private
  138. function UINoticeTipsView:InitGenerate__3(Root, data)
  139. --[[
  140. UIAnimator/Window
  141. --]]
  142. local tmp = Root:Find("UIAnimator/Window").gameObject
  143. if tolua.getpeer(tmp) == nil then
  144. tolua.setpeer(tmp, {})
  145. end
  146. self.window = tmp
  147. end
  148. ---@private
  149. function UINoticeTipsView:InitGenerate__4(Root, data)
  150. --[[
  151. UIAnimator/Window/BtnClose
  152. --]]
  153. local tmp = Root:Find("UIAnimator/Window/BtnClose").gameObject
  154. if tolua.getpeer(tmp) == nil then
  155. tolua.setpeer(tmp, {})
  156. end
  157. self.btnClose = tmp
  158. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  159. end
  160. ---@private
  161. function UINoticeTipsView:InitGenerate__5(Root, data)
  162. --[[
  163. UIAnimator/Window/NoticeTitle
  164. --]]
  165. local tmp = Root:Find("UIAnimator/Window/NoticeTitle").gameObject
  166. if tolua.getpeer(tmp) == nil then
  167. tolua.setpeer(tmp, {})
  168. end
  169. self.noticeTitle = tmp
  170. tmp.uILocalizeScript = tmp:GetComponent(Enum.TypeInfo.UILocalizeScript)
  171. end
  172. ---@private
  173. function UINoticeTipsView:InitGenerate__6(Root, data)
  174. --[[
  175. UIAnimator/Window/DscBox
  176. --]]
  177. local tmp = Root:Find("UIAnimator/Window/DscBox").gameObject
  178. if tolua.getpeer(tmp) == nil then
  179. tolua.setpeer(tmp, {})
  180. end
  181. self.dscBox = tmp
  182. end
  183. ---@private
  184. function UINoticeTipsView:InitGenerate__7(Root, data)
  185. --[[
  186. UIAnimator/Window/DscBox/DscTxt
  187. --]]
  188. local tmp = Root:Find("UIAnimator/Window/DscBox/DscTxt").gameObject
  189. if tolua.getpeer(tmp) == nil then
  190. tolua.setpeer(tmp, {})
  191. end
  192. self.dscBox.dscTxt = tmp
  193. tmp.uILocalizeScript = tmp:GetComponent(Enum.TypeInfo.UILocalizeScript)
  194. end
  195. ---@private
  196. function UINoticeTipsView:InitGenerate__8(Root, data)
  197. --[[
  198. UIAnimator/Window/BtnBox
  199. --]]
  200. local tmp = Root:Find("UIAnimator/Window/BtnBox").gameObject
  201. if tolua.getpeer(tmp) == nil then
  202. tolua.setpeer(tmp, {})
  203. end
  204. self.btnBox = tmp
  205. end
  206. ---@private
  207. function UINoticeTipsView:InitGenerate__9(Root, data)
  208. --[[
  209. UIAnimator/Window/BtnBox/Title
  210. --]]
  211. local tmp = Root:Find("UIAnimator/Window/BtnBox/Title").gameObject
  212. if tolua.getpeer(tmp) == nil then
  213. tolua.setpeer(tmp, {})
  214. end
  215. self.title = tmp
  216. end
  217. ---@private
  218. function UINoticeTipsView:InitGenerate__10(Root, data)
  219. --[[
  220. UIAnimator/Window/BtnBox/Title/QuestionTxt
  221. --]]
  222. local tmp = Root:Find("UIAnimator/Window/BtnBox/Title/QuestionTxt").gameObject
  223. if tolua.getpeer(tmp) == nil then
  224. tolua.setpeer(tmp, {})
  225. end
  226. self.questionTxt = tmp
  227. tmp.uILocalizeScript = tmp:GetComponent(Enum.TypeInfo.UILocalizeScript)
  228. end
  229. ---@private
  230. function UINoticeTipsView:InitGenerate__11(Root, data)
  231. --[[
  232. UIAnimator/Window/BtnBox/Box
  233. --]]
  234. local tmp = Root:Find("UIAnimator/Window/BtnBox/Box").gameObject
  235. if tolua.getpeer(tmp) == nil then
  236. tolua.setpeer(tmp, {})
  237. end
  238. self.box = tmp
  239. end
  240. ---@private
  241. function UINoticeTipsView:InitGenerate__12(Root, data)
  242. --[[
  243. UIAnimator/Window/BtnBox/Box/BtnCancle
  244. --]]
  245. local tmp = Root:Find("UIAnimator/Window/BtnBox/Box/BtnCancle").gameObject
  246. if tolua.getpeer(tmp) == nil then
  247. tolua.setpeer(tmp, {})
  248. end
  249. self.btnCancle = tmp
  250. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  251. end
  252. ---@private
  253. function UINoticeTipsView:InitGenerate__13(Root, data)
  254. --[[
  255. UIAnimator/Window/BtnBox/Box/BtnCancle/Text
  256. --]]
  257. local tmp = Root:Find("UIAnimator/Window/BtnBox/Box/BtnCancle/Text").gameObject
  258. if tolua.getpeer(tmp) == nil then
  259. tolua.setpeer(tmp, {})
  260. end
  261. self.btnCancleText = tmp
  262. tmp.uILocalizeScript = tmp:GetComponent(Enum.TypeInfo.UILocalizeScript)
  263. end
  264. ---@private
  265. function UINoticeTipsView:InitGenerate__14(Root, data)
  266. --[[
  267. UIAnimator/Window/BtnBox/Box/BtnRight
  268. --]]
  269. local tmp = Root:Find("UIAnimator/Window/BtnBox/Box/BtnRight").gameObject
  270. if tolua.getpeer(tmp) == nil then
  271. tolua.setpeer(tmp, {})
  272. end
  273. self.btnRight = tmp
  274. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  275. end
  276. ---@private
  277. function UINoticeTipsView:InitGenerate__15(Root, data)
  278. --[[
  279. UIAnimator/Window/BtnBox/Box/BtnRight/Text
  280. --]]
  281. local tmp = Root:Find("UIAnimator/Window/BtnBox/Box/BtnRight/Text").gameObject
  282. if tolua.getpeer(tmp) == nil then
  283. tolua.setpeer(tmp, {})
  284. end
  285. self.btnSure = tmp
  286. tmp.uILocalizeScript = tmp:GetComponent(Enum.TypeInfo.UILocalizeScript)
  287. end
  288. ---@private
  289. function UINoticeTipsView:InitGenerate__16(Root, data)
  290. --[[
  291. UIAnimator/Window/BtnBox/Box/BtnQuit
  292. --]]
  293. local tmp = Root:Find("UIAnimator/Window/BtnBox/Box/BtnQuit").gameObject
  294. if tolua.getpeer(tmp) == nil then
  295. tolua.setpeer(tmp, {})
  296. end
  297. self.btnQuit = tmp
  298. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  299. end
  300. ---@private
  301. function UINoticeTipsView:InitGenerate__17(Root, data)
  302. --[[
  303. UIAnimator/Window/BtnBox/Box/BtnQuit/Text
  304. --]]
  305. local tmp = Root:Find("UIAnimator/Window/BtnBox/Box/BtnQuit/Text").gameObject
  306. if tolua.getpeer(tmp) == nil then
  307. tolua.setpeer(tmp, {})
  308. end
  309. self.text = tmp
  310. tmp.uILocalizeScript = tmp:GetComponent(Enum.TypeInfo.UILocalizeScript)
  311. end
  312. ---@private
  313. function UINoticeTipsView:InitGenerate__18(Root, data)
  314. --[[
  315. UIAnimator/Window/BtnBox/Box/BtnOpen
  316. --]]
  317. local tmp = Root:Find("UIAnimator/Window/BtnBox/Box/BtnOpen").gameObject
  318. if tolua.getpeer(tmp) == nil then
  319. tolua.setpeer(tmp, {})
  320. end
  321. self.btnOpen = tmp
  322. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  323. end
  324. ---@private
  325. function UINoticeTipsView:InitGenerate__19(Root, data)
  326. --[[
  327. UIAnimator/Window/BtnBox/Box/BtnOpen/Content/Image
  328. --]]
  329. local tmp = Root:Find("UIAnimator/Window/BtnBox/Box/BtnOpen/Content/Image").gameObject
  330. if tolua.getpeer(tmp) == nil then
  331. tolua.setpeer(tmp, {})
  332. end
  333. self.btnOpen.icon = tmp
  334. tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
  335. end
  336. ---@private
  337. function UINoticeTipsView:InitGenerate__20(Root, data)
  338. --[[
  339. UIAnimator/Window/BtnBox/Box/BtnOpen/Content/Text
  340. --]]
  341. local tmp = Root:Find("UIAnimator/Window/BtnBox/Box/BtnOpen/Content/Text").gameObject
  342. if tolua.getpeer(tmp) == nil then
  343. tolua.setpeer(tmp, {})
  344. end
  345. self.btnOpen.text = tmp
  346. tmp.uILocalizeScript = tmp:GetComponent(Enum.TypeInfo.UILocalizeScript)
  347. end
  348. ---@private
  349. function UINoticeTipsView:InitGenerate__21(Root, data)
  350. --[[
  351. UIAnimator/Window/BtnBox/Box/BtnOpen/Content/num
  352. --]]
  353. local tmp = Root:Find("UIAnimator/Window/BtnBox/Box/BtnOpen/Content/num").gameObject
  354. if tolua.getpeer(tmp) == nil then
  355. tolua.setpeer(tmp, {})
  356. end
  357. self.btnOpen.num = tmp
  358. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  359. end
  360. ---@private
  361. function UINoticeTipsView:GenerateDestroy()
  362. if tolua.getpeer(self.btnOpen.num) ~= nil then
  363. tolua.setpeer(self.btnOpen.num, nil)
  364. end
  365. if tolua.getpeer(self.btnOpen.text) ~= nil then
  366. tolua.setpeer(self.btnOpen.text, nil)
  367. end
  368. if tolua.getpeer(self.btnOpen.icon) ~= nil then
  369. tolua.setpeer(self.btnOpen.icon, nil)
  370. end
  371. if tolua.getpeer(self.dscBox.dscTxt) ~= nil then
  372. tolua.setpeer(self.dscBox.dscTxt, nil)
  373. end
  374. if tolua.getpeer(self.uIAnimator) ~= nil then
  375. tolua.setpeer(self.uIAnimator, nil)
  376. end
  377. self.uIAnimator = nil
  378. if tolua.getpeer(self.AnyBtn) ~= nil then
  379. tolua.setpeer(self.AnyBtn, nil)
  380. end
  381. self.AnyBtn = nil
  382. if tolua.getpeer(self.window) ~= nil then
  383. tolua.setpeer(self.window, nil)
  384. end
  385. self.window = nil
  386. if tolua.getpeer(self.btnClose) ~= nil then
  387. tolua.setpeer(self.btnClose, nil)
  388. end
  389. self.btnClose = nil
  390. if tolua.getpeer(self.noticeTitle) ~= nil then
  391. tolua.setpeer(self.noticeTitle, nil)
  392. end
  393. self.noticeTitle = nil
  394. if tolua.getpeer(self.dscBox) ~= nil then
  395. tolua.setpeer(self.dscBox, nil)
  396. end
  397. self.dscBox = nil
  398. if tolua.getpeer(self.btnBox) ~= nil then
  399. tolua.setpeer(self.btnBox, nil)
  400. end
  401. self.btnBox = nil
  402. if tolua.getpeer(self.title) ~= nil then
  403. tolua.setpeer(self.title, nil)
  404. end
  405. self.title = nil
  406. if tolua.getpeer(self.questionTxt) ~= nil then
  407. tolua.setpeer(self.questionTxt, nil)
  408. end
  409. self.questionTxt = nil
  410. if tolua.getpeer(self.box) ~= nil then
  411. tolua.setpeer(self.box, nil)
  412. end
  413. self.box = nil
  414. if tolua.getpeer(self.btnCancle) ~= nil then
  415. tolua.setpeer(self.btnCancle, nil)
  416. end
  417. self.btnCancle = nil
  418. if tolua.getpeer(self.btnCancleText) ~= nil then
  419. tolua.setpeer(self.btnCancleText, nil)
  420. end
  421. self.btnCancleText = nil
  422. if tolua.getpeer(self.btnRight) ~= nil then
  423. tolua.setpeer(self.btnRight, nil)
  424. end
  425. self.btnRight = nil
  426. if tolua.getpeer(self.btnSure) ~= nil then
  427. tolua.setpeer(self.btnSure, nil)
  428. end
  429. self.btnSure = nil
  430. if tolua.getpeer(self.btnQuit) ~= nil then
  431. tolua.setpeer(self.btnQuit, nil)
  432. end
  433. self.btnQuit = nil
  434. if tolua.getpeer(self.text) ~= nil then
  435. tolua.setpeer(self.text, nil)
  436. end
  437. self.text = nil
  438. if tolua.getpeer(self.btnOpen) ~= nil then
  439. tolua.setpeer(self.btnOpen, nil)
  440. end
  441. self.btnOpen = nil
  442. self.transform = nil
  443. self.gameObject = nil
  444. self.inited = false
  445. end
  446. return UINoticeTipsView