UIItemTipsView_Generate.lua 13 KB

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