UISkillResetTipsView_Generate.lua 15 KB

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